Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Combustion: Difference between revisions

Template page
RA2lover (talk | contribs)
mNo edit summary
RA2lover (talk | contribs)
change parameter types so as to display in a order that is actually respected by pairs
Line 30: Line 30:
"suggestedvalues": ["Oxygen, ", "Nitrous Oxide, ", "Ozone, "]
"suggestedvalues": ["Oxygen, ", "Nitrous Oxide, ", "Ozone, "]
         },
         },
     "Output1": {
     "OutputA": {
         "label": "Output",
         "label": "Output",
         "type": "line",
         "type": "line",
Line 37: Line 37:
         "description": "The oxidizer used in the combustion, along with its quantity. Example: Carbon Dioxide, 6",
         "description": "The oxidizer used in the combustion, along with its quantity. Example: Carbon Dioxide, 6",
"suggestedvalues": ["Carbon Dioxide, ", "Pollutant, ", "Steam, ","Nitrogen, "],
"suggestedvalues": ["Carbon Dioxide, ", "Pollutant, ", "Steam, ","Nitrogen, "],
         "aliases":["Output"]
         "aliases": ["Output1","Output"]
         },
         },
     "Output2": {
     "OutputB": {
         "label": "Output 2",
         "label": "Output 2",
         "type": "line",
         "type": "line",
Line 45: Line 45:
         "suggested": false,
         "suggested": false,
         "description": "Additional combustion output.",
         "description": "Additional combustion output.",
         "suggestedvalues": ["Carbon Dioxide, ", "Pollutant, ", "Steam, ","Nitrogen, "]
         "suggestedvalues": ["Carbon Dioxide, ", "Pollutant, ", "Steam, ","Nitrogen, "],
        "aliases": ["Output2"]
         },
         },
     "Output3": {
     "OutputC": {
         "label": "Output 3",
         "label": "Output 3",
         "type": "line",
         "type": "line",
Line 53: Line 54:
         "suggested": false,
         "suggested": false,
         "description": "Additional combustion output.",
         "description": "Additional combustion output.",
         "suggestedvalues": ["Carbon Dioxide, ", "Pollutant, ", "Steam, ","Nitrogen, "]
         "suggestedvalues": ["Carbon Dioxide, ", "Pollutant, ", "Steam, ","Nitrogen, "],
        "aliases": ["Output3"]
         }
         }


Line 60: Line 62:
</templatedata>
</templatedata>


Additional outputs can be created by creating more fields with names starting with "Output" on the source editor. Example: "Output4" with value "Pollutant, 3"
Additional outputs can be created by creating more fields with names starting with "Output" on the source editor. Example: "OutputD" with value "Pollutant, 3"


Use example:
Use example:

Revision as of 23:18, 15 March 2026

Template script at Module:Combustion.

Display a combustion reaction, automatically calculating combustion energy.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Show AutoignitionShowAutoignition

Whether to display autoignition temperature.

Suggested values
true
Default
false
Booleansuggested
FuelFuel

The fuel (or hypergol) used in the combustion, along with its quantity. Example: Methane, 2

Suggested values
Methane, Hydrogen, Alcohol, 1 Hydrazine, 1
Linerequired
OxidizerOxidizer

The oxidizer used in the combustion, along with its quantity. Example: Oxygen, 1

Suggested values
Oxygen, Nitrous Oxide, Ozone,
Linesuggested
OutputOutputA Output1 Output

The oxidizer used in the combustion, along with its quantity. Example: Carbon Dioxide, 6

Suggested values
Carbon Dioxide, Pollutant, Steam, Nitrogen,
Linesuggested
Output 2OutputB Output2

Additional combustion output.

Suggested values
Carbon Dioxide, Pollutant, Steam, Nitrogen,
Lineoptional
Output 3OutputC Output3

Additional combustion output.

Suggested values
Carbon Dioxide, Pollutant, Steam, Nitrogen,
Lineoptional

Additional outputs can be created by creating more fields with names starting with "Output" on the source editor. Example: "OutputD" with value "Pollutant, 3"

Use example:

{{Combustion|Fuel = Methane, 3|Oxidizer = Ozone, 2|Output = Pollutant, 3|Output2 = Carbon Dioxide, 6| Output3 = Steam, 1}}

->

3x + 2x = 1x + 6x + 3x + 1716 kJ