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 (Only show degrees U when a raw number is passed)
(doc)
Line 5: Line 5:
 
#ifexpr:{{#var:temp|0}}>60000|{{ct/e|#c60|Temperature too high!}}}} {{
 
#ifexpr:{{#var:temp|0}}>60000|{{ct/e|#c60|Temperature too high!}}}} {{
 
#ifexpr:{{#var:temp|0}}<0|{{ct/e|#00c|Temperature too low!}}}}</sup><noinclude>
 
#ifexpr:{{#var:temp|0}}<0|{{ct/e|#00c|Temperature too low!}}}}</sup><noinclude>
 
+
{{documentation}}
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 {{tl|ct}} to include the template, e.g.:
 
<nowiki>Water freezes at {{ct|10000}}</nowiki>
 
produces "Water freezes at {{ct|10000}}".
 
 
 
== Examples ==
 
{| class="wikitable"
 
! Code !! Product
 
|-
 
| <nowiki>[[Water]] freezes at {{ct|10000}}.</nowiki> || [[Water]] freezes at {{ct|10000}}.
 
|-
 
| <nowiki>{{ct|[[Water]] freezes at 10000 °U.}}</nowiki> || {{ct|[[Water]] freezes at 10000 °U.}}
 
|-
 
| <nowiki>The temperature of [[magma]] is {{ct|12000}}.</nowiki> || The temperature of [[magma]] is {{ct|12000}}.
 
|}
 
 
</noinclude>
 
</noinclude>

Revision as of 03:34, 24 July 2013

0 ! !