Template:AdjustTemperature: Difference between revisions

From Paradise 14 Wiki
Jump to navigation Jump to search
imported>Moony
Created page with "{{#ifexpr:{{{amount|0}}}>0|Warms you up|Cools you down}} by {{{amount|0}}} thermal units{{#if:{{{when|}}}| when {{{when}}}}}."
 
imported>Aliser
cat
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifexpr:{{{amount|0}}}>0|Warms you up|Cools you down}} by {{{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 <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>