Difference between revisions of "Template:Parameter table"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!hover now uses correct class;)
m (+both;)
Line 1: Line 1:
 
{| class="wikitable {{#ifeq: {{{style|}}}|hover|mw-datatable}}"
 
{| 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
Line 9: Line 9:
 
{{Parameter Table|name=text|parameters=
 
{{Parameter Table|name=text|parameters=
 
{{ParameterRow|parameter|All parameters. Should use {{Tl|ParameterRow}}.}}
 
{{ParameterRow|parameter|All parameters. Should use {{Tl|ParameterRow}}.}}
{{ParameterRow|name|2=Show either “Name“ (<tt>name=text</tt>) or “&#35;” (<tt>name=number</tt>) for the parameters name.|3=<tt>number</tt>}}
+
{{ParameterRow|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}}
 
{{ParameterRow|style|When set to <tt>hover</tt> all rows have rover style.|Not set}}
 
}}
 
}}

Revision as of 23:14, 24 April 2013

# Optional Description
parameters have to be set!
Parameter table header.

Template:Parameter Table