Template:Infobox settlement: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Pigsonthewing
rv self
meta>MJCdetroit
m Elevation changed m convert to ft percision from round 1 to round 0; left foot to meter at round 1 for now
Line 271: Line 271:
<td>{{#switch:{{{subdivision_name|}}}|[[United States]]|[[United Kingdom]]|United States|United Kingdom|[[United States of America]]|United States of America|[[United States|United States of America]]=
<td>{{#switch:{{{subdivision_name|}}}|[[United States]]|[[United Kingdom]]|United States|United Kingdom|[[United States of America]]|United States of America|[[United States|United States of America]]=
{{#if:{{{elevation_ft|}}} |<!--THEN-->&nbsp;{{formatnum:{{{elevation_ft}}} }}&nbsp;[[foot (unit of length)|ft]]&nbsp;({{formatnum:{{#if:{{{elevation|}}}{{{elevation_m|}}}|{{{elevation_m|{{{elevation|}}} }}}|{{#expr: {{{elevation_ft}}} * 0.3048 round 1}} }} }}&nbsp;[[metre|m]])
{{#if:{{{elevation_ft|}}} |<!--THEN-->&nbsp;{{formatnum:{{{elevation_ft}}} }}&nbsp;[[foot (unit of length)|ft]]&nbsp;({{formatnum:{{#if:{{{elevation|}}}{{{elevation_m|}}}|{{{elevation_m|{{{elevation|}}} }}}|{{#expr: {{{elevation_ft}}} * 0.3048 round 1}} }} }}&nbsp;[[metre|m]])
|<!--OR ELSE-->{{formatnum:{{#expr: {{{elevation_m|{{{elevation|}}} }}} div 0.3048 round 1}} }}&nbsp;[[foot (unit of length)|ft]]&nbsp;({{formatnum:{{#if:{{{elevation|}}}{{{elevation_m|}}}|{{{elevation_m|{{{elevation|}}} }}}|{{#expr: {{{elevation_ft}}} * 0.3048 round 1}} }} }}&nbsp;[[metre|m]]) }}  
|<!--OR ELSE-->{{formatnum:{{#expr: {{{elevation_m|{{{elevation|}}} }}} div 0.3048 round 0}} }}&nbsp;[[foot (unit of length)|ft]]&nbsp;({{formatnum:{{#if:{{{elevation|}}}{{{elevation_m|}}}|{{{elevation_m|{{{elevation|}}} }}}|{{#expr: {{{elevation_ft}}} * 0.3048 round 1}} }} }}&nbsp;[[metre|m]]) }}  
|<!--IF NOT SN Then use unit pref method-->
|<!--IF NOT SN Then use unit pref method-->
{{#switch:{{{unit_pref|}}}|Imperial|English|UK|US|U.S.|US Customary|U.S. Customary|Standard|imperial|english=
{{#switch:{{{unit_pref|}}}|Imperial|English|UK|US|U.S.|US Customary|U.S. Customary|Standard|imperial|english=
{{#if:{{{elevation_ft|}}} |<!--THEN-->&nbsp;{{formatnum:{{{elevation_ft}}} }}&nbsp;[[foot (unit of length)|ft]]&nbsp;({{formatnum:{{#if:{{{elevation|}}}{{{elevation_m|}}}|{{{elevation_m|{{{elevation|}}} }}}|{{#expr: {{{elevation_ft}}} * 0.3048 round 1}} }} }}&nbsp;[[metre|m]])
{{#if:{{{elevation_ft|}}} |<!--THEN-->&nbsp;{{formatnum:{{{elevation_ft}}} }}&nbsp;[[foot (unit of length)|ft]]&nbsp;({{formatnum:{{#if:{{{elevation|}}}{{{elevation_m|}}}|{{{elevation_m|{{{elevation|}}} }}}|{{#expr: {{{elevation_ft}}} * 0.3048 round 1}} }} }}&nbsp;[[metre|m]])
|<!--OR ELSE-->{{formatnum:{{#expr: {{{elevation_m|{{{elevation|}}} }}} div 0.3048 round 1}} }}&nbsp;[[foot (unit of length)|ft]]&nbsp;({{formatnum:{{#if:{{{elevation|}}}{{{elevation_m|}}}|{{{elevation_m|{{{elevation|}}} }}}|{{#expr: {{{elevation_ft}}} * 0.3048 round 1}} }} }}&nbsp;[[metre|m]]) }}
|<!--OR ELSE-->{{formatnum:{{#expr: {{{elevation_m|{{{elevation|}}} }}} div 0.3048 round 0}} }}&nbsp;[[foot (unit of length)|ft]]&nbsp;({{formatnum:{{#if:{{{elevation|}}}{{{elevation_m|}}}|{{{elevation_m|{{{elevation|}}} }}}|{{#expr: {{{elevation_ft}}} * 0.3048 round 1}} }} }}&nbsp;[[metre|m]]) }}
|Metric|SI|<!--If unit pref Metric or BLANK--then show-->=
|Metric|SI|<!--If unit pref Metric or BLANK--then show-->=
{{formatnum:{{#if:{{{elevation|}}}{{{elevation_m|}}}|{{{elevation_m|{{{elevation|}}} }}}|{{#expr: {{{elevation_ft}}} * 0.3048 round 1}} }} }}&nbsp;[[metre|m]]&nbsp;({{#if:{{{elevation_ft|}}} |<!--THEN-->{{formatnum:{{{elevation_ft}}} }}&nbsp;[[foot (unit of length)|ft]]|{{formatnum:{{#expr: {{{elevation_m|{{{elevation|}}} }}} div 0.3048 round 1}} }}&nbsp;[[foot (unit of length)|ft]]}}) }} }}</td>
{{formatnum:{{#if:{{{elevation|}}}{{{elevation_m|}}}|{{{elevation_m|{{{elevation|}}} }}}|{{#expr: {{{elevation_ft}}} * 0.3048 round 1}} }} }}&nbsp;[[metre|m]]&nbsp;({{#if:{{{elevation_ft|}}} |<!--THEN-->{{formatnum:{{{elevation_ft}}} }}&nbsp;[[foot (unit of length)|ft]]|{{formatnum:{{#expr: {{{elevation_m|{{{elevation|}}} }}} div 0.3048 round 0}} }}&nbsp;[[foot (unit of length)|ft]]}}) }} }}</td>
</tr>
</tr>
}}<!-- ***** Population ***** -->
}}<!-- ***** Population ***** -->

Revision as of 16:43, 27 June 2007

Template:Esoteric