Difference between revisions of "Template:SimpleItembox/PropertyRow"

From Space Engineers Wiki
Jump to: navigation, search
m
m (Template:Translate bug workaround)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
 
   --><div style="display: flex; justify-content: space-between;"><!--
 
   --><div style="display: flex; justify-content: space-between;"><!--
     --><span>{{translate|Property:{{{2}}}}}:</span><!--
+
     --><span>{{#if: {{lang}} | {{Property:{{{2}}}{{lang}}}} | {{#show: {{{2}}}|?translation|default=Property {{{1}}} has an empty or missing ''Translation'' parameter!}}}}:</span><!--
 
     --><span><!--
 
     --><span><!--
 
       -->{{#ifeq:{{#show:Property:{{{2}}}|?Has type#-}} | Text
 
       -->{{#ifeq:{{#show:Property:{{{2}}}|?Has type#-}} | Text
Line 15: Line 15:
 
Example: <code><nowiki>{{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass}}</nowiki></code>
 
Example: <code><nowiki>{{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass}}</nowiki></code>
 
Result: <div style="max-width: 320px">{{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass}}</div>
 
Result: <div style="max-width: 320px">{{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass}}</div>
----
+
 
Example: <code><nowiki>{{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass|g}}</nowiki></code>
+
 
 +
Example with unit conversion: <code><nowiki>{{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass|g}}</nowiki></code>
 
Result: <div style="max-width: 320px">{{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass|g}}</div>
 
Result: <div style="max-width: 320px">{{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass|g}}</div>
  
 
</noinclude>
 
</noinclude>

Revision as of 14:52, 4 April 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