Template:AdjustTemperature: Difference between revisions

From Space Station 14 Wiki
No edit summary
(docs)
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:Templates without specific category]]
<templatedata>
{
"params": {
"amount": {
"label": "Amount of thermal units",
"type": "number",
"default": "0",
"suggested": true
},
"when": {
"label": "When what happens?",
"type": "string",
"suggested": true
}
}
}
</templatedata>
</noinclude>

Revision as of 14:41, 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.

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Amount of thermal unitsamount

no description

Default
0
Numbersuggested
When what happens?when

no description

Stringsuggested