Difference between revisions of "Template:SimpleItembox/PropertyRow"
From Space Engineers Wiki
Vox Serico (talk | contribs) m (semicolon.) |
Vox Serico (talk | contribs) m (A missing property translation now results in a link to that property's page instead of a long message.) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><div style="display: flex; justify-content: space-between; padding: 0 0.25em;{{#if:{{{color|}}}|background-color: {{{color}}};}}"><!-- | --><div style="display: flex; justify-content: space-between; padding: 0 0.25em;{{#if:{{{color|}}}|background-color: {{{color}}};}}"><!-- | ||
− | --><span>{{#if: {{lang}} | {{Property:{{trim|{{{2}}}}}{{lang}}}} | {{#show: Property:{{{2}}}|?Translation|default=Property {{{2}}} | + | --><span>{{#if: {{lang}} | {{Property:{{trim|{{{2}}}}}{{lang}}}} | {{#show: Property:{{{2}}}|?Translation|default=[[Property:{{{2}}}]]}}}}:</span><!-- |
--><span><!-- | --><span><!-- | ||
-->{{#ifeq:{{#show:Property:{{{2}}}|?Has type#-}} | Text | -->{{#ifeq:{{#show:Property:{{{2}}}|?Has type#-}} | Text |
Revision as of 20:20, 4 May 2020
{{SimpleItembox/PropertyRow|Page|Property|Unit}}
Example: {{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass}}
Mass109.8 kg
109,800 g
109,800,000 mg
0.11 t
109,800,000 mg
0.11 t
Example with unit conversion: {{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass|g}}
Mass109,800 g
109.8 kg
109,800,000 mg
0.11 t
109,800,000 mg
0.11 t