Difference between revisions of "Template:Measconv"

From Illomi wiki
Jump to: navigation, search
m
m
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 round0 }}}}
| mest={{#vardefine:var|{{#expr: {{{meassure}}}*38.07 round0 }}}}
+
| mest={{#vardefine:var|{{#expr: {{{measure}}}*38.07 round0 }}}}
| fiqj={{#vardefine:var|{{#expr: {{{meassure}}}*33.84 round0 }}}}
+
| fiqj={{#vardefine:var|{{#expr: {{{measure}}}*33.84 round0 }}}}
| wall={{#vardefine:var|{{#expr: {{{meassure}}}*12.69 round0 }}}}
+
| wall={{#vardefine:var|{{#expr: {{{measure}}}*12.69 round0 }}}}
| metre={{#vardefine:var|{{#expr: {{{meassure}}}*0.846 round0 }}}}
+
| metre={{#vardefine:var|{{#expr: {{{measure}}}*0.846 round0 }}}}
| braz={{#vardefine:var|{{#expr: {{{meassure}}}*0.423 round0 }}}}
+
| braz={{#vardefine:var|{{#expr: {{{measure}}}*0.423 round0 }}}}
| riqj={{#vardefine:var|{{#expr: {{{meassure}}}*0.18 round0 }}}}
+
| riqj={{#vardefine:var|{{#expr: {{{measure}}}*0.18 round0 }}}}
| pawz={{#vardefine:var|{{#expr: {{{meassure}}}*0.045 round0 }}}}
+
| pawz={{#vardefine:var|{{#expr: {{{measure}}}*0.045 round0 }}}}
| ong={{#vardefine:var|{{#expr: {{{meassure}}}*0.018 round0 }}}}
+
| ong={{#vardefine:var|{{#expr: {{{measure}}}*0.018 round0 }}}}
| lunu={{#vardefine:var|{{#expr: {{{meassure}}}*0.003 round0 }}}}
+
| lunu={{#vardefine:var|{{#expr: {{{measure}}}*0.003 round0 }}}}
 
}}{{
 
}}{{
 
#switch:{{{target}}}
 
#switch:{{{target}}}
Line 20: Line 20:
 
| cm={{#vardefine:var|{{#expr: {{#var:var}}*100 round0 }}}}
 
| cm={{#vardefine:var|{{#expr: {{#var:var}}*100 round0 }}}}
 
| km={{#vardefine:var|{{#expr: {{#var:var}}/1000 round0 }}}}
 
| km={{#vardefine:var|{{#expr: {{#var:var}}/1000 round0 }}}}
}} {{#var:var}}</includeonly><noinclude>{{Temp}}</noinclude>
+
}} {{#var:var}}</includeonly><noinclude>
 +
Usage:
 +
{{Measconv
 +
  |target=
 +
  |source=
 +
  |measure=
 +
}}
 +
{{Temp}}</noinclude>

Revision as of 14:16, 1 March 2013

Usage: