Difference between revisions of "Template:Parameter row"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (+nowrap for the names;)
m (+allow default to be in a separate paragraph (e.g. after a list); *more specific category;)
Line 2: Line 2:
 
| {{#if: {{{4|}}}|style="padding-left:{{#expr: {{{4}}}*2}}em" {{!}}|}} <tt style="white-space:nowrap;">{{{1}}}</tt> {{#if: {{{name2|}}}|{{#if: {{{name3|}}}|,|or}} <tt style="white-space:nowrap;">{{{name2|}}}</tt> {{#if: {{{name3|}}}|or <tt style="white-space:nowrap;">{{{name3|}}}</tt>}}}}
 
| {{#if: {{{4|}}}|style="padding-left:{{#expr: {{{4}}}*2}}em" {{!}}|}} <tt style="white-space:nowrap;">{{{1}}}</tt> {{#if: {{{name2|}}}|{{#if: {{{name3|}}}|,|or}} <tt style="white-space:nowrap;">{{{name2|}}}</tt> {{#if: {{{name3|}}}|or <tt style="white-space:nowrap;">{{{name3|}}}</tt>}}}}
 
| {{#if: {{{3|}}}|{{Yes}}|{{No}}}}
 
| {{#if: {{{3|}}}|{{Yes}}|{{No}}}}
| {{{2}}} {{#if: {{{3|}}}|Default: {{{3}}}}}</includeonly><noinclude>Creates one row of a parameter table.
+
| {{{2}}}{{if|eq|{{lc:{{{default paragraphed|}}}}}|y|
 +
 
 +
| }}{{#if: {{{3|}}}|Default: {{{3}}}}}</includeonly><noinclude>Creates one row of a parameter table.
  
 
{{Parameter Table|name=both|parameters=
 
{{Parameter Table|name=both|parameters=
Line 10: Line 12:
 
{{Parameter Row|4|Indentation of parameter name to show dependency. Any number > 0.|No indentation}}
 
{{Parameter Row|4|Indentation of parameter name to show dependency. Any number > 0.|No indentation}}
 
{{Parameter Row|name2|name2=name3|Alternative name.|Not set/Hidden}}
 
{{Parameter Row|name2|name2=name3|Alternative name.|Not set/Hidden}}
 +
{{Parameter Row|default paragraphed|Set to <tt>y</tt> if the default value should be shown in a separate paragraph.|Not set}}
 
}}
 
}}
  
[[Category:Templates]]</noinclude>
+
[[Category:Documentation templates]]</noinclude>

Revision as of 19:59, 6 January 2014

Creates one row of a parameter table.

Template:Parameter Table