GaryJJSpate (talk | contribs) Created page with "<includeonly><div class="vault-doc-box"> <div class="vault-doc-box-header">Template documentation</div> <div class="vault-doc-box-body"> {{{1|{{{content|}}}}}} </div> </div>[[Category:{{{category|Vault Templates}}}]]</includeonly><noinclude> == Template:Documentation == Wraps a template's usage notes in a styled box, placed inside <code><nowiki><noinclude>...</noinclude></nowiki></code> at the bottom of the template's own page — same single-page pattern already used by..." |
GaryJJSpate (talk | contribs) No edit summary |
||
| Line 10: | Line 10: | ||
'''Usage:''' | '''Usage:''' | ||
<pre> | <pre> | ||
<noinclude> | |||
{{Documentation| | {{Documentation| | ||
== Template:ExampleTemplate == | == Template:ExampleTemplate == | ||
| Line 16: | Line 16: | ||
'''Usage:''' | '''Usage:''' | ||
<pre> | |||
{{ExampleTemplate | {{ExampleTemplate | ||
|param1=value | |param1=value | ||
|param2=value | |param2=value | ||
}} | }} | ||
</pre> | |||
=== Parameters === | === Parameters === | ||
| Line 27: | Line 27: | ||
* '''param2''' — optional. What it controls | * '''param2''' — optional. What it controls | ||
}} | }} | ||
</noinclude> | |||
</pre> | </pre> | ||
Latest revision as of 19:20, 21 July 2026
Template:Documentation
Wraps a template's usage notes in a styled box, placed inside <noinclude>...</noinclude> at the bottom of the template's own page — same single-page pattern already used by {{CategoryInfobox}} and the others, just standardised instead of freehand wikitext each time.
Usage:
<noinclude>
{{Documentation|
== Template:ExampleTemplate ==
One-line description of what the template renders and where it goes.
'''Usage:'''
<pre>
{{ExampleTemplate
|param1=value
|param2=value
}}
</pre>
=== Parameters ===
* '''param1''' — required. What it controls
* '''param2''' — optional. What it controls
}}
</noinclude>
Everything after the pipe — headings, prose, nested <pre> blocks, {{[[Special:MyLanguage/Template:{{{1}}}|Template:{{{1}}}]]}} links — is just ordinary wikitext and gets dropped straight into the box.
Parameters
- 1 (unnamed) or content — the documentation body itself
- category — optional. Overrides the default filing category, if a template shouldn't sit in Vault Templates for some reason
Auto-adds [[Category:Vault Templates]] (or your override) — no need to tag it separately at the bottom of the template page anymore.