Difference between revisions of "Template:Infobox mountain/convert"

From blackwiki
Jump to navigation Jump to search
imported>Droll
(added comments)
imported>Droll
(found the definition of a foot at (Foot (length))
Line 1: Line 1:
 
{{#switch: {{lc:{{{2|}}}}}
 
{{#switch: {{lc:{{{2|}}}}}
   | ft = {{#iferror:  {{formatnum:{{#expr: {{formatnum:{{{1|}}}|R}} * 0.304801 round 1}}}} | {{error|Invalid value}} }}<!-- to feet -->
+
   | ft = {{#iferror:  {{formatnum:{{#expr: {{formatnum:{{{1|}}}|R}} * 0.30480 round 1}}}} | {{error|Invalid value}} }}<!-- to feet -->
   | m  = {{#iferror:  {{formatnum:{{#expr: {{formatnum:{{{1|}}}|R}} * 3.2808399 round 0}}}} | {{error|Invalid value}} }}<!-- to metres -->
+
   | m  = {{#iferror:  {{formatnum:{{#expr: {{formatnum:{{{1|}}}|R}} / 0.30480 round 0}}}} | {{error|Invalid value}} }}<!-- to metres -->
 
   | {{error|Invalid unit}}
 
   | {{error|Invalid unit}}
 
}}
 
}}

Revision as of 01:20, 11 March 2010

Invalid unit