Template:Type: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(potential bugfix for Infobox rows that use the Quality template v2)
(Add heat and fuel as types for energy consumption)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#vardefine|unit|{{lc:{{#explode:{{{1}}}| |-1}}}}}}{{#replace:{{{1}}}|{{#switch:{{#var:unit}}|<nowiki> </nowiki>}} {{#switch:{{#var:unit}}
{{#switch:{{lc:{{#explode:{{{1}}}| |-1}}}}
| burner = ([[Fuel{{If language suffix}}|{{Translation|burner}}]])
| heat  = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}} ([[Fuel{{If language suffix}}|heat]])
| electric = ([[Electric system{{If language suffix}}|{{Translation|electric}}]])
| fuel  = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}} ([[Fuel{{If language suffix}}|{{Translation|fuel}}]])
| explosion | explosive = ([[Damage{{If language suffix}}|explosive]])
| burner = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}} ([[Fuel{{If language suffix}}|{{Translation|burner}}]])
| physical = ([[Damage{{If language suffix}}|physical]])
| electric = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}} ([[Electric system{{If language suffix}}|{{Translation|electric}}]])
| poison = /s ([[Damage{{If language suffix}}|poison]])
| explosion | explosive = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}} ([[Damage{{If language suffix}}|explosive]])
| laser = ([[Damage{{If language suffix}}|laser]])
| physical = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}} ([[Damage{{If language suffix}}|physical]])
| poison = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}}/s ([[Damage{{If language suffix}}|poison]])
| laser = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}}([[Damage{{If language suffix}}|laser]])
}}<noinclude>
}}<noinclude>



Latest revision as of 18:33, 12 November 2024