Template:Convert: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Drumguy8800 Revert to revision 95272813 dated 2006-12-19 08:25:03 by Drumguy8800 using popups |
meta>Drumguy8800 cross your fingers again |
||
Line 1: | Line 1: | ||
{{formatnum:{{{1}}}}} [[{{#switch: {{{2|}}} | {{formatnum:{{{1}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{2|}}} | ||
|acre=acre{{#ifeq:{{{1}}}|1||{{!}}acres}} | |acre= acre{{#ifeq:{{{1}}}|1||{{!}}acres}} | ||
|ft=foot (unit of length){{!}}{{#ifeq:{{{1}}}|1|foot|feet}} | |ft= foot (unit of length){{!}}{{#ifeq:{{{1}}}|1|foot|feet}} | ||
|ha=hectare{{#ifeq:{{{1}}}|1||{{!}}hectares}} | |ha= hectare{{#ifeq:{{{1}}}|1||{{!}}hectares}} | ||
|sqft=square foot{{!}}square {{#ifeq:{{{1}}}|1|foot|feet}} | |sqft= square foot{{!}}square {{#ifeq:{{{1}}}|1|foot|feet}} | ||
|m={{#switch: {{{sp|}}}|us=meter|=metre}}{{#ifeq:{{{1}}}|1||{{!}}{{#switch: {{{sp|}}}|us=meters|=metres}}}} | |m= {{#switch: {{{sp|}}}|us=meter|=metre}}{{#ifeq:{{{1}}}|1||{{!}}{{#switch: {{{sp|}}}|us=meters|=metres}}}} | ||
|km={{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{#ifeq:{{{1}}}|1||{{!}}{{#switch: {{{sp|}}}|us=kilometers|=kilometres}}}} | |km= {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{#ifeq:{{{1}}}|1||{{!}}{{#switch: {{{sp|}}}|us=kilometers|=kilometres}}}} | ||
|mi=mile{{#ifeq:{{{1}}}|1||{{!}}miles}} | |mi= mile{{#ifeq:{{{1}}}|1||{{!}}miles}} | ||
|sqm=square {{#switch: {{{sp|}}}|us=meter|=metre}}{{#ifeq:{{{1}}}|1|{{!}}square {{#switch: {{{sp|}}}|us=meters|=metres}}}} | |sqm= square {{#switch: {{{sp|}}}|us=meter|=metre}}{{#ifeq:{{{1}}}|1||{{!}}square {{#switch: {{{sp|}}}|us=meters|=metres}}}} | ||
|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}} | ||
}}]] ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}} | }}]]|={{#switch: {{{2|}}} | ||
|acre= {{#ifeq:{{{1}}}|1|acre|acres}} | |||
|ft= {{#ifeq:{{{1}}}|1|foot|feet}} | |||
|ha= {{#ifeq:{{{1}}}|1|hectare|hectares}} | |||
|sqft= {{#ifeq:{{{1}}}|1|square foot|square feet}} | |||
|m= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=meter|=metre}}|{{#switch: {{{sp|}}}|us=meters|=metres}}}} | |||
|km= {{#ifeq:{{{1}}}|1|{{#switch: {{{sp|}}}|us=kilometer|=kilometre}}|{{#switch: {{{sp|}}}|us=kilometers|=kilometres}}}} | |||
|mi= {{#ifeq:{{{1}}}|1|mile|miles}} | |||
|sqm= {{#ifeq:{{{1}}}|1|square {{#switch: {{{sp|}}}|us=meter|=metre}}|square {{#switch: {{{sp|}}}|us=meters|=metres}}}} | |||
|sqkm= {{#ifeq:{{{1}}}|1|square {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}|square {{#switch: {{{sp|}}}|us=kilometers|=kilometres}}}} | |||
|sqmi= {{#ifeq:{{{1}}}|1|square mile|square miles}} | |||
}}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}} | |||
|acre = {{#switch: {{{3|}}} | |acre = {{#switch: {{{3|}}} | ||
|ha=0.404685642 | |ha=0.404685642 | ||
Line 70: | Line 81: | ||
|sqkm=2.58998811 | |sqkm=2.58998811 | ||
}} | }} | ||
}} {{#if: {{{4|}}} | round {{{4}}} }}}}}} [[{{#switch: {{{3|}}} | }} {{#if: {{{4|}}} | round {{{4}}} }}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}} | ||
|acre=acre | |acre= acre | ||
|ft=foot (unit of length){{!}}ft | |ft= foot (unit of length){{!}}ft | ||
|ha=hectare{{!}}ha | |ha= hectare{{!}}ha | ||
|sqft=square foot{{!}}ft² | |sqft= square foot{{!}}ft² | ||
|m={{#switch: {{{sp|}}}|us=meter|=metre}}{{!}}m | |m= {{#switch: {{{sp|}}}|us=meter|=metre}}{{!}}m | ||
|km={{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{!}}km | |km= {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{!}}km | ||
|mi=mile{{!}}mi | |mi= mile{{!}}mi | ||
|sqm=square {{#switch: {{{sp|}}}|us=meter|=metre}}{{!}}m² | |sqm= square {{#switch: {{{sp|}}}|us=meter|=metre}}{{!}}m² | ||
|sqkm=square {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{!}}km² | |sqkm= square {{#switch: {{{sp|}}}|us=kilometer|=kilometre}}{{!}}km² | ||
|sqmi=square mile{{!}}mi² | |sqmi= square mile{{!}}mi² | ||
}}]])<noinclude>{{esoteric}}<br/>[[Image:Flag of the United States.svg|20px]] '''U.S. USERS''': If you prefer '''meter''' over '''metre''' for your article, simply attatch <code><nowiki>{{convert|...|sp=us}}</nowiki></code> to the end of the template!<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> | }}]]|={{#switch: {{{3|}}} | ||
|acre= acre | |||
|ft= ft | |||
|ha= ha | |||
|sqft= ft² | |||
|m= m | |||
|km= km | |||
|mi= mi | |||
|sqm= m² | |||
|sqkm= km² | |||
|sqmi= mi² | |||
}}}})<noinclude>{{esoteric}}<br/>[[Image:Flag of the United States.svg|20px]] '''U.S. USERS''': If you prefer '''meter''' over '''metre''' for your article, simply attatch <code><nowiki>{{convert|...|sp=us}}</nowiki></code> to the end of the template!<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 21:49, 19 December 2006
{{{1}}} (Expression error: Unrecognized punctuation character "{". )Template:Esoteric
File:Flag of the United States.svg U.S. USERS: If you prefer meter over metre for your article, simply attatch {{convert|...|sp=us}}
to the end of the template!
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.