Template:AdjustTemperature: Difference between revisions

From Space Station 14 Wiki
No edit summary
(cat)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexpr:{{{amount|0}}}>0|Warms you up|Cools you down}} by {{#expr: abs {{{amount|0}}}}} thermal units{{#if:{{{when|}}}| when {{{when}}}}}.
<includeonly>{{#ifexpr:{{{amount|0}}}>0|Warms you up|Cools you down}} by {{#expr: abs {{{amount|0}}}}} thermal units{{#if:{{{when|}}}|&#x20;when {{{when}}}}}.</includeonly><noinclude>
{{documentation}}
 
[[Category:Recipe templates]]
<templatedata>
{
"params": {
"amount": {
"label": "Amount of thermal units",
"type": "number",
"default": "0",
"suggested": true
},
"when": {
"label": "When what happens?",
"type": "string",
"suggested": true
}
},
"description": "Describes a change of your temperature in Thermal Units when X happens."
}
</templatedata>
</noinclude>

Latest revision as of 17:05, 24 June 2024

Template documentation
view or edit this documentation about template documentation

  • {{AdjustTemperature|when=drinking slime from the floor|amount=-30}} → Cools you down by 30 thermal units when drinking slime from the floor.
  • {{AdjustTemperature|when=looking at the sun|amount=50}} → Warms you up by 50 thermal units when looking at the sun.

Describes a change of your temperature in Thermal Units when X happens.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Amount of thermal unitsamount

no description

Default
0
Numbersuggested
When what happens?when

no description

Stringsuggested