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)
mNo edit summary
 
Line 4: Line 4:
<templatedata>
<templatedata>
{
{
"description": "Display a combustion reaction, automatically calculating combustion energy.",
"description": "Display a combustion reaction, automatically calculating combustion energy.",
"params":{
"params": {
    "ShowAutoignition": {
"ShowAutoignition": {
        "label": "Show Autoignition",
"label": "Show Autoignition",
        "type": "boolean",
"type": "boolean",
        "required": false,
"required": false,
        "suggested": true,
"suggested": false,
        "description": "Whether to display autoignition temperature.",
"description": "Whether to display autoignition temperature.",
        "default": "false",
"default": "false",
        "suggestedvalues": ["true", "false"]
"autovalue": "true"
        },
},
    "Fuel": {
"Fuel": {
        "label": "Fuel",
"label": "Fuel",
        "type": "line",
"type": "line",
        "required": true,
"required": true,
        "description": "The fuel (or hypergol) used in the combustion, along with its quantity. Example: Methane, 2",
"description": "The fuel (or hypergol) used in the combustion, along with its quantity.",
        "suggestedvalues": ["Methane, ", "Hydrogen, ", "Alcohol, 1", "Hydrazine, 1"]
"suggestedvalues": [
        },
"Methane, ",
    "Oxidizer": {
"Hydrogen, ",
        "label": "Oxidizer",
"Alcohol, 1",
        "type": "line",
"Hydrazine, 1"
        "required": false,
],
        "suggested": true,
"example": "Methane, 2"
        "description": "The oxidizer used in the combustion, along with its quantity. Example: Oxygen, 1",
},
"suggestedvalues": ["Oxygen, ", "Nitrous Oxide, ", "Ozone, "]
"Oxidizer": {
        },
"label": "Oxidizer",
    "OutputA": {
"type": "line",
        "label": "Output",
"required": false,
        "type": "line",
"suggested": true,
        "required": false,
"description": "The oxidizer used in the combustion, along with its quantity.",
        "suggested": true,
"suggestedvalues": [
        "description": "The oxidizer used in the combustion, along with its quantity. Example: Carbon Dioxide, 6",
"Oxygen, ",
"suggestedvalues": ["Carbon Dioxide, ", "Pollutant, ", "Steam, ","Nitrogen, "],
"Nitrous Oxide, ",
        "aliases": ["Output1","Output"]
"Ozone, "
        },
],
    "OutputB": {
"example": "Oxygen, 1"
        "label": "Output 2",
},
        "type": "line",
"OutputA": {
        "required": false,
"label": "Output",
        "suggested": false,
"type": "line",
        "description": "Additional combustion output.",
"required": false,
        "suggestedvalues": ["Carbon Dioxide, ", "Pollutant, ", "Steam, ","Nitrogen, "],
"suggested": true,
        "aliases": ["Output2"]
"description": "The oxidizer used in the combustion, along with its quantity.",
        },
"suggestedvalues": [
    "OutputC": {
"Carbon Dioxide, ",
        "label": "Output 3",
"Pollutant, ",
        "type": "line",
"Steam, ",
        "required": false,
"Nitrogen, "
        "suggested": false,
],
        "description": "Additional combustion output.",
"aliases": [
        "suggestedvalues": ["Carbon Dioxide, ", "Pollutant, ", "Steam, ","Nitrogen, "],
"Output1",
        "aliases": ["Output3"]
"Output"
        }
],
 
"example": "Carbon Dioxide, 6"
    }
},
"OutputB": {
"label": "Output 2",
"type": "line",
"required": false,
"suggested": false,
"description": "Additional combustion output.",
"suggestedvalues": [
"Carbon Dioxide, ",
"Pollutant, ",
"Steam, ",
"Nitrogen, "
],
"aliases": [
"Output2"
]
},
"OutputC": {
"label": "Output 3",
"type": "line",
"required": false,
"suggested": false,
"description": "Additional combustion output.",
"suggestedvalues": [
"Carbon Dioxide, ",
"Pollutant, ",
"Steam, ",
"Nitrogen, "
],
"aliases": [
"Output3"
]
}
}
}
}
</templatedata>
</templatedata>

Latest revision as of 23:48, 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.

Default
false
Auto value
true
Booleanoptional
FuelFuel

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

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

The oxidizer used in the combustion, along with its quantity.

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

The oxidizer used in the combustion, along with its quantity.

Suggested values
Carbon Dioxide, Pollutant, Steam, Nitrogen,
Example
Carbon Dioxide, 6
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 = 1x + 6x + 3x + 858 kJ