Difference between revisions of "Template:Measconv"

From Illomi wiki
Jump to: navigation, search
m
m
Line 14: Line 14:
 
| foot={{#vardefine:var|{{#expr: {{{measure}}}*0.3048  }}}}
 
| foot={{#vardefine:var|{{#expr: {{{measure}}}*0.3048  }}}}
 
| yard={{#vardefine:var|{{#expr: {{{measure}}}*0.9144  }}}}
 
| yard={{#vardefine:var|{{#expr: {{{measure}}}*0.9144  }}}}
| mile={{#vardefine:var|{{#expr: {{{measure}}}/0.000621371192 }}}}
+
| mile={{#vardefine:var|{{#expr: {{{measure}}}*1609.344 }}}}
 
| mm={{#vardefine:var|{{#expr: {{{measure}}}/1000  }}}}
 
| mm={{#vardefine:var|{{#expr: {{{measure}}}/1000  }}}}
 
| cm={{#vardefine:var|{{#expr: {{{measure}}}/100 }}}}
 
| cm={{#vardefine:var|{{#expr: {{{measure}}}/100 }}}}
Line 24: Line 24:
 
| foot={{#vardefine:var|{{#expr: {{#var:var}}/0.3048  }}}}
 
| foot={{#vardefine:var|{{#expr: {{#var:var}}/0.3048  }}}}
 
| yard={{#vardefine:var|{{#expr: {{#var:var}}/0.9144 }}}}
 
| yard={{#vardefine:var|{{#expr: {{#var:var}}/0.9144 }}}}
| mile={{#vardefine:var|{{#expr: {{#var:var}}*0.000621371192 }}}}
+
| mile={{#vardefine:var|{{#expr: {{#var:var}}/1609.344 }}}}
 
| mm={{#vardefine:var|{{#expr: {{#var:var}}*1000 }}}}
 
| mm={{#vardefine:var|{{#expr: {{#var:var}}*1000 }}}}
 
| cm={{#vardefine:var|{{#expr: {{#var:var}}*100 }}}}
 
| cm={{#vardefine:var|{{#expr: {{#var:var}}*100 }}}}
Line 49: Line 49:
  
 
Examples:
 
Examples:
  <nowiki>{{Measconv|target=braz|source=ong|measure=37}}</nowiki> = {{Measconv|target=braz|source=ong|measure=37}}
+
  <nowiki>{{Measconv|target=ong|source=lunu|measure=6}}</nowiki> = {{Measconv|target=ong|source=lunu|measure=6}}
  <nowiki>{{Measconv|target=mile|source=reung|measure=1}}</nowiki> = {{Measconv|target=mile|source=reung|measure=1}}
+
<nowiki>{{Measconv|target=lunu|source=ong|measure=1}}</nowiki> = {{Measconv|target=lunu|source=ong|measure=1}}
 +
  <nowiki>{{Measconv|target=mile|source=km|measure=1}}</nowiki> = {{Measconv|target=mile|source=km|measure=1}}
 +
<nowiki>{{Measconv|target=km|source=mile|measure=1}}</nowiki> = {{Measconv|target=km|source=mile|measure=1}}
 
  <nowiki>{{Measconv|target=reung|source=mile|measure=1}}</nowiki> = {{Measconv|target=reung|source=mile|measure=1}}
 
  <nowiki>{{Measconv|target=reung|source=mile|measure=1}}</nowiki> = {{Measconv|target=reung|source=mile|measure=1}}
 
  <nowiki>{{Measconv|target=inch|source=pawz|measure=1}}</nowiki> = {{Measconv|target=inch|source=pawz|measure=1}}
 
  <nowiki>{{Measconv|target=inch|source=pawz|measure=1}}</nowiki> = {{Measconv|target=inch|source=pawz|measure=1}}
 
  <nowiki>{{Measconv|target=pawz|source=inch|measure=1}}</nowiki> = {{Measconv|target=pawz|source=inch|measure=1}}
 
  <nowiki>{{Measconv|target=pawz|source=inch|measure=1}}</nowiki> = {{Measconv|target=pawz|source=inch|measure=1}}
 
{{Temp}}</noinclude>
 
{{Temp}}</noinclude>

Revision as of 14:43, 1 March 2013

Usage:

{{Measconv
  |target=   Target measurement
  |source=   Source measurement
  |measure=  Measurement
 }}

The following measurement units are available for target and source: From our world: inch, foot, yard, mile, mm, cm, km, and m, and from Illte: reung, mest, fiqj, wall, metre, braz, riqj, pawz, ong, and lunu.

Examples:

{{Measconv|target=ong|source=lunu|measure=6}} = 1
{{Measconv|target=lunu|source=ong|measure=1}} = 6
{{Measconv|target=mile|source=km|measure=1}} = 0.62137119223733
{{Measconv|target=km|source=mile|measure=1}} = 1.609344
{{Measconv|target=reung|source=mile|measure=1}} = 1.409109535067
{{Measconv|target=inch|source=pawz|measure=1}} = 1.7716535433071
{{Measconv|target=pawz|source=inch|measure=1}} = 0.56444444444444