Difference between revisions of "Template:SimpleItembox/ComponentRow"
From Space Engineers Wiki
Vox Serico (talk | contribs) m |
Vox Serico (talk | contribs) (Component amount number formatting) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
-->|{{#show:{{{1}}}|?Component{{{2}}}#-}}<!-- | -->|{{#show:{{{1}}}|?Component{{{2}}}#-}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | -->|{{ | + | -->|{{translate|{{#show: {{{1}}}|?Component{{{2}}}#-}}}}<!-- |
− | |||
− | |||
− | |||
-->]]<!-- | -->]]<!-- | ||
--></span><!-- | --></span><!-- | ||
COMPONENT NAME END | COMPONENT NAME END | ||
COMPONENT AMOUNT | COMPONENT AMOUNT | ||
− | -->{{#show:{{{1}}}|?Component{{{2}}}Amount | + | -->{{#show:{{{1}}}|?Component{{{2}}}Amount|default=0}}<!-- |
COMPONENT AMOUNT END | COMPONENT AMOUNT END | ||
--></div><!-- | --></div><!-- | ||
HACK LINE | HACK LINE | ||
-->{{#ifeq: {{#show:{{{1}}}|?Component{{{2}}}#-}}|Mod:Vanilla/Component/Computer|<!-- Place the Hack line after the Computer component | -->{{#ifeq: {{#show:{{{1}}}|?Component{{{2}}}#-}}|Mod:Vanilla/Component/Computer|<!-- Place the Hack line after the Computer component | ||
− | -->{{#ifexpr: {{#show:{{{1}}}|?CriticalComponent#-}} | + | -->{{#ifexpr: {{#show:{{{1}}}|?CriticalComponent#-}} - 1 = {{{2}}}||<!-- Only show the hack line if it is not in the same place as the Functional line |
--><div style="order:{{{2}}}; display: flex; align-items: center; max-height: 2px"><!-- | --><div style="order:{{{2}}}; display: flex; align-items: center; max-height: 2px"><!-- | ||
--><hr style="height: 2px; background-color: #486d82; flex-grow: 1"/><!-- | --><hr style="height: 2px; background-color: #486d82; flex-grow: 1"/><!-- | ||
Line 42: | Line 39: | ||
-->}}<!-- | -->}}<!-- | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
− | |||
<pre>{{SimpleItembox/ComponentRow|Page|Index}}</pre> | <pre>{{SimpleItembox/ComponentRow|Page|Index}}</pre> | ||
<div style="max-width: 320px">{{SimpleItembox/ComponentRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|1}}</div></noinclude> | <div style="max-width: 320px">{{SimpleItembox/ComponentRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|1}}</div></noinclude> |
Latest revision as of 18:15, 18 May 2020
{{SimpleItembox/ComponentRow|Page|Index}}