FANDOM


(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...")
 
(Undid revision 898164378 by Frietjes (talk))
Line 1: Line 1:
<includeonly>{{#if:{{#switch:{{{6}}}
+
<includeonly>{{infobox settlement/{{infobox settlement/pref|{{{pref}}}|{{{name}}}|area}}{{#if:{{{mag|}}}|/mag}}
|[[United States]]|[[United Kingdom]]
+
|metv={{#if:{{{ha|}}}{{{km2|}}}
|United States|United Kingdom
+
|{{#if:{{{ha|}}}|{{{ha}}}|{{{km2}}}}}
|[[United States of America]]|United States of America
+
|{{#if:{{{dunam|}}}
|[[United States|United States of America]]
+
|{{#ifexpr:{{formatnum:{{{dunam}}}|R}}<1E3
|[[Image:Flag of the United States.svg|20px]] [[United States]] = 1}}{{#switch:{{ucfirst:{{{1}}}}}
+
|{{rnd<!-- convert dunams to hectares -->
|Imperial
+
|{{#expr:{{formatnum:{{{dunam}}}|R}}/10}}
|English
+
|({{precision|{{formatnum:{{{dunam}}}|R}}}}+1)
|UK|US|U.S.
+
}}<!-- end rnd -->
|US Customary|U.S. Customary
+
|{{rnd<!-- convert dunams to square kilometres -->
|Standard = 1}}<!-- then
+
|{{#expr:{{formatnum:{{{dunam}}}|R}}/1E3}}
-->|{{infobox_settlement/mi2km2
+
|({{precision|{{formatnum:{{{dunam}}}|R}}}}+3)
|{{formatnum:{{{2|}}}|R}}
+
}}<!-- end rnd -->
|{{formatnum:{{{3|}}}|R}}
+
}}<!-- end #ifexpr:...{{{dunam}}}...<1E3 -->
||1
+
|{{#if:{{{acre|}}}
|{{{5|}}}
+
|{{rnd<!-- convert acres to hectares -->
|{{{4|}}}}}<!-- else
+
|{{#expr:{{formatnum:{{{acre}}}|R}}*0.4046856422}}
-->|{{infobox_settlement/mi2km2
+
|{{max/2<!-- output at least one sig fig -->
|{{formatnum:{{{2|}}}|R}}
+
|{{precision|{{formatnum:{{{acre}}}|R}}}}
|{{formatnum:{{{3|}}}|R}}
+
|-{{Order of magnitude|{{#expr:{{formatnum:{{{acre}}}|R}}*0.4046856422}}}}
|switch|1
+
}}<!-- end max2 -->
|{{{5|}}}
+
}}<!-- end rnd -->
|{{{4|}}}}}}}</includeonly><noinclude>
+
|{{rnd<!-- convert square miles to square kilometres -->
  +
|{{#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>

Revision as of 20:08, May 21, 2019

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