Difference between revisions of "Template:Docs"

Jump to navigation Jump to search
m (+)
m (make into a "topper")
<noinclude>
{| class="wikitable" width=100%
 
This template includes the "top" of the table for any template documents. Calls to this table should be followed by rows which document each of the templates parameters and finally the table should be "closed" by inserting <code><nowiki>|}</nowiki></code> after the final row.
 
</noinclude>{| class="wikitable" width=100%
 
<!-- TABLE CAPTION -->
|-
 
<noinclude>
{{{1}}}
 
|-
| <code>title</code>
| the text to put into the document table caption
| this page, for example: <code><nowiki>|title=Template Parameter Documentation Table</nowiki></code>
|-
 
|}
 
<noinclude>
A full example:
{{Special:PrefixIndex/Template:Docs/}}
 
{| width=100% border=1
| width=50% |
<pre class="code">
{{docs|title=demonstration template}}
 
<!-- test parameter -->
|-
| <code>test</code>
| a testing parameter
| <code><nowiki>|test=testing things</nowiki></code>
|-
 
<!-- image parameter -->
{{docs/image|File: Test Image.svg}}
 
|}
</pre>
| width=50% |.
|}
 
== Common Parameter Rows ==
{{Special:PrefixIndex/Template:Docs{{FULLPAGENAME}}/}}