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

From blackwiki
Jump to navigation Jump to search
imported>Droll
(added comments)
imported>WOSlinker
m (Changed protection level of Template:Infobox mountain/convert: allow template editors to modify ([Edit=Protected template] (indefinite) [Move=Protected template] (indefinite)))
 
(6 intermediate revisions by 3 users not shown)
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 = {{formatnum:{{{1|}}}}} ft ({{#iferror:  {{formatnum:{{#expr: {{formatnum:{{{1|}}}|R}} * 0.30480 round 0}}}} | {{error|Invalid value}} }} m)<!-- to metres -->
   | m  = {{#iferror:  {{formatnum:{{#expr: {{formatnum:{{{1|}}}|R}} * 3.2808399 round 0}}}} | {{error|Invalid value}} }}<!-- to metres -->
+
   | m  = {{formatnum:{{{1|}}}}} m ({{#iferror:  {{formatnum:{{#expr: {{formatnum:{{{1|}}}|R}} / 0.30480 round 0}}}} | {{error|Invalid value}} }} ft)<!-- to feet -->
   | {{error|Invalid unit}}
+
   | <includeonly>{{error|Invalid unit}}</includeonly>
}}
+
}}<noinclude>
 +
<!--
 +
  PLEASE ADD CATEGORIES AND INTERWIKIS
 +
  TO THE /doc SUBPAGE, THANKS
 +
-->
 +
{{Documentation}}
 +
</noinclude>

Latest revision as of 14:31, 19 October 2013

Template documentation[view] [edit] [history] [purge]

This template is transcluded by Template:Infobox mountain to perform unit conversion.

See also