Template:Unit/Doc/Data: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>David Yamakuchi
imported>David Yamakuchi
mNo edit summary
Line 1: Line 1:
== Examples of {{Tl|Unit}} displayed on a /Data page ==
== Example of the {{Tl|Unit}} template displayed on a /Data page ==
<pre>Nitrogen BP:[[Nitrogen/Boiling point|{{Round1|{{#expr:{{:Nitrogen/Boiling point}}}}}}]]<br />
Or rather not displayed, as it were.  The {{Tl|Unit}} template truncates the alpha characters from the number on /Data pages so they can be used in <nowiki>{{#expr:}}</nowiki> functions.
Oxygen BP:[[Oxygen/Boiling point|{{Round1|{{:Oxygen/Boiling point}}}}]]<br /></pre>
<pre>{| border="1"
 
|-
Nitrogen BP:[[Nitrogen/Boiling point|{{Round1|{{#expr:{{:Nitrogen/Boiling point}}}}}}]]<br />
|colspan="2"|<font size=4em>'''Boiling points'''</font>
Oxygen BP:[[Oxygen/Boiling point|{{Round1|{{:Oxygen/Boiling point}}}}]]<br />
|-
 
|[[Carbon]]:
<pre>Nitrogen BP:[[Nitrogen/Boiling point|{{#expr:{{:Nitrogen/Boiling point}} round 0}}]]<br />
| {{:Carbon/Boiling point}}<br />
Oxygen BP:[[Oxygen/Boiling point|{{#expr:{{:Oxygen/Boiling point}} round 0}}]]
|-
{{:Oxygen/Boiling point/Unit}}<br /></pre>
|[[Nitrogen]]:
 
| {{:Nitrogen/Boiling point}}<br />
Nitrogen BP:[[Nitrogen/Boiling point|{{#expr:{{:Nitrogen/Boiling point}} round 0}}]]<br />
|-
Oxygen BP:[[Oxygen/Boiling point|{{#expr:{{:Oxygen/Boiling point}} round 0}}]]
|[[Oxygen]]:
{{:Oxygen/Boiling point/Unit}}<br />
| {{:Oxygen/Boiling point}}<br />
|}</pre>
{| border="1"
|-
|colspan="2"|<font size=4em>'''Boiling points'''</font>
|-
|[[Carbon]]:
| {{:Carbon/Boiling point}}<br />
|-
|[[Nitrogen]]:
| {{:Nitrogen/Boiling point}}<br />
|-
|[[Oxygen]]:
| {{:Oxygen/Boiling point}}<br />
|}

Revision as of 16:52, 23 June 2008

Example of the {{Unit}} template displayed on a /Data page

Or rather not displayed, as it were. The {{Unit}} template truncates the alpha characters from the number on /Data pages so they can be used in {{#expr:}} functions.

{| border="1"
|-
|colspan="2"|<font size=4em>'''Boiling points'''</font>
|-
|[[Carbon]]:
| {{:Carbon/Boiling point}}<br />
|-
|[[Nitrogen]]:
| {{:Nitrogen/Boiling point}}<br />
|-
|[[Oxygen]]:
| {{:Oxygen/Boiling point}}<br />
|}
Boiling points
Carbon: 3800 °C


Nitrogen: -195.79 °C
Oxygen: -182.962 °C