Difference between revisions of "Template:SimpleItembox/PropertyRow"

From Space Engineers Wiki
Jump to: navigation, search
(Added special case for properties of Page type)
m
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
 
           -->| {{#var:VALUE}}<!--
 
           -->| {{#var:VALUE}}<!--
 
         -->}}<!--
 
         -->}}<!--
         -->|Page={{#if: {{#show:{{{1}}}|?{{#var:PROPERTY}}|?TypeId}}<!--
+
         -->|Page={{#if: {{#show:{{#show:{{{1}}}|?{{#var:PROPERTY}}#-}}|?TypeId}}<!--
 
           -->|{{icon|{{#vardefineecho:VALUE|{{#show: {{{1}}}|?{{#var:PROPERTY}}#-}}}}|tiny}}&nbsp;[[{{#show:{{#var:VALUE}}|?Main_article#-}}{{lang}}|{{Translate|{{#var:VALUE}}}}]]<!--
 
           -->|{{icon|{{#vardefineecho:VALUE|{{#show: {{{1}}}|?{{#var:PROPERTY}}#-}}}}|tiny}}&nbsp;[[{{#show:{{#var:VALUE}}|?Main_article#-}}{{lang}}|{{Translate|{{#var:VALUE}}}}]]<!--
 
           -->|{{Translate|{{#show: {{{1}}}|?{{#var:PROPERTY}}#-}}}}<!--
 
           -->|{{Translate|{{#show: {{{1}}}|?{{#var:PROPERTY}}#-}}}}<!--

Latest revision as of 21:56, 20 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

(Obsolete) 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 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