Template:Convert: Difference between revisions
From Halopedia, the Halo wiki
m (Protected "Template:Convert" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
m (Quite surprised this wasn't addressed.) |
||
Line 33: | Line 33: | ||
<nowiki>{{Convert|1|mph|km/h}}</nowiki> converts one MPH (miles per hour) into Kilometers per hour. This produces: {{Convert|1|mph|km/h}}. | <nowiki>{{Convert|1|mph|km/h}}</nowiki> converts one MPH (miles per hour) into Kilometers per hour. This produces: {{Convert|1|mph|km/h}}. | ||
===Misc=== | |||
The template is set to British English by default. For American English spelling: | |||
*sp=us | |||
For example: | |||
<nowiki>{{Convert|6.2|ft|cm|sp=us}}</nowiki> will change the spelling of "centimetres" to "centimeters". | |||
To flip the display of conversions: | |||
*disp=flip | |||
For example: | |||
<nowiki>{{Convert|6.2|ft|cm|disp=flip}}</nowiki> will flip the starting Imperial measurement as the converted measurement. | |||
[[Category:Convert templates]]</noinclude> | [[Category:Convert templates]]</noinclude> |
Revision as of 10:44, April 13, 2014
How to use
The template needs three objects within it.
Height/Length
Conversion list:
- cm=centimeter
- m=meter
- ft=feet
- km=kilometers
- 'Example
{{Convert|1|m|cm}} converts one unit (a meter) into centimeters. This produces: 1 metre (100 cm).
Mass
Conversion list:
- lb=pound
- kg=kilogram
- MT=Metric ton
- Example
{{Convert|1|kg|lb}} converts one unit (a Kilogram) into pounds. This produces: 1 kilogram (2.2 lb).
Speed
Conversion list:
- km/h= Kilometers per hour
- mph=Miles per hour
- Example
{{Convert|1|mph|km/h}} converts one MPH (miles per hour) into Kilometers per hour. This produces: 1 mile per hour (1.6 km/h).
Misc
The template is set to British English by default. For American English spelling:
- sp=us
For example: {{Convert|6.2|ft|cm|sp=us}} will change the spelling of "centimetres" to "centimeters".
To flip the display of conversions:
- disp=flip
For example: {{Convert|6.2|ft|cm|disp=flip}} will flip the starting Imperial measurement as the converted measurement.