Difference between revisions of "Template:Infobox/Line"
From Kerbal Space Program Wiki
m (!don't insert new line when only one value;) |
|||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |- valign="top" {{#if: {{{style|}}}|style="{{{style}}}"}} | + | <includeonly>|- valign="top" {{#if: {{{style|}}}|style="{{{style}}}"}} |
− | | {{#if: {{{3|}}}|rowspan="2"}} {{#if: {{{ | + | | {{#if: {{{3|}}}|rowspan="2"}} {{#if: {{{type1|}}}{{Booland|{{{3|}}}|{{{type2|}}}}}||colspan="{{#if: {{{2|}}}{{{3|}}}|2|3}}"}} | {{{1}}}{{if||{{{2|}}}| |
− | + | {{!}} {{#if: {{{type1|}}}{{Booland|{{{3|}}}|{{{type2|}}}}}| style="font-size:smaller" {{!}} ({{{type1|}}}) | |
{{!}}}} {{#if: {{{3|}}}|{{{2}}} | {{!}}}} {{#if: {{{3|}}}|{{{2}}} | ||
{{!}}- valign="top" {{#if: {{{style|}}}|style="{{{style}}}"}} | {{!}}- valign="top" {{#if: {{{style|}}}|style="{{{style}}}"}} | ||
− | {{!}} {{#if: {{{ | + | {{!}} {{#if: {{{type1|}}}{{{type2|}}}| style="font-size:smaller" {{!}} ({{{type2|}}}) |
− | {{!}}}} {{{3}}}|{{{2}}}}} | + | {{!}}}} {{{3}}}|{{{2}}}}}}}</includeonly><noinclude>Is one line for the {{Tl|Infobox}} and it's subtemplates. |
+ | |||
+ | == Parameters == | ||
+ | {{Parameter table|name=both|parameters= | ||
+ | {{Parameter row|1|Caption of line}} | ||
+ | {{Parameter row|2|Primary value|Not set/Hidden}} | ||
+ | {{Parameter row|3|Secondary value|Not set/Hidden}} | ||
+ | {{Parameter row|type1|Type of the primary value|Not set/Hidden}} | ||
+ | {{Parameter row|type2|Type of the secondary value|Not set/Hidden}} | ||
+ | {{Parameter row|style|CSS of the rows|Not set}} | ||
+ | }} | ||
+ | |||
+ | [[Category:Metatemplates]]</noinclude> |
Revision as of 16:33, 2 May 2015
Is one line for the {{Infobox}} and it's subtemplates.
Parameters
#/Name | Optional | Description | Default |
---|---|---|---|
1 | No | Caption of line | |
2 | Yes | Primary value | Not set/Hidden |
3 | Yes | Secondary value | Not set/Hidden |
type1 | Yes | Type of the primary value | Not set/Hidden |
type2 | Yes | Type of the secondary value | Not set/Hidden |
style | Yes | CSS of the rows | Not set |