Difference between revisions of "Template:Docs"
Jump to navigation
Jump to search
m (make into a "topper") |
m (boop) |
||
Line 40: | Line 40: | ||
<!-- image parameter --> |
<!-- image parameter --> |
||
− | {{docs/image|File: Test Image.svg}} |
+ | {{docs/image|eg=File: Test Image.svg}} |
|} |
|} |
||
</pre> |
</pre> |
||
− | | width=50% | |
+ | | 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}} |
||
+ | |||
+ | |} |
||
+ | |||
+ | |- |
||
|} |
|} |
||
Revision as of 17:59, 18 April 2019
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 |}
after the final row.
Parameter | Description | Examples |
---|---|---|
title
|
the text to put into the document table caption | this page, for example: |title=Template Parameter Documentation Table
|
A full example:
{{docs|title=demonstration template}} <!-- test parameter --> |- | <code>test</code> | a testing parameter | <code>|test=testing things</code> |- <!-- image parameter --> {{docs/image|eg=File: Test Image.svg}} |} |
|