Template:Calculate/Height: Difference between revisions
From The Green Hills Series
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude><templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"aliases": [ | |||
"measurements" | |||
], | |||
"label": "Height", | |||
"description": "Height in feet", | |||
"example": "5'10\"", | |||
"type": "string", | |||
"required": true | |||
} | |||
}, | |||
"description": "Convert imperial to metric" | |||
} | |||
</templatedata></noinclude> | |||
{{#if:{{{1|}}}| | {{#if:{{{1|}}}| | ||
{{{1}}} | {{{1}}} | ||
{{#arraydefine:vars|{{{1}}}|/\s*[\'\"]\s*/}} | {{#arraydefine:vars|{{{1}}}|/\s*[\'\"]\s*/}} | ||
({{#expr: | |||
{{#expr: | |||
{{#expr: | {{#expr: | ||
{{#arrayindex:vars|0 }}*12 | {{#expr: | ||
{{#arrayindex:vars|0 }}*12 | |||
}}+{{#arrayindex:vars|1 }} | |||
}} | }}*2.54 round 0 | ||
}} cm) | |||
}} | }} |
Latest revision as of 18:31, 4 March 2023
Convert imperial to metric
Parameter | Description | Type | Status | |
---|---|---|---|---|
Height | 1 measurements | Height in feet
| String | required |