Difference between revisions of "Template:Infobox Element"

From The Powder Toy
Jump to: navigation, search
(Try to add low temperature transition)
(Add the other transitions, translate Explosive value into words)
Line 8: Line 8:
 
| data7 = {{Temperature|t={{{temperature}}}}}
 
| data7 = {{Temperature|t={{{temperature}}}}}
 
| label8 = [[Heat Conductivity]]
 
| label8 = [[Heat Conductivity]]
| data8 = {{#ifexpr: {{{heatconduct}}} > 250 | 100% | {{#expr:{{{heatconduct}}}*100/250 round 1}}% }}
+
| data8 = <span data-toggle="tooltip" data-original-title="Raw value {{{heatconduct}}}">{{#ifexpr: {{{heatconduct}}} > 250 | 100% | {{#expr:{{{heatconduct}}}*100/250 round 1}}% }} of maximum speed</span>
 
| label10 = [[Flammability]]
 
| label10 = [[Flammability]]
 
| data10 = {{{flammable}}}
 
| data10 = {{{flammable}}}
Line 14: Line 14:
 
| data11 = {{{weight}}}
 
| data11 = {{{weight}}}
 
| label12 = Explosive
 
| label12 = Explosive
| data12 = {{{explosive}}}
+
| data12 = {{#switch: {{{explosive}}}
 +
  | 0 = no
 +
  | 1 = when touching fire
 +
  | 2 = with fire or pressure
 +
  | unknown
 +
}}
 
| header30 = {{#if: {{{highpressuretransition|}}} {{{hightemperaturetransition|}}} {{{lowpressuretransition|}}} {{{lowtemperaturetransition|}}} | Transitions | }}
 
| header30 = {{#if: {{{highpressuretransition|}}} {{{hightemperaturetransition|}}} {{{lowpressuretransition|}}} {{{lowtemperaturetransition|}}} | Transitions | }}
 
| label31 = {{#if: {{{lowtemperaturetransition|}}} | Low temperature | }}
 
| label31 = {{#if: {{{lowtemperaturetransition|}}} | Low temperature | }}
| data31 = {{#if: {{{lowtemperaturetransition|}}} | {{Material|mat={{{lowtemperaturetransition}}}}} at {{Temperature|t={{{lowtemperature}}}}} | }}
+
| data31 = {{#if: {{{lowtemperaturetransition|}}} |  
 +
  {{#ifeq: {{{lowtemperaturetransition}}} | special |
 +
    transition occurs |
 +
    turns to {{Material|mat={{{lowtemperaturetransition}}}}}
 +
  }} below {{Temperature|t={{{lowtemperature}}}}} | }}
 +
| label32 = {{#if: {{{hightemperaturetransition|}}} | High temperature | }}
 +
| data32 = {{#if: {{{hightemperaturetransition|}}} |
 +
  {{#ifeq: {{{hightemperaturetransition}}} | special |
 +
    transition occurs |
 +
    turns to {{Material|mat={{{hightemperaturetransition}}}}}
 +
  }} above {{Temperature|t={{{hightemperature}}}}} | }}
 +
| label33 = {{#if: {{{lowpressuretransition|}}} | Low pressure | }}
 +
| data33 = {{#if: {{{lowpressuretransition|}}} |
 +
  {{#ifeq: {{{lowpressuretransition}}} | special |
 +
    transition occurs |
 +
    turns to {{Material|mat={{{lowpressuretransition}}}}}
 +
  }} below {{{lowpressure}}} pressure | }}
 +
| label34 = {{#if: {{{highpressuretransition|}}} | High pressure | }}
 +
| data34 = {{#if: {{{highpressuretransition|}}} |
 +
  {{#ifeq: {{{highpressuretransition}}} | special |
 +
    transition occurs |
 +
    turns to {{Material|mat={{{highpressuretransition}}}}}
 +
  }} above {{{highpressure}}} pressure | }}
 
}}
 
}}
</includeonly>
+
</includeonly><noinclude>
 +
Infobox for displaying various element properties
 +
</noinclude>

Revision as of 16:07, 5 October 2014

Infobox for displaying various element properties