v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Difference between revisions of "Template:Magmasafe/test"
Jump to navigation
Jump to search
m |
m (Add examples for template use) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{#iferror:{{#expr:{{{1|0}}}>12000}}|yes|{{#ifexpr:{{{1|0}}}>12000|yes|no}}}}<noinclude> | + | <includeonly>{{#iferror:{{#expr:{{{1|0}}}>12000}}|yes|{{#ifexpr:{{{1|0}}}>12000|yes|no}}}}</includeonly><noinclude> |
+ | Returns either yes or no based on if the input temperature (either a number value or NONE) is safe to dump in magma. | ||
+ | For example: | ||
− | + | <code>{<!-- -->{Magmasafe/test|10000}}</code> → <code>{{Magmasafe/test|10000}}</code> | |
+ | |||
+ | <code>{<!-- -->{Magmasafe/test|12000}}</code> → <code>{{Magmasafe/test|12000}}</code> | ||
+ | |||
+ | <code>{<!-- -->{Magmasafe/test|14000}}</code> → <code>{{Magmasafe/test|14000}}</code> | ||
+ | |||
+ | <code>{<!-- -->{Magmasafe/test|NONE}}</code> → <code>{{Magmasafe/test|NONE}}</code> | ||
[[category:raw templates]]</noinclude> | [[category:raw templates]]</noinclude> |
Latest revision as of 20:51, 23 December 2022
Returns either yes or no based on if the input temperature (either a number value or NONE) is safe to dump in magma.
For example:
{{Magmasafe/test|10000}}
→ no
{{Magmasafe/test|12000}}
→ no
{{Magmasafe/test|14000}}
→ yes
{{Magmasafe/test|NONE}}
→ yes