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
m (Fix second occurrence)
m (More fixes)
Line 2: Line 2:
 
}}<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}}}&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}}}&nbsp;°U</span><sup> {{
 
#if:{{{1|}}}||{{ct/e|#c00|No temperature specified!}}}} {{
 
#if:{{{1|}}}||{{ct/e|#c00|No temperature specified!}}}} {{
#ifexpr:{{{1|0}}}-10000+32>-459.67||{{ct/e|#69f|Below absolute zero}}}} {{
+
#ifexpr:{{#var:temp}}-10000+32>-459.67||{{ct/e|#69f|Below absolute zero}}}} {{
#ifexpr:{{{1|0}}}>60000|{{ct/e|#c60|Temperature too high!}}}} {{
+
#ifexpr:{{#var:temp}}>60000|{{ct/e|#c60|Temperature too high!}}}} {{
#ifexpr:{{{1|0}}}<0|{{ct/e|#00c|Temperature too low!}}}}</sup><noinclude>
+
#ifexpr:{{#var:temp}}<0|{{ct/e|#00c|Temperature too low!}}}}</sup><noinclude>
  
 
This template assists in the display of temperatures, measured in degrees Urist, by adding a hovertext which displays the temperature in degrees Celsius, rounded to the nearest one decimal point.
 
This template assists in the display of temperatures, measured in degrees Urist, by adding a hovertext which displays the temperature in degrees Celsius, rounded to the nearest one decimal point.

Revision as of 18:49, 12 May 2013

0 °U ! ! Expression error: Unexpected > operator. Expression error: Unexpected < operator.

This template assists in the display of temperatures, measured in degrees Urist, by adding a hovertext which displays the temperature in degrees Celsius, rounded to the nearest one decimal point.

Usage

Use {{ct}} to include the template, e.g.:

Water freezes at {{ct|10000}}

produces "Water freezes at 10000 °U ! Expression error: Unexpected > operator. Expression error: Unexpected < operator.".

Examples

Code Product
[[Water]] freezes at {{ct|10000}}. Water freezes at 10000 °U ! Expression error: Unexpected > operator. Expression error: Unexpected < operator..
The temperature of [[magma]] is {{ct|12000}}. The temperature of magma is 12000 °U ! Expression error: Unexpected > operator. Expression error: Unexpected < operator..