Template:Combustion: Difference between revisions
Template page
More actions
No edit summary |
Add visual editor template documentation |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Template script at [[Module:Combustion]]. | Template script at [[Module:Combustion]]. | ||
<templatedata> | |||
{ | |||
"description": "Display a gas or liquid's icon image, with a link to its corresponding wiki page.", | |||
"params":{ | |||
"Fuel": { | |||
"label": "Fuel", | |||
"type": "string", | |||
"required": true, | |||
"description": "The fuel (or hypergol) used in the combustion, along with its quantity. Example: Methane, 2", | |||
"suggestedvalues": ["Methane, 2", "Hydrogen, 2", "Alcohol, 1", "Hydrazine, 1"] | |||
}, | |||
"Oxidizer": { | |||
"label": "Oxidizer", | |||
"type": "string", | |||
"required": false, | |||
"suggested": true, | |||
"description": "The oxidizer used in the combustion, along with its quantity. Example: Oxygen, 1", | |||
"suggestedvalues": ["Oxygen, 1", "Nitrous Oxide, 1", "Ozone, 2"] | |||
}, | |||
"Output": { | |||
"label": "Output", | |||
"type": "string", | |||
"required": false, | |||
"suggested": true, | |||
"description": "The oxidizer used in the combustion, along with its quantity. Example: Carbon Dioxide, 6" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
Additional outputs can be created by creating more fields with names starting with "Output". Example: "Output2" with value "Pollutant, 3" | |||
Use example: | Use example: | ||
| Line 11: | Line 43: | ||
</noinclude> | </noinclude><includeonly>{{#invoke:Combustion|Template}}</includeonly> | ||
<includeonly>{{#invoke:Combustion|Template}}</includeonly> | |||
Revision as of 22:13, 15 March 2026
Template script at Module:Combustion.
Display a gas or liquid's icon image, with a link to its corresponding wiki page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Fuel | Fuel | The fuel (or hypergol) used in the combustion, along with its quantity. Example: Methane, 2
| String | required |
| Oxidizer | Oxidizer | The oxidizer used in the combustion, along with its quantity. Example: Oxygen, 1
| String | suggested |
| Output | Output | The oxidizer used in the combustion, along with its quantity. Example: Carbon Dioxide, 6 | String | suggested |
Additional outputs can be created by creating more fields with names starting with "Output". Example: "Output2" with value "Pollutant, 3"
Use example:
{{Combustion|Fuel = Methane, 3|Oxidizer = Ozone, 2|Output = Pollutant, 3|Output2 = Carbon Dioxide, 6| Output3 = Steam, 1}}
->