Difference between revisions of "Template:Infobox Element"
(No category for Life menu, since all the LIFE variants are in Element:LIFE) |
m (update github username) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
| SC_WALL = [[:Category:Walls|Walls]] {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Walls]] | }} | | SC_WALL = [[:Category:Walls|Walls]] {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Walls]] | }} | ||
| SC_ELEC = [[:Category:Electronics|Electronics]] {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Electronics]] | }} | | SC_ELEC = [[:Category:Electronics|Electronics]] {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Electronics]] | }} | ||
− | | SC_POWERED = | + | | SC_POWERED = [[:Category:Powered Materials|Powered Materials]] {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Powered Materials]] | }} |
− | | SC_SENSOR = | + | | SC_SENSOR = [[:Category:Sensors|Sensors]] {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Sensors]] | }} |
− | | SC_FORCE = | + | | SC_FORCE = [[:Category:Force|Force Elements]] {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Force]] | }} |
| SC_EXPLOSIVE = [[:Category:Explosives|Explosives]] {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Explosives]] | }} | | SC_EXPLOSIVE = [[:Category:Explosives|Explosives]] {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Explosives]] | }} | ||
| SC_GAS = [[:Category:Gases|Gases]] {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Gases]] | }} | | SC_GAS = [[:Category:Gases|Gases]] {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Gases]] | }} | ||
Line 25: | Line 25: | ||
| SC_CRACKER2 = Shenanigans | | SC_CRACKER2 = Shenanigans | ||
| unknown | | unknown | ||
− | }}{{#ifexpr: {{{menuvisible}}} = 0 | (hidden) | }}</span> | + | }} {{#ifexpr: {{{menuvisible}}} = 0 | (hidden) | }}</span> |
| label4 = Spawn temperature | | label4 = Spawn temperature | ||
| data4 = {{Temperature|t={{{temperature}}}}} | | data4 = {{Temperature|t={{{temperature}}}}} | ||
Line 34: | Line 34: | ||
| label7 = [[Gravity]] | | label7 = [[Gravity]] | ||
| data7 = {{{gravity}}} | | data7 = {{{gravity}}} | ||
− | | label8 = Acid dissolve rate | + | | label8 = [[Element:ACID|Acid]] dissolve rate |
| data8 = {{#ifexpr: {{{hardness}}} > 1000 | 100% | {{#expr:{{{hardness}}}*100/1000 round 1}}% }} | | data8 = {{#ifexpr: {{{hardness}}} > 1000 | 100% | {{#expr:{{{hardness}}}*100/1000 round 1}}% }} | ||
| label10 = [[Flammability]] | | label10 = [[Flammability]] | ||
Line 79: | Line 79: | ||
}} above {{{highpressure}}} pressure | }} | }} above {{{highpressure}}} pressure | }} | ||
| header40 = {{#if: {{#pos:{{{properties|}}} | PROP_}} | Misc properties |}} | | header40 = {{#if: {{#pos:{{{properties|}}} | PROP_}} | Misc properties |}} | ||
− | | data46 = {{#if: {{#pos:{{{properties|}}}|PROP_CONDUCTS}} | Conducts electricity ({{Material | SPRK}}) {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Conductive]] | }} | }} | + | | data46 = {{#if: {{#pos:{{{properties|}}}|PROP_CONDUCTS}} | <span data-toggle="tooltip" data-original-title="PROP_CONDUCTS">Conducts electricity ({{Material|SPRK}})</span> {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Conductive]] | }} | }} |
− | | data47 = {{#if: {{#pos:{{{properties|}}}|PROP_NEUTPENETRATE}} | Mangled by neutrons | }} | + | | data47 = {{#if: {{#pos:{{{properties|}}}|PROP_NEUTPENETRATE}} | <span data-toggle="tooltip" data-original-title="PROP_NEUTPENETRATE">Mangled by neutrons</span> | }} |
− | | data48 = {{#if: {{#pos:{{{properties|}}}|PROP_NEUTABSORB}} | Absorbs neutrons | }} | + | | data48 = {{#if: {{#pos:{{{properties|}}}|PROP_NEUTABSORB}} | <span data-toggle="tooltip" data-original-title="PROP_NEUTABSORB">Absorbs neutrons</span> | }} |
− | | data49 = {{#if: {{#pos:{{{properties|}}}|PROP_NEUTPASS}} | Allows neutrons to pass through | }} | + | | data49 = {{#if: {{#pos:{{{properties|}}}|PROP_NEUTPASS}} | <span data-toggle="tooltip" data-original-title="PROP_NEUTPASS">Allows neutrons to pass through</span> | }} |
− | | data50 = {{#if: {{#pos:{{{properties|}}}|PROP_DEADLY}} | Harmful to {{Material | STKM}} | }} | + | | data50 = {{#if: {{#pos:{{{properties|}}}|PROP_DEADLY}} | <span data-toggle="tooltip" data-original-title="PROP_DEADLY">Harmful to {{Material | STKM}}</span> | }} |
− | | data51 = {{#if: {{#pos:{{{properties|}}}|PROP_RADIOACTIVE}} | Radioactive, harmful to {{Material | STKM}} | }} | + | | data51 = {{#if: {{#pos:{{{properties|}}}|PROP_RADIOACTIVE}} | <span data-toggle="tooltip" data-original-title="PROP_RADIOACTIVE">Radioactive, harmful to {{Material | STKM}}</span> | }} |
+ | | data60 = [https://github.com/ThePowderToy/The-Powder-Toy/blob/master/{{#if: {{{srcfile|}}}|{{{srcfile}}}|src/simulation/elements/{{#explode:{{{identifier|}}}|_|-1}}.cpp}} Source code] | ||
}} | }} | ||
{{#ifeq: {{{nocat|0}}} | 0 | [[Category:Elements]] | }} | {{#ifeq: {{{nocat|0}}} | 0 | [[Category:Elements]] | }} |
Latest revision as of 15:18, 7 July 2018
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:
{{ 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 PROP_CONDUCTS PROP_NEUTPENETRATE PROP_DEADLY | lowtemperature = 1234 | lowtemperaturetransition = DUST | hightemperature = 5678 | hightemperaturetransition = special | lowpressure = | lowpressuretransition = | highpressure = | highpressuretransition = }}
which gives
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 | below 960.85°C |
High temperature | transition occurs above 5404.85°C |
Misc properties | |
Conducts electricity (SPRK) | |
Mangled by neutrons | |
Harmful to STKM | |
Source code |