Difference between revisions of "Template:Docs/row/optional"
Jump to navigation
Jump to search
(Created page with "<noinclude> Helper template to insert an optional parameter row in an infobox template documentation page. It takes 3 parameters: * <code>param</code>: The name of the paramet...") |
m (+catkey) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
* <code>desc</code>: A description of how the parameter is to be used |
* <code>desc</code>: A description of how the parameter is to be used |
||
* <code>eg</code>: One or more usage examples |
* <code>eg</code>: One or more usage examples |
||
+ | |||
+ | [[category: documentation templates|row]] |
||
{{docs|title=Documentation for an optional parameter}} |
{{docs|title=Documentation for an optional parameter}} |
||
Line 10: | Line 12: | ||
|- |
|- |
||
<!-- Parameter cell --> |
<!-- Parameter cell --> |
||
− | | style="text-align: center;" | <code>{{{param}}}</code> |
+ | | style="text-align: center;" | {{#if:{{{param|}}} | <code>{{{param}}}</code> | {{{'param|''Unknown parameter''}}} }} |
<!-- Description cell --> |
<!-- Description cell --> |
||
| {{{desc}}} |
| {{{desc}}} |
||
<!-- Examples cell --> |
<!-- Examples cell --> |
||
− | | style="white-space: nowrap;" | |
+ | | style="white-space: nowrap;" | |
+ | {{{eg}}} |
||
+ | <!-- END OF ROW --> |
||
+ | |- |
||
<noinclude> |
<noinclude> |
||
|} |
|} |
||
+ | == Templates with Optional Parameters == |
||
− | == Usage == |
||
− | {{ |
+ | {{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full list of uses|here}} |
+ | {{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}} |
Latest revision as of 20:19, 19 April 2020
Helper template to insert an optional parameter row in an infobox template documentation page. It takes 3 parameters:
param
: The name of the parameter being documenteddesc
: A description of how the parameter is to be usedeg
: One or more usage examples
Parameter | Description | Examples |
---|---|---|
Unknown parameter | {{{desc}}} |
{{{eg}}} |
Templates with Optional Parameters[edit]
- Template:Infobox (transclusion) (← links | edit)
- Template:Location (transclusion) (← links | edit)
- Template:Group (transclusion) (← links | edit)
- Template:Event (transclusion) (← links | edit)
- Template:Item (transclusion) (← links | edit)
- Template:Tag (transclusion) (← links | edit)
- Template:Literature (transclusion) (← links | edit)
- Template:Food (transclusion) (← links | edit)
- Template:Culture (transclusion) (← links | edit)
- Template:Disease (transclusion) (← links | edit)
- Template:Fabrial (transclusion) (← links | edit)
- Template:Cat tag (transclusion) (← links | edit)
- Template:Art (transclusion) (← links | edit)
- Template:Architecture (transclusion) (← links | edit)
- Template:Geography (transclusion) (← links | edit)
- Template:Nation (transclusion) (← links | edit)
- Template:Settlement (transclusion) (← links | edit)
- Template:Business (transclusion) (← links | edit)
- Template:Media (transclusion) (← links | edit)
- Template:Docs/image (transclusion) (← links | edit)
- Template:Docs (transclusion) (← links | edit)
- Template:Artist (transclusion) (← links | edit)
- Template:Peoples (transclusion) (← links | edit)
- Template:Cover (transclusion) (← links | edit)
- Template:Info/row (transclusion) (← links | edit)
- Template:Metal (transclusion) (← links | edit)
- Template:Metal/art (transclusion) (← links | edit)