Template:Size: Difference between revisions
Template page
More actions
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{#switch: {{{1|cm}}} | {{#switch: {{{1|cm}}} | ||
| cm = {{formatnum:{{{2}}}}} cm × {{formatnum:{{{3}}}}} cm ; {{formatnum: | | cm = {{formatnum:{{{2}}}}} cm × {{formatnum:{{{3}}}}} cm ; {{formatnum:{{#expr:( {{{2}}} * 0.39370) round 3}}}} × {{formatnum:{{#expr:( {{{3}}} * 0.3937 ) round 3}}}} in. | ||
| m = {{formatnum:{{{2}}}}} m × {{formatnum:{{{3}}}}} m ; {{formatnum: | | m = {{formatnum:{{{2}}}}} m × {{formatnum:{{{3}}}}} m ; {{formatnum:{{#expr:( {{{2}}} * 1.09360) round 3}}}} × {{formatnum:{{#expr:( {{{3}}} * 1.0936 ) round 3}}}} yd. | ||
| km = {{formatnum:{{{2}}}}} km × {{formatnum:{{{3}}}}} km ; {{formatnum: | | km = {{formatnum:{{{2}}}}} km × {{formatnum:{{{3}}}}} km ; {{formatnum:{{#expr:( {{{2}}} * 0.62138) round 3}}}} × {{formatnum:{{#expr:( {{{3}}} * 0.62138) round 3}}}} mi. | ||
| in = {{formatnum:{{{2}}}}} in. × {{formatnum:{{{3}}}}} in. ; {{formatnum: | | in = {{formatnum:{{{2}}}}} in. × {{formatnum:{{{3}}}}} in. ; {{formatnum:{{#expr:( {{{2}}} * 2.54 ) round 3}}}} × {{formatnum:{{#expr:( {{{3}}} * 2.54 ) round 3}}}} cm | ||
| ft = {{formatnum:{{{2}}}}} ft. × {{formatnum:{{{3}}}}} ft. ; {{formatnum: | | ft = {{formatnum:{{{2}}}}} ft. × {{formatnum:{{{3}}}}} ft. ; {{formatnum:{{#expr:( {{{2}}} * 0.3048 ) round 3}}}} × {{formatnum:{{#expr:( {{{3}}} * 0.3048 ) round 3}}}} m | ||
| yd = {{formatnum:{{{2}}}}} yd. × {{formatnum:{{{3}}}}} yd. ; {{formatnum: | | yd = {{formatnum:{{{2}}}}} yd. × {{formatnum:{{{3}}}}} yd. ; {{formatnum:{{#expr:( {{{2}}} * 0.9144 ) round 3}}}} × {{formatnum:{{#expr:( {{{3}}} * 0.9144 ) round 3}}}} m | ||
| mi = {{formatnum:{{{2}}}}} mi. × {{formatnum:{{{3}}}}} mi. ; {{formatnum: | | mi = {{formatnum:{{{2}}}}} mi. × {{formatnum:{{{3}}}}} mi. ; {{formatnum:{{#expr:( {{{2}}} * 1.60934) round 3}}}} × {{formatnum:{{#expr:( {{{3}}} * 1.60934) round 3}}}} km | ||
}}<noinclude> | }}<noinclude> | ||
| Line 15: | Line 15: | ||
: 3 The height of the Size, using the declared unit and "." as decimal separator. | : 3 The height of the Size, using the declared unit and "." as decimal separator. | ||
<noinclude> | <noinclude> | ||
Revision as of 23:06, 27 May 2007
{{{2}}} cm × {{{3}}} cm ; Expression error: Unrecognized punctuation character "{". × Expression error: Unrecognized punctuation character "{". in.
To transform a 2D-size (width x height) between measures. Parameters:
- 1 The unit of input. must be one of cm, m, km, in, ft, yd or mi .
- 2 The width of the Size, using the declared unit and "." as decimal separator.
- 3 The height of the Size, using the declared unit and "." as decimal separator.