Editing Template:Docs
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
+ | {{Special:PrefixIndex/Template:Docs/}} |
||
− | <noinclude> |
||
− | |||
− | 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 --> |
||
− | |- class="title" |
||
− | ! scope="col" style="font-weight: bold;" | Parameter |
||
− | ! scope="col" style="font-weight: bold;" | Description |
||
− | ! scope="col" style="font-weight: bold;" | Examples |
||
− | |- |
||
− | |||
− | <noinclude> |
||
− | |||
− | |- |
||
− | | <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> |
||
− | |- |
||
− | |||
− | |} |
||
− | |||
− | A full example: |
||
− | |||
− | {| 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) |
||
− | * [[/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}} |