Template:Convert: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Drumguy8800
(..conversions for km/mi)
>Drumguy8800
(fix acre)
Line 1: Line 1:
{{formatnum:{{{1}}}}} [[{{#switch: {{{2|}}}|acre=acre{{#ifeq:{{{1}}}|1||{{!}}acres}}|ft=foot (unit of length){{!}}{{#ifeq:{{{1}}}|1|foot|feet}}|ha=hectare{{#ifeq:{{{1}}}|1||{{!}}hectacres}}|sqft=square foot{{!}}square {{#ifeq:{{{1}}}|1|foot|feet}}|m=metre{{#ifeq:{{{1}}}|1||{{!}}metres}}|km=kilometre{{#ifeq:{{{1}}}|1||{{!}}kilometres}}|mi=mile{{#ifeq:{{{1}}}|1||{{!}}miles}}|sqm=square metre{{#ifeq:{{{1}}}|1||{{!}}square metres}}|sqkm=square kilometre{{#ifeq:{{{1}}}|1||{{!}}square kilometres}}|sqmi=square mile{{#ifeq:{{{1}}}|1||{{!}}square miles}}}}]] ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}}
{{formatnum:{{{1}}}}} [[{{#switch: {{{2|}}}|acre=acre{{#ifeq:{{{1}}}|1||{{!}}acres}}|ft=foot (unit of length){{!}}{{#ifeq:{{{1}}}|1|foot|feet}}|ha=hectare{{#ifeq:{{{1}}}|1||{{!}}hectacres}}|sqft=square foot{{!}}square {{#ifeq:{{{1}}}|1|foot|feet}}|m=metre{{#ifeq:{{{1}}}|1||{{!}}metres}}|km=kilometre{{#ifeq:{{{1}}}|1||{{!}}kilometres}}|mi=mile{{#ifeq:{{{1}}}|1||{{!}}miles}}|sqm=square metre{{#ifeq:{{{1}}}|1||{{!}}square metres}}|sqkm=square kilometre{{#ifeq:{{{1}}}|1||{{!}}square kilometres}}|sqmi=square mile{{#ifeq:{{{1}}}|1||{{!}}square miles}}}}]] ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}}
|acre = {{#switch: {{{3|}}}|ha=0.404685642|sqft=43560|sqm=4046.85642|sqkm=100|sqmi=258.998811}}
|acre = {{#switch: {{{3|}}}|ha=2.47105381|sqft=0.0000229568411|sqm=0.000247105381|sqkm=247.105381|sqmi=640}}
|ft = {{#switch: {{{3|}}}|m=0.3048|mi=0.000189393939|km=0.0003048}}
|ft = {{#switch: {{{3|}}}|m=0.3048|mi=0.000189393939|km=0.0003048}}
|sqft = {{#switch: {{{3|}}}|acre=0.0000229568411|ha=0.00009290304|sqm=0.09290304|sqkm=0.00000009290304|sqmi=0.0000000358700643}}
|sqft = {{#switch: {{{3|}}}|acre=0.0000229568411|ha=0.00009290304|sqm=0.09290304|sqkm=0.00000009290304|sqmi=0.0000000358700643}}

Revision as of 20:56, 17 December 2006

{{{1}}} [[]] (Expression error: Unrecognized punctuation character "{". [[]])Template:Esoteric
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.