Difference between revisions of "Template:Parameter table"

From Kerbal Space Program Wiki
Jump to: navigation, search
(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=&#35;}}
+
! {{#switch: {{{name|number}}}|text=Name|both=&#35;/Name|#default|number=&#35;}}
 
! Optional
 
! Optional
 
! Description
 
! Description
 +
! Default
 
{{{parameters|{{!}}-
 
{{{parameters|{{!}}-
{{!}} colspan="3" {{!}} parameters have to be set!}}}
+
{{!}} colspan="4" {{!}} parameters have to be set!}}}
|}<noinclude>Parameter table header.
+
|}</includeonly><noinclude>=== Parameter table header ===
  
{{Parameter Table|name=text|parameters=
+
{{Parameter table|name=text|parameters=
{{ParameterRow|parameter|All parameters. Should use {{Tl|ParameterRow}}.}}
+
{{Parameter row|parameter|All parameters. It is recommended to use {{Tl|Parameter row}}.}}
{{ParameterRow|name|Show either “Name“ (<tt>name=text</tt>) or “&#35;” (<tt>name=number</tt>) for the parameters name.|<tt>number</tt>}}
+
{{Parameter row|name|2=Show either “Name“ (<tt>name=text</tt>), “&#35;” (<tt>name=number</tt>) or “#/Name” (<tt>name=both</tt>) for the parameters name.|3=<tt>number</tt>}}
{{ParameterRow|style|When set to <tt>hover</tt> all rows have rover style.|Not set}}
+
{{Parameter row|style|When set to <tt>hover</tt> all rows have rover style.|Not set}}
 
}}
 
}}
  
  
[[Category:Templates]]</noinclude>
+
[[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