Difference between revisions of "Template:SimpleItembox/PropertyRow"

From Space Engineers Wiki
Jump to: navigation, search
(Changed parameters to allow for #printout units in the 1st parameter, thus reducing SimpleItembox call size)
m
Line 12: Line 12:
 
           -->| {{#show: {{{1}}}|?{{#var:PROPERTY}}}}<!--
 
           -->| {{#show: {{{1}}}|?{{#var:PROPERTY}}}}<!--
 
         -->}}<!--
 
         -->}}<!--
       -->| {{#show: {{{1}}}|?{{{2}}}{{#if:{{{3|}}}|#{{{3}}}|{{#var:UNIT}}}}}}}}<!--
+
       -->| {{#show: {{{1}}}|?{{#var:PROPERTY}}{{#if:{{{3|}}}|#{{{3}}}|{{#var:UNIT}}}}}}}}<!--
 
     --></span><!--
 
     --></span><!--
 
   --></div><!--
 
   --></div><!--

Revision as of 02:59, 5 May 2020

{{SimpleItembox/PropertyRow|Page|Property|Unit}}

Example: {{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass}}

Result:
Mass109.8 kg
109,800 g
109,800,000 mg
0.11 t

Example with unit conversion: {{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass|g}}

Result:
Mass109,800 g
109.8 kg
109,800,000 mg
0.11 t

Example 2 with unit conversion: {{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass#g}}

Result:
Mass109,800 g
109.8 kg
109,800,000 mg
0.11 t