Difference between revisions of "Template:Parameter table"
From Kerbal Space Program Wiki
(Created page with "{| class="wikitable{{#ifeq: {{{style|}}}|hover| mw-datatable}}" ! {{#switch: {{{name|number}}}|text=Name|#default|number=#}} ! Optional ! Description {{{parameters|{{!}}- ...") |
m |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {| class="wikitable{{#ifeq: {{{style|}}}|hover| mw-datatable}}" | + | <includeonly>{| class="wikitable {{#ifeq: {{{style|}}}|hover|mw-datatable}}" |
− | ! {{#switch: {{{name|number}}}|text=Name|#default|number=#}} | + | ! {{#switch: {{{name|number}}}|text=Name|both=#/Name|#default|number=#}} |
! Optional | ! Optional | ||
! Description | ! Description | ||
+ | ! Default | ||
{{{parameters|{{!}}- | {{{parameters|{{!}}- | ||
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} parameters have to be set!}}} |
− | |}<noinclude>Parameter table header | + | |}</includeonly><noinclude>=== Parameter table header === |
− | {{Parameter | + | {{Parameter table|name=text|parameters= |
− | {{ | + | {{Parameter row|parameter|All parameters. It is recommended to use {{Tl|Parameter row}}.}} |
− | {{ | + | {{Parameter row|name|2=Show either “Name“ (<tt>name=text</tt>), “#” (<tt>name=number</tt>) or “#/Name” (<tt>name=both</tt>) for the parameters name.|3=<tt>number</tt>}} |
− | {{ | + | {{Parameter row|style|When set to <tt>hover</tt> all rows have rover style.|Not set}} |
}} | }} | ||
− | [[Category: | + | [[Category:Documentation templates]]</noinclude> |
Latest revision as of 19:19, 2 February 2020
Parameter table header
Name | Optional | Description | Default |
---|---|---|---|
parameter | No | All parameters. It is recommended to use {{Parameter row}}. | |
name | Yes | Show either “Name“ (name=text), “#” (name=number) or “#/Name” (name=both) for the parameters name. | number |
style | Yes | When set to hover all rows have rover style. | Not set |