Difference between revisions of "Template:Measconv"

From Illomi wiki
Jump to: navigation, search
(Created page with "<includeonly>{{#vardefine:var}}{{ #switch:{{{source}}} | reung={{#vardefine:var|{{#expr: {{{meassure}}}*1142.1 round0 }}}} }}{{ #switch:{{{target}}} | mile={{#vardefine:var|{{...")
 
m
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#vardefine:var}}{{
 
<includeonly>{{#vardefine:var}}{{
 
#switch:{{{source}}}
 
#switch:{{{source}}}
| reung={{#vardefine:var|{{#expr: {{{meassure}}}*1142.1 round0 }}}}
+
| reung={{#vardefine:var|{{#expr: {{{measure}}}*1142.1 }}}}
 +
| mest={{#vardefine:var|{{#expr: {{{measure}}}*38.07 }}}}
 +
| fiqj={{#vardefine:var|{{#expr: {{{measure}}}*33.84 }}}}
 +
| wall={{#vardefine:var|{{#expr: {{{measure}}}*12.69  }}}}
 +
| metre={{#vardefine:var|{{#expr: {{{measure}}}*0.846 }}}}
 +
| braz={{#vardefine:var|{{#expr: {{{measure}}}*0.423 }}}}
 +
| riqj={{#vardefine:var|{{#expr: {{{measure}}}*0.18 }}}}
 +
| pawz={{#vardefine:var|{{#expr: {{{measure}}}*0.045  }}}}
 +
| ong={{#vardefine:var|{{#expr: {{{measure}}}*0.018  }}}}
 +
| lunu={{#vardefine:var|{{#expr: {{{measure}}}*0.003  }}}}
 +
| inch={{#vardefine:var|{{#expr: {{{measure}}}*0.0254 }}}}
 +
| foot={{#vardefine:var|{{#expr: {{{measure}}}*0.3048  }}}}
 +
| yard={{#vardefine:var|{{#expr: {{{measure}}}*0.9144  }}}}
 +
| mile={{#vardefine:var|{{#expr: {{{measure}}}*1609.344 }}}}
 +
| mm={{#vardefine:var|{{#expr: {{{measure}}}/1000  }}}}
 +
| cm={{#vardefine:var|{{#expr: {{{measure}}}/100 }}}}
 +
| km={{#vardefine:var|{{#expr: {{{measure}}}*1000 }}}}
 +
| m={{#vardefine:var|{{{measure}}}}}
 +
| volt={{#vardefine:var|{{{measure}}}}}
 +
| mf={{#vardefine:var|{{#expr: {{{measure}}}*1.75 }}}}
 +
 
 
}}{{
 
}}{{
 
#switch:{{{target}}}
 
#switch:{{{target}}}
| mile={{#vardefine:var|{{#expr: {{#var:var}}*0.000621371192 round0 }}}}
+
| inch={{#vardefine:var|{{#expr: {{#var:var}}/0.0254 }}}}
| km={{#vardefine:var|{{#expr: {{#var:var}}/1000 round0 }}}}
+
| foot={{#vardefine:var|{{#expr: {{#var:var}}/0.3048  }}}}
}} {{#var:var}}</includeonly><noinclude>{{Temp}}</noinclude>
+
| yard={{#vardefine:var|{{#expr: {{#var:var}}/0.9144 }}}}
 +
| mile={{#vardefine:var|{{#expr: {{#var:var}}/1609.344 }}}}
 +
| mm={{#vardefine:var|{{#expr: {{#var:var}}*1000 }}}}
 +
| cm={{#vardefine:var|{{#expr: {{#var:var}}*100 }}}}
 +
| km={{#vardefine:var|{{#expr: {{#var:var}}/1000 }}}}
 +
| reung={{#vardefine:var|{{#expr: {{#var:var}}/1142.1 }}}}
 +
| mest={{#vardefine:var|{{#expr: {{#var:var}}/38.07 }}}}
 +
| fiqj={{#vardefine:var|{{#expr: {{#var:var}}/33.84 }}}}
 +
| wall={{#vardefine:var|{{#expr: {{#var:var}}/12.69 }}}}
 +
| metre={{#vardefine:var|{{#expr: {{#var:var}}/0.846 }}}}
 +
| braz={{#vardefine:var|{{#expr: {{#var:var}}/0.423 }}}}
 +
| riqj={{#vardefine:var|{{#expr: {{#var:var}}/0.18 }}}}
 +
| pawz={{#vardefine:var|{{#expr: {{#var:var}}/0.045 }}}}
 +
| ong={{#vardefine:var|{{#expr: {{#var:var}}/0.018 }}}}
 +
| lunu={{#vardefine:var|{{#expr: {{#var:var}}/0.003 }}}}
 +
| mf={{#vardefine:var|{{#expr: {{{measure}}}/1.75 }}}}
 +
}}{{#if:{{{round|}}}|{{#vardefine:var|{{#expr: {{#var:var}} round{{{round}}}}}}}}}{{#var:var}}</includeonly><noinclude>
 +
Usage:
 +
<nowiki>{{Measconv
 +
  |target=  Target measurement
 +
  |source=  Source measurement
 +
  |measure=  Measurement
 +
  |round=    optional
 +
}}</nowiki>
 +
 
 +
The following measurement units are available for target and source: From our world: inch, foot, yard, mile, mm, cm, km, m, and volt, and from Illte: reung, mest, fiqj, wall, metre, braz, riqj, pawz, ong, lunu and mf.
 +
 
 +
Examples:
 +
<nowiki>{{Measconv|target=ong|source=lunu|measure=6}}</nowiki> = 6 lunu ={{Measconv|target=ong|source=lunu|measure=6}} ong
 +
<nowiki>{{Measconv|target=lunu|source=ong|measure=1}}</nowiki> = 1 ong = {{Measconv|target=lunu|source=ong|measure=1}} lunu
 +
<nowiki>{{Measconv|target=mile|source=km|measure=1}}</nowiki> = 1 km = {{Measconv|target=mile|source=km|measure=1}} mile
 +
<nowiki>{{Measconv|target=km|source=mile|measure=1}}</nowiki> = 1 mile = {{Measconv|target=km|source=mile|measure=1}} km
 +
<nowiki>{{Measconv|target=reung|source=mile|measure=1}}</nowiki> = 1 mile = {{Measconv|target=reung|source=mile|measure=1}} reung
 +
<nowiki>{{Measconv|target=mile|source=reung|measure=1}}</nowiki> = 1 reung = {{Measconv|target=mile|source=reung|measure=1}} mile
 +
<nowiki>{{Measconv|target=km|source=reung|measure=1}}</nowiki> = 1 reung = {{Measconv|target=km|source=reung|measure=1}} km
 +
<nowiki>{{Measconv|target=inch|source=pawz|measure=1}}</nowiki> = 1 pawz = {{Measconv|target=inch|source=pawz|measure=1}} inch
 +
<nowiki>{{Measconv|target=pawz|source=inch|measure=1}}</nowiki> = 1 inch = {{Measconv|target=pawz|source=inch|measure=1}} pawz
 +
{{Temp}}</noinclude>

Latest revision as of 12:23, 10 April 2016

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, m, and volt, and from Illte: reung, mest, fiqj, wall, metre, braz, riqj, pawz, ong, lunu and mf.

Examples:

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