Template:Type: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
Untitled7 (talk | contribs)
potential bugfix for Infobox rows that use the Quality template v3
Zaz (talk | contribs)
Add heat and fuel as types for energy consumption
Line 1: Line 1:
{{#switch:{{lc:{{#explode:{{{1}}}| |-1}}}}
{{#switch:{{lc:{{#explode:{{{1}}}| |-1}}}}
| heat  = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}} ([[Fuel{{If language suffix}}|heat]])
| fuel  = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}} ([[Fuel{{If language suffix}}|{{Translation|fuel}}]])
| burner = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}} ([[Fuel{{If language suffix}}|{{Translation|burner}}]])
| burner = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}} ([[Fuel{{If language suffix}}|{{Translation|burner}}]])
| electric = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}} ([[Electric system{{If language suffix}}|{{Translation|electric}}]])
| electric = {{#sub:{{{1}}}|0|-{{#len:{{#explode:{{{1}}}| |-1}}}}}} ([[Electric system{{If language suffix}}|{{Translation|electric}}]])

Revision as of 18:33, 12 November 2024