Template:Documentation: Difference between revisions
From Eco - English Wiki
[checked revision] | [checked revision] |
No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<includeonly><div class="tablescroll"><nowiki/> | <includeonly><div class="tablescroll"><nowiki/> | ||
{| class=" | {| class="table" style="margin:auto; width:100%; margin-bottom:10px;" | ||
|- style="font-size:18px;" | |- style="font-size:18px;" | ||
! style="padding:0px;" | <div style="width:100%; padding:3px 0px; text-align:center;" class="color1">Template documentation</div> | ! style="padding:0px;" | <div style="width:100%; padding:3px 0px; text-align:center;" class="color1">Template documentation</div> | ||
Line 9: | Line 9: | ||
|}</div> | |}</div> | ||
<div style="margin:0 1em;">{{{{BASEPAGENAME}}/doc}}</div> | <div style="margin:0 1em;">{{{{BASEPAGENAME}}/doc}}</div> | ||
</includeonly><noinclude>{{Documentation}}[[Category:Documentation Templates]]</noinclude> | </includeonly> | ||
<noinclude>{{Documentation}}[[Category:Documentation Templates]]</noinclude> |
Revision as of 09:04, 20 May 2024
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
==Description==
This template is used to insert descriptions on template pages.
Syntax
Add <noinclude>{{Documentation}}</noinclude>
at the end of the template page.
Usage
On the Template page
This is the normal format when used:
TEMPLATE CODE
<includeonly>Any categories to be inserted into articles by the template</includeonly>
<noinclude>{{Documentation}}</noinclude>
On the documentation page
The documentation page is located on the /doc subpage for a template.
== Description ==
This template is used to do something.
== Syntax ==
Type <code>{{templatename}}</code> somewhere.
== Samples ==
<code><nowiki>{{templatename|input}}</nowiki></code>
results in...
{{templatename|input}}
<includeonly>Any categories for the template itself</includeonly>
<noinclude>[[Category:Template Docs]]</noinclude>