Template:Convert: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Drumguy8800 {{!}} instead of | |
meta>Drumguy8800 add AU |
||
Line 1: | Line 1: | ||
{{formatnum:{{{1}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{2|}}} | {{formatnum:{{{1}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{2|}}} | ||
|AU= astronomical unit{{!}}{{#ifeq:{{{1}}}|1||{{!}}astronomical units}} | |||
|ft= foot (unit of length){{!}}{{#ifeq:{{{1}}}|1|foot|feet}} | |ft= foot (unit of length){{!}}{{#ifeq:{{{1}}}|1|foot|feet}} | ||
|in= inch{{#ifeq:{{{1}}}|1||{{!}}inches}} | |in= inch{{#ifeq:{{{1}}}|1||{{!}}inches}} | ||
Line 25: | Line 26: | ||
|°R= Rankine{{!}}°R | |°R= Rankine{{!}}°R | ||
}}]]|={{#switch: {{{2|}}} | }}]]|={{#switch: {{{2|}}} | ||
|AU= {{#ifeq:{{{1}}}|1|astronomical unit|astronomical units}} | |||
|ft= {{#ifeq:{{{1}}}|1|foot|feet}} | |ft= {{#ifeq:{{{1}}}|1|foot|feet}} | ||
|in= {{#ifeq:{{{1}}}|1|inch|inches}} | |in= {{#ifeq:{{{1}}}|1|inch|inches}} | ||
Line 50: | Line 52: | ||
|°R= °R | |°R= °R | ||
}}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}} | }}}} ({{formatnum:{{ #expr: {{{1}}} * {{ #switch: {{{2|}}} | ||
|AU = {{#switch: {{{3|}}} | |||
|ft=490807087000 | |||
|in=5889685044000 | |||
|mm=149598000000000 | |||
|cm=14959800000000 | |||
|m=149598000000 | |||
|km=149598000 | |||
|mi=92955887.6 | |||
|nmi=80776457.9 | |||
}} | |||
|ft = {{#switch: {{{3|}}} | |ft = {{#switch: {{{3|}}} | ||
|AU=0.00000000000203746039 | |||
|in=12 | |in=12 | ||
|mm=304.8 | |mm=304.8 | ||
Line 60: | Line 73: | ||
}} | }} | ||
|in = {{#switch: {{{3|}}} | |in = {{#switch: {{{3|}}} | ||
|AU=0.000000000000169788366 | |||
|ft=0.0833333333 | |ft=0.0833333333 | ||
|mm=25.4 | |mm=25.4 | ||
Line 69: | Line 83: | ||
}} | }} | ||
|mm = {{#switch: {{{3|}}} | |mm = {{#switch: {{{3|}}} | ||
|AU=0.00000000000000668458134 | |||
|ft=0.0032808399 | |ft=0.0032808399 | ||
|in=0.0393700787 | |in=0.0393700787 | ||
Line 78: | Line 93: | ||
}} | }} | ||
|cm = {{#switch: {{{3|}}} | |cm = {{#switch: {{{3|}}} | ||
|AU=0.0000000000000668458134 | |||
|ft=0.032808399 | |ft=0.032808399 | ||
|in=0.393700787 | |in=0.393700787 | ||
Line 87: | Line 103: | ||
}} | }} | ||
|m = {{#switch: {{{3|}}} | |m = {{#switch: {{{3|}}} | ||
|AU=0.00000000000668458134 | |||
|ft=3.2808399 | |ft=3.2808399 | ||
|in=39.3700787 | |in=39.3700787 | ||
Line 96: | Line 113: | ||
}} | }} | ||
|km = {{#switch: {{{3|}}} | |km = {{#switch: {{{3|}}} | ||
|AU=0.00000000668458134 | |||
|ft=3280.8399 | |ft=3280.8399 | ||
|in=39370.0787 | |in=39370.0787 | ||
Line 105: | Line 123: | ||
}} | }} | ||
|mi = {{#switch: {{{3|}}} | |mi = {{#switch: {{{3|}}} | ||
|AU=0.0000000107577909 | |||
|ft=5280 | |ft=5280 | ||
|in=63360 | |in=63360 | ||
Line 114: | Line 133: | ||
}} | }} | ||
|nmi = {{#switch: {{{3|}}} | |nmi = {{#switch: {{{3|}}} | ||
|AU=0.0000000123798447 | |||
|ft=6076.1155 | |ft=6076.1155 | ||
|in=72913.3858 | |in=72913.3858 | ||
Line 248: | Line 268: | ||
}} | }} | ||
}} {{#if: {{{4|}}} | round {{{4}}} }}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}} | }} {{#if: {{{4|}}} | round {{{4}}} }}}}}} {{#switch: {{{lk|}}}|on=[[{{#switch: {{{3|}}} | ||
|AU= astronomical unit{{!}}AU | |||
|ft= foot (unit of length){{!}}ft | |ft= foot (unit of length){{!}}ft | ||
|in= inch{{!}}in | |in= inch{{!}}in | ||
Line 273: | Line 294: | ||
|°R= Rankine{{!}}°R | |°R= Rankine{{!}}°R | ||
}}]]|={{#switch: {{{3|}}} | }}]]|={{#switch: {{{3|}}} | ||
|AU= AU | |||
|ft= ft | |ft= ft | ||
|in= in | |in= in |
Revision as of 16:34, 5 January 2007
{{{1}}} (Expression error: Unrecognized punctuation character "{". )Template:Esoteric
- Exampe/monitor page
- Monitor quality or look at examples at Template:Convert/check
- Two things to remember!
- File:Flag of the United States.svg 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.