Difference between revisions of "Template:Docs"

Jump to navigation Jump to search
1,420 bytes added ,  4 years ago
m
+usage
m (try this)
m (+usage)
(5 intermediate revisions by 2 users not shown)
<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.
 
[[category: documentation templates]]
 
</noinclude>{| class="wikitable" width=100%
 
<!-- TABLE CAPTION -->
|+ {{{title|Template Parameter Documentation Table}}}
 
<!-- COLUMN HEADERS -->
|-
 
<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|eg=File: Test Image.svg}}
 
|}
</pre>
| width=50% |
 
{{docs|title=demonstration template}}
 
<!-- test parameter -->
|-
| <code>test</code>
| a testing parameter
| <code><nowiki>|test=testing things</nowiki></code>
|-
 
<!-- image parameter -->
{{docs/image|eg=File: Test Image.svg}}
 
|}
 
|-
|}
 
== Common Parameter Rows ==
* [[/image|image]] (o)
* [[/world|world]] (r)
* [[/books|books]] (r)
* [[/universe|universe]] (r)
 
== Row Formatting ==
* [[/row/optional|optional]]
* [[/row/required|required]]
 
== Templates with Documentation ==
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}}
40,275

edits

Navigation menu