(Created page with "<includeonly>{{#if:{{#switch:{{{6}}} |United States|United Kingdom |United States|United Kingdom |United States of America|United States of America |[[United States|U...")
 
m (1 revision)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{#switch:{{{6}}}
+
<includeonly>{{infobox settlement/{{infobox settlement/pref|{{{pref}}}|{{{name}}}|area}}{{#if:{{{mag|}}}|/mag}}
  +
|metv={{#if:{{{ha|}}}{{{km2|}}}
|[[United States]]|[[United Kingdom]]
 
  +
|{{#if:{{{ha|}}}|{{{ha}}}|{{{km2}}}}}
|United States|United Kingdom
 
  +
|{{#if:{{{dunam|}}}
|[[United States of America]]|United States of America
 
 
|{{#ifexpr:{{formatnum:{{{dunam}}}|R}}<1E3
|[[United States|United States of America]]
 
  +
|{{rnd<!-- convert dunams to hectares -->
|[[Image:Flag of the United States.svg|20px]] [[United States]] = 1}}{{#switch:{{ucfirst:{{{1}}}}}
 
 
|{{#expr:{{formatnum:{{{dunam}}}|R}}/10}}
|Imperial
 
  +
|({{precision|{{formatnum:{{{dunam}}}|R}}}}+1)
|English
 
  +
}}<!-- end rnd -->
|UK|US|U.S.
 
  +
|{{rnd<!-- convert dunams to square kilometres -->
|US Customary|U.S. Customary
 
  +
|{{#expr:{{formatnum:{{{dunam}}}|R}}/1E3}}
|Standard = 1}}<!-- then
 
  +
|({{precision|{{formatnum:{{{dunam}}}|R}}}}+3)
-->|{{infobox_settlement/mi2km2
 
  +
}}<!-- end rnd -->
|{{formatnum:{{{2|}}}|R}}
 
  +
}}<!-- end #ifexpr:...{{{dunam}}}...<1E3 -->
|{{formatnum:{{{3|}}}|R}}
 
  +
|{{#if:{{{acre|}}}
||1
 
  +
|{{rnd<!-- convert acres to hectares -->
|{{{5|}}}
 
  +
|{{#expr:{{formatnum:{{{acre}}}|R}}*0.4046856422}}
|{{{4|}}}}}<!-- else
 
  +
|{{max/2<!-- output at least one sig fig -->
-->|{{infobox_settlement/mi2km2
 
|{{formatnum:{{{2|}}}|R}}
+
|{{precision|{{formatnum:{{{acre}}}|R}}}}
|{{formatnum:{{{3|}}}|R}}
+
|-{{Order of magnitude|{{#expr:{{formatnum:{{{acre}}}|R}}*0.4046856422}}}}
  +
}}<!-- end max2 -->
|switch|1
 
  +
}}<!-- end rnd -->
|{{{5|}}}
 
  +
|{{rnd<!-- convert square miles to square kilometres -->
|{{{4|}}}}}}}</includeonly><noinclude>
 
  +
|{{#expr:{{formatnum:{{{sqmi}}}|R}}*2.589988110336}}
  +
|{{max/2<!-- output at least one sig fig -->
  +
|({{precision|{{formatnum:{{{sqmi}}}|R}}}}-1)
  +
|-{{Order of magnitude|{{#expr:{{formatnum:{{{sqmi}}}|R}}*2.589988110336}}}}
  +
}}<!-- end max2 -->
  +
}}<!-- end rnd -->
  +
}}<!-- end #if:{{{acre|}}} -->
  +
}}<!-- end #if:{{{dunam|}}} -->
  +
}}<!-- end #if:{{{ha|}}}{{{km2|}}} -->
  +
|metu={{#if:{{{ha|}}}{{#if:{{{km2|}}}
  +
|
  +
|{{#if:{{{dunam|}}}
  +
|{{#ifexpr:{{formatnum:{{{dunam}}}|R}}<1E3|X}}
  +
|{{{acre|}}}
  +
}}
  +
}}
  +
|ha
  +
|km<sup>2</sup>
  +
}}
  +
|impv={{#if:{{{acre|}}}{{{sqmi|}}}
  +
|{{#if:{{{acre|}}}|{{{acre}}}|{{{sqmi}}}}}
  +
|{{#if:{{{ha|}}}{{{km2|}}}
  +
|{{#if:{{{ha|}}}
  +
|{{rnd<!-- convert hectares to acres -->
  +
|{{#expr:{{formatnum:{{{ha}}}|R}}/0.4046856422}}
  +
|({{precision|{{formatnum:{{{ha}}}|R}}}})
  +
}}<!-- end rnd -->
  +
|{{rnd<!-- convert square kilometres to square miles -->
  +
|{{#expr:{{formatnum:{{{km2}}}|R}}/2.589988110336}}
  +
|{{max/2<!-- output at least one sig fig -->
  +
|{{precision|{{formatnum:{{{km2}}}|R}}}}
  +
|-{{Order of magnitude|{{#expr:{{formatnum:{{{km2}}}|R}}/2.589988110336}}}}
  +
}}<!-- end max2 -->
  +
}}<!-- end rnd -->
  +
}}<!-- end #if:{{{ha|}}} -->
  +
|{{#ifexpr:{{formatnum:{{{dunam}}}|R}}<2589
  +
|{{rnd<!-- convert dunams to acres -->
  +
|{{#expr:{{formatnum:{{{dunam}}}|R}}/4.046856422}}
  +
|{{max/2<!-- output at least one sig fig -->
  +
|({{precision|{{formatnum:{{{dunam}}}|R}}}})
  +
|-{{Order of magnitude|{{#expr:{{formatnum:{{{dunam}}}|R}}/4.046856422}}}}
  +
}}<!-- end max2 -->
  +
}}<!-- end rnd -->
  +
|{{rnd<!-- convert dunams to square miles -->
  +
|{{#expr:{{formatnum:{{{dunam}}}|R}}/2589.988110336}}
  +
|{{max/2<!-- output at least one sig fig -->
  +
|({{precision|{{formatnum:{{{dunam}}}|R}}}}+3)
  +
|-{{Order of magnitude|{{#expr:{{formatnum:{{{dunam}}}|R}}/2589.988110336}}}}
  +
}}<!-- end max2 -->
  +
}}<!-- end rnd -->
  +
}}<!-- end #ifexpr:...{{{dunam}}}...<2589 -->
  +
}}<!-- end #if:{{{ha|}}}{{{km2|}}} -->
  +
}}<!-- end #if:{{{acre|}}}{{{sqmi|}}} -->
  +
|impu={{#if:{{{acre|}}}{{#if:{{{sqmi|}}}
  +
|
  +
|{{{ha|}}}{{#if:{{{km2|}}}
  +
|
  +
|{{#ifexpr:{{formatnum:{{{dunam}}}|R}}<2589|X}}
  +
}}
  +
}}
  +
|acre
  +
|sq&nbsp;mi
  +
}}
  +
|dunv={{#if:{{#ifeq:{{lc:{{{pref}}}}}|dunam|{{{dunam|}}}|no dunams}}
  +
|{{{dunam}}}
  +
|{{#if:{{{ha|}}}{{{km2|}}}
  +
|{{#if:{{{km2|}}}
  +
|{{rnd<!-- convert square kilometres to dunams -->
  +
|{{#expr:{{formatnum:{{{km2}}}|R}}*1E3}}
  +
|({{precision|{{formatnum:{{{km2}}}|R}}}}-3)
  +
}}<!-- end rnd -->
  +
|{{rnd<!-- convert hectares to dunams -->
  +
|{{#expr:{{formatnum:{{{ha}}}|R}}*10}}
  +
|({{precision|{{formatnum:{{{ha}}}|R}}}}-1)
  +
}}<!-- end rnd -->
  +
}}<!-- end #if:{{{km2|}}} -->
  +
|{{#if:{{{sqmi|}}}
  +
|{{rnd<!-- convert square miles to dunams -->
  +
|{{#expr:{{formatnum:{{{sqmi}}}|R}}*2589.988110336}}
  +
|{{max/2<!-- output at least one sig fig -->
  +
|({{precision|{{formatnum:{{{sqmi}}}|R}}}}-4)
  +
|-{{Order of magnitude|{{#expr:{{formatnum:{{{sqmi}}}|R}}*2589.988110336}}}}
  +
}}<!-- end max2 -->
  +
}}<!-- end rnd -->
  +
|{{rnd<!-- convert acres to dunams -->
  +
|{{#expr:{{formatnum:{{{acre}}}|R}}*4.046856422}}
  +
|{{max/2<!-- output at least one sig fig -->
  +
|({{precision|{{formatnum:{{{acre}}}|R}}}}-1)
  +
|-{{Order of magnitude|{{#expr:{{formatnum:{{{acre}}}|R}}*4.046856422}}}}
  +
}}<!-- end max2 -->
  +
}}<!-- end rnd -->
  +
}}<!-- end #if:{{{sqmi|}}} -->
  +
}}<!-- end #if:{{{ha|}}}{{{km2|}}} -->
  +
}}
  +
|dunu={{#if:{{{link|}}}|[[dunam]]|dunam}}
 
}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 15:08, 26 July 2019

[create] Template-info.svg.png Template documentation
Community content is available under CC-BY-SA unless otherwise noted.