Difference between revisions of "Template:Infobox Element"

From The Powder Toy
Jump to: navigation, search
(Add the other transitions, translate Explosive value into words)
(Add State, and trim some text)
Line 5: Line 5:
 
| caption = {{{description}}}
 
| caption = {{{description}}}
 
| header1 = Properties
 
| header1 = Properties
| label7 = [[Spawn temperature]]
+
| label7 = Spawn temperature
 
| data7 = {{Temperature|t={{{temperature}}}}}
 
| data7 = {{Temperature|t={{{temperature}}}}}
 
| label8 = [[Heat Conductivity]]
 
| label8 = [[Heat Conductivity]]
| 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>
+
| data8 = <span data-toggle="tooltip" data-original-title="Raw value: {{{heatconduct}}}">{{#ifexpr: {{{heatconduct}}} > 250 | 100% | {{#expr:{{{heatconduct}}}*100/250 round 1}}% }}</span> of maximum
 
| label10 = [[Flammability]]
 
| label10 = [[Flammability]]
 
| data10 = {{{flammable}}}
 
| data10 = {{{flammable}}}
| label11 = [[Weight]]
+
| label11 = Relative [[weight]]
 
| data11 = {{{weight}}}
 
| data11 = {{{weight}}}
| label12 = Explosive
+
| label12 = {{#ifexpr: {{{explosive}}} > 0 | Explosive | }}
| data12 = {{#switch: {{{explosive}}}
+
| data12 = {{#switch: {{{explosive}}
  | 0 = no
 
 
   | 1 = when touching fire
 
   | 1 = when touching fire
 
   | 2 = with fire or pressure
 
   | 2 = with fire or pressure
 +
  |
 +
}}
 +
| label13 = State
 +
| data13 = <span data-toggle="tooltip" data-original-title="{{{state}}}">{{#switch: {{{state}}}
 +
  | ST_NONE = n/a
 +
  | ST_SOLID = solid
 +
  | ST_LIQUID = liquid
 +
  | ST_GAS = gas
 
   | unknown
 
   | unknown
 
}}
 
}}
Line 25: Line 32:
 
   {{#ifeq: {{{lowtemperaturetransition}}} | special |
 
   {{#ifeq: {{{lowtemperaturetransition}}} | special |
 
     transition occurs |
 
     transition occurs |
     turns to {{Material|mat={{{lowtemperaturetransition}}}}}
+
     {{Material|mat={{{lowtemperaturetransition}}}}}
 
   }} below {{Temperature|t={{{lowtemperature}}}}} | }}
 
   }} below {{Temperature|t={{{lowtemperature}}}}} | }}
 
| label32 = {{#if: {{{hightemperaturetransition|}}} | High temperature | }}
 
| label32 = {{#if: {{{hightemperaturetransition|}}} | High temperature | }}
Line 31: Line 38:
 
   {{#ifeq: {{{hightemperaturetransition}}} | special |
 
   {{#ifeq: {{{hightemperaturetransition}}} | special |
 
     transition occurs |
 
     transition occurs |
     turns to {{Material|mat={{{hightemperaturetransition}}}}}
+
     {{Material|mat={{{hightemperaturetransition}}}}}
 
   }} above {{Temperature|t={{{hightemperature}}}}} | }}
 
   }} above {{Temperature|t={{{hightemperature}}}}} | }}
 
| label33 = {{#if: {{{lowpressuretransition|}}} | Low pressure | }}
 
| label33 = {{#if: {{{lowpressuretransition|}}} | Low pressure | }}
Line 37: Line 44:
 
   {{#ifeq: {{{lowpressuretransition}}} | special |
 
   {{#ifeq: {{{lowpressuretransition}}} | special |
 
     transition occurs |
 
     transition occurs |
     turns to {{Material|mat={{{lowpressuretransition}}}}}
+
     {{Material|mat={{{lowpressuretransition}}}}}
 
   }} below {{{lowpressure}}} pressure | }}
 
   }} below {{{lowpressure}}} pressure | }}
 
| label34 = {{#if: {{{highpressuretransition|}}} | High pressure | }}
 
| label34 = {{#if: {{{highpressuretransition|}}} | High pressure | }}
Line 43: Line 50:
 
   {{#ifeq: {{{highpressuretransition}}} | special |
 
   {{#ifeq: {{{highpressuretransition}}} | special |
 
     transition occurs |
 
     transition occurs |
     turns to {{Material|mat={{{highpressuretransition}}}}}
+
     {{Material|mat={{{highpressuretransition}}}}}
 
   }} above {{{highpressure}}} pressure | }}
 
   }} above {{{highpressure}}} pressure | }}
 
}}
 
}}

Revision as of 16:26, 5 October 2014

Infobox for displaying various element properties