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 (moved User:Dree12/convert to Template:Ct: move out of sandbox)
(examples)
Line 1: Line 1:
<span style="border-bottom: 1px #0000CC dotted;cursor:help;" title="{{#expr:({{{1|0}}}-10000)*5/9 round 1}} °C">{{{1|0}}}° Urist</span><noinclude>
+
<span style="border-bottom: 1px #0000CC dotted;cursor:help;" title="{{#expr:({{{1|0}}}-10000)*5/9 round 1}} °C">{{{1|0}}} °U</span><noinclude>
  
This template assists in the creation 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.
  
 
== Usage ==
 
== Usage ==
Line 7: Line 7:
 
  <nowiki>Water freezes at {{ct|10000}}</nowiki>
 
  <nowiki>Water freezes at {{ct|10000}}</nowiki>
 
produces "Water freezes at {{ct|10000}}".
 
produces "Water freezes at {{ct|10000}}".
 +
 +
== Examples ==
 +
<table class="wikitable">
 +
<tr><th>Code</th><th>Product</th></tr>
 +
<tr><td><nowiki>[[Water]] freezes at {{ct|10000}}.</nowiki></td><td>[[Water]] freezes at {{ct|10000}}.<td></tr>
 +
<tr><td><nowiki>The temperature of [[magma]] is {{ct|12000}}.</nowiki></td><td>The temperature of [[magma]] is {{ct|12000}}.<td></tr>
 +
</table>

Revision as of 03:11, 7 May 2012

0 °U

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".

Examples

CodeProduct
[[Water]] freezes at {{ct|10000}}.Water freezes at 10000 °U.
The temperature of [[magma]] is {{ct|12000}}.The temperature of magma is 12000 °U.