Difference between revisions of "Template:SimpleItembox/PropertyRow"

From Space Engineers Wiki
Jump to: navigation, search
m (Undo revision 23950 by Vox Serico (talk))
m
Line 4: Line 4:
 
     --><span><!--
 
     --><span><!--
 
       -->{{#ifeq:{{#show:Property:{{{2}}}|?Has type#-}} | Text
 
       -->{{#ifeq:{{#show:Property:{{{2}}}|?Has type#-}} | Text
         | {{#ifexist:Property:{{{2}}}/{{#show: Mod:Vanilla/{{{1}}}|?{{{2}}}}}
+
         | {{#ifexist:Property:{{{2}}}/{{#show: {{{1}}}|?{{{2}}}}}
           | {{Property:{{{2}}}/{{#show: Mod:Vanilla/{{{1}}}|?{{{2}}}}}{{lang}}}}
+
           | {{Property:{{{2}}}/{{#show: {{{1}}}|?{{{2}}}}}{{lang}}}}
           | {{#show: Mod:Vanilla/{{{1}}}|?{{{2}}}}}}}
+
           | {{#show: {{{1}}}|?{{{2}}}}}}}
         | {{#show: Mod:Vanilla/{{{1}}}|?{{{2}}}}}}}<!--
+
         | {{#show: {{{1}}}|?{{{2}}}{{#if:{{{3}}}|#{{{3}}}}}}}}}<!--
 
     --></span><!--
 
     --></span><!--
 
   --></div><!--
 
   --></div><!--
 
--></includeonly><noinclude><!--
 
--></includeonly><noinclude><!--
  
--><pre>{{SimpleItembox/PropertyRow|Page|Property}}</pre>
+
--><pre>{{SimpleItembox/PropertyRow|Page|Property|Unit}}</pre>
Example: <code><nowiki>{{SimpleItembox/PropertyRow|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|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>
 +
Result: <div style="max-width: 320px">{{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass|g}}</div>
  
 
</noinclude>
 
</noinclude>

Revision as of 19:11, 3 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: {{SimpleItembox/PropertyRow|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall|Mass|g}}

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