Difference between revisions of "Template:Measconv"

From Illomi wiki
Jump to: navigation, search
m
m
Line 38: Line 38:
 
| ong={{#vardefine:var|{{#expr: {{#var:var}}/0.018 }}}}
 
| ong={{#vardefine:var|{{#expr: {{#var:var}}/0.018 }}}}
 
| lunu={{#vardefine:var|{{#expr: {{#var:var}}/0.003 }}}}
 
| lunu={{#vardefine:var|{{#expr: {{#var:var}}/0.003 }}}}
}} {{#var:var}}</includeonly><noinclude>
+
}} {{#if:{{{round|}}}|{{#expr: {{#var:var}} round{{{round}}}}}}}|{{#var:var}}}}</includeonly><noinclude>
 
Usage:
 
Usage:
 
  <nowiki>{{Measconv
 
  <nowiki>{{Measconv
Line 44: Line 44:
 
   |source=  Source measurement
 
   |source=  Source measurement
 
   |measure=  Measurement
 
   |measure=  Measurement
 +
  |round=    optional
 
  }}</nowiki>
 
  }}</nowiki>
  

Revision as of 14:48, 1 March 2013

Usage:

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

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