Template:Convert: Difference between revisions
Jump to navigation
Jump to search
>Drumguy8800 (reabbreviate, add knots) |
>Drumguy8800 (Revert to revision 97579253 dated 2006-12-31 18:38:27 by Drumguy8800 using popups) |
||
Line 14: | Line 14: | ||
|sqkm= square kilometre{{#ifeq:{{{1}}}|1||{{!}}square kilometres}} | |sqkm= square kilometre{{#ifeq:{{{1}}}|1||{{!}}square kilometres}} | ||
|sqmi= square mile{{#ifeq:{{{1}}}|1||{{!}}square miles}} | |sqmi= square mile{{#ifeq:{{{1}}}|1||{{!}}square miles}} | ||
|sqnmi=square nautical | |sqnmi=square nautical miles{{#ifeq:{{{1}}}|1||{{!}}square nautical miles}} | ||
}}]]|={{#switch: {{{2|}}} | }}]]|={{#switch: {{{2|}}} | ||
|ft= {{#ifeq:{{{1}}}|1|foot|feet}} | |ft= {{#ifeq:{{{1}}}|1|foot|feet}} | ||
Line 34: | Line 31: | ||
|sqmi= {{#ifeq:{{{1}}}|1|square mile|square miles}} | |sqmi= {{#ifeq:{{{1}}}|1|square mile|square miles}} | ||
|sqnmi={{#ifeq:{{{1}}}|1|square nautical mile|square nautical miles}} | |sqnmi={{#ifeq:{{{1}}}|1|square nautical mile|square nautical miles}} | ||
| | |mph= {{#ifeq:{{{1}}}|1|miles per hour|mile per hour}} | ||
| | |kph= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=kilometer|=kilometre}} per hour|{{#switch: {{{sp|}}}|us=kilometers|=kilometres}} per hour}} | ||
}}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}} | }}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}} | ||
|ft = {{#switch: {{{3|}}} | |ft = {{#switch: {{{3|}}} | ||
Line 166: | Line 162: | ||
|sqmi=1.32429334 | |sqmi=1.32429334 | ||
}} | }} | ||
| | |mph= {{#switch: {{{3|}}} | ||
| | |kph=1.609344 | ||
}} | }} | ||
| | |kph= {{#switch: {{{3|}}} | ||
| | |mph=0.621371192 | ||
}} | }} | ||
}} {{#if: {{{4|}}} | round {{{4}}} }}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}} | }} {{#if: {{{4|}}} | round {{{4}}} }}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}} | ||
Line 193: | Line 184: | ||
|sqmi= square mile{{!}}mi² | |sqmi= square mile{{!}}mi² | ||
|sqnmi=square nautical mile{{!}}nmi² | |sqnmi=square nautical mile{{!}}nmi² | ||
| | |mph= miles per hour{{!}}mph | ||
| | |kph= kilometres per hour{{!}}kph | ||
}}]]|={{#switch: {{{3|}}} | }}]]|={{#switch: {{{3|}}} | ||
|ft= ft | |ft= ft | ||
Line 212: | Line 202: | ||
|sqmi= mi² | |sqmi= mi² | ||
|sqnmi=nmi² | |sqnmi=nmi² | ||
| | |mph= mph | ||
| | |kph= kph | ||
}}}})<noinclude>{{esoteric}} | }}}})<noinclude>{{esoteric}} | ||
;Two things to remember! | ;Two things to remember! | ||
*[[Image:Flag of the United States.svg|20px]] '''U.S. USERS''': If you prefer '''meter''' over '''metre''' for your article, simply attatch <code><nowiki>|sp=us</nowiki></code> to the end of the template! | *[[Image:Flag of the United States.svg|20px]] '''U.S. USERS''': If you prefer '''meter''' over '''metre''' for your article, simply attatch <code><nowiki>|sp=us</nowiki></code> to the end of the template! | ||
*To make the units [[Wikipedia:Manual of Style (links)|link]] to unit articles, add <code><nowiki>|lk=on</nowiki></code> to the end of the template! The [[WP:MOS|manual of style]] suggests that you only link the first instance.<br/><br/>Use in the following matter: <code><nowiki>{{convert|original value|original unit|conversion unit|round to}}</nowiki></code><br/><br/>'''Rounding:''' The number given for rounding rounds off the result to the power of 1/10 the rounding number. For instance, if the result is 8621 and the round number is '-2', the result will be 8700. If the result is '234.0283043' and the round number is '0', the result will be 234.</noinclude> | *To make the units [[Wikipedia:Manual of Style (links)|link]] to unit articles, add <code><nowiki>|lk=on</nowiki></code> to the end of the template! The [[WP:MOS|manual of style]] suggests that you only link the first instance.<br/><br/>Use in the following matter: <code><nowiki>{{convert|original value|original unit|conversion unit|round to}}</nowiki></code><br/><br/>'''Rounding:''' The number given for rounding rounds off the result to the power of 1/10 the rounding number. For instance, if the result is 8621 and the round number is '-2', the result will be 8700. If the result is '234.0283043' and the round number is '0', the result will be 234.</noinclude> |
Revision as of 13:54, 31 December 2006
{{{1}}} (Expression error: Unrecognized punctuation character "{". )Template:Esoteric
- Two things to remember!
- U.S. USERS: If you prefer meter over metre for your article, simply attatch
|sp=us
to the end of the template! - To make the units link to unit articles, add
|lk=on
to the end of the template! The manual of style suggests that you only link the first instance.
Use in the following matter:{{convert|original value|original unit|conversion unit|round to}}
Rounding: The number given for rounding rounds off the result to the power of 1/10 the rounding number. For instance, if the result is 8621 and the round number is '-2', the result will be 8700. If the result is '234.0283043' and the round number is '0', the result will be 234.