Difference between revisions of "Template:Infobox Element"

From The Powder Toy
Jump to: navigation, search
(Use MaterialBtn for transitions, add example infobox, and allow turning off categories so that the example doesn't cause this template page to be categorised)
(<pre>)
Line 94: Line 94:
 
Example:
 
Example:
  
<nowiki>{{ infobox Element
+
<nowiki><pre>{{ infobox Element
 
| icon = ASDF.png
 
| icon = ASDF.png
 
| longname =  
 
| longname =  
Line 131: Line 131:
 
| highpressure =  
 
| highpressure =  
 
| highpressuretransition =  
 
| highpressuretransition =  
}}</nowiki>
+
}}</pre></nowiki>
  
 
which gives
 
which gives
Line 139: Line 139:
 
| longname =  
 
| longname =  
 
| image =  
 
| image =  
 +
| nocat = 1
  
 
| identifier = DEFAULT_PT_ASDF
 
| identifier = DEFAULT_PT_ASDF

Revision as of 14:33, 6 October 2014

Infobox for displaying various element properties.

Most of them should be passed exactly as in the source code. However, the properties parameter should be space separated (so remove the pipes). Example: TYPE_LIQUID PROP_CONDUCTS PROP_NEUTPENETRATE PROP_LIFE_DEC

Example:

<pre>{{ infobox Element | icon = ASDF.png | longname = | image = | identifier = DEFAULT_PT_ASDF | name = ASDF | description = Very light dust. Flammable. | colour = FFE0A0 | menusection = SC_POWDERS | menuvisible = 1 | advection = 0.7 | airdrag = 0.02 | airloss = 0.96 | loss = 0.8 | collision = 0 | diffusion = 0 | explosive = 0 | falldown = 1 | flammable = 10 | gravity = 0.1 | hardness = 30 | heatconduct = 70 | hotair = 0 | meltable = 0 | state = ST_SOLID | temperature = 2564.15 | weight = 85 | properties = TYPE_PART PROP_LIFE_DEC PROP_LIFE_KILL_DEC | lowtemperature = 1234 | lowtemperaturetransition = DUST | hightemperature = 5678 | hightemperaturetransition = special | lowpressure = | lowpressuretransition = | highpressure = | highpressuretransition = }}</pre>

which gives

ASDF.png
Properties
Section Powders
Spawn temperature 2291°C
Heat Conductivity 28%
Relative weight 85
Gravity 0.1
Acid dissolve rate 3%
Flammability 10
State Powder
Transitions
Low temperature DUST.png below 960.85°C
High temperature transition occurs above 5404.85°C
Misc properties
Source code