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:Ct"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(allow editing the nonetext)
(make NONE case-insensitive)
 
Line 1: Line 1:
<!-- Special case if "NONE": Just display "none" without any formatting. Needed for stone templates, since NONE is found in raws. -->{{#ifeq:{{{1}}}|NONE|{{{2|none}}}|{{
+
<!-- Special case if "NONE": Just display "none" without any formatting. Needed for stone templates, since NONE is found in raws. -->{{#ifeq:{{uc:{{{1}}}}}|NONE|{{{2|none}}}|{{
 
#vardefine:temp|{{#rmatch:{{{1|0}}}|\d+(\.\d+)?|$0}}
 
#vardefine:temp|{{#rmatch:{{{1|0}}}|\d+(\.\d+)?|$0}}
 
}}<span style="border-bottom: 1px #0000CC dotted;cursor:help;" title="{{#expr:({{#var:temp}}-10000)*5/9 round 1}}&nbsp;°C  ({{#expr:({{#var:temp}}-10000)+32 round 1}}&nbsp;°F)">{{{1|0}}}{{#ifeq:{{#var:temp}}|{{{1}}}|&nbsp;°U}}</span><sup> {{
 
}}<span style="border-bottom: 1px #0000CC dotted;cursor:help;" title="{{#expr:({{#var:temp}}-10000)*5/9 round 1}}&nbsp;°C  ({{#expr:({{#var:temp}}-10000)+32 round 1}}&nbsp;°F)">{{{1|0}}}{{#ifeq:{{#var:temp}}|{{{1}}}|&nbsp;°U}}</span><sup> {{

Latest revision as of 03:08, 19 May 2017

0 ! !