Difference between revisions of "Template:Parameter row"
From Kerbal Space Program Wiki
m (XZise moved page Template:Parameter Row to Template:Parameter row: lowercased) |
m |
||
(3 intermediate revisions by 2 users not shown) | |||
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| | + | | {{{2}}} |
+ | | {{#if: {{{3|}}}|{{{3}}}}}</includeonly><noinclude>Creates one row of a parameter table. | ||
− | + | {{Parameter table|name=both|parameters= | |
− | + | {{Parameter row|1|Name}} | |
− | + | {{Parameter row|2|Description}} | |
− | {{Parameter | + | {{Parameter row|3|Default value. If set, set parameter to optional.|Not set}} |
− | {{Parameter | + | {{Parameter row|4|Indentation of parameter name to show dependency. Any number > 0.|No indentation}} |
− | {{Parameter | + | {{Parameter row|name2|name2=name3|Alternative name.|Not set/Hidden}} |
− | {{Parameter | ||
− | {{Parameter | ||
− | |||
}} | }} | ||
[[Category:Documentation templates]]</noinclude> | [[Category:Documentation templates]]</noinclude> |
Latest revision as of 20:11, 2 February 2020
Creates one row of a parameter table.
#/Name | Optional | Description | Default |
---|---|---|---|
1 | No | Name | |
2 | No | Description | |
3 | Yes | Default value. If set, set parameter to optional. | Not set |
4 | Yes | Indentation of parameter name to show dependency. Any number > 0. | No indentation |
name2 or name3 | Yes | Alternative name. | Not set/Hidden |