Difference between revisions of "Template:Infobox settlement/areadisp"
Jump to navigation
Jump to search
imported>Frietjes |
imported>WOSlinker (avoid redirects) |
||
| Line 4: | Line 4: | ||
|{{#if:{{{dunam|}}} | |{{#if:{{{dunam|}}} | ||
|{{#ifexpr:{{formatnum:{{{dunam}}}|R}}<1E3 | |{{#ifexpr:{{formatnum:{{{dunam}}}|R}}<1E3 | ||
| − | |{{ | + | |{{round<!-- convert dunams to hectares --> |
|{{#expr:{{formatnum:{{{dunam}}}|R}}/10}} | |{{#expr:{{formatnum:{{{dunam}}}|R}}/10}} | ||
|({{precision|{{formatnum:{{{dunam}}}|R}}}}+1) | |({{precision|{{formatnum:{{{dunam}}}|R}}}}+1) | ||
| − | }}<!-- end | + | }}<!-- end round --> |
| − | |{{ | + | |{{round<!-- convert dunams to square kilometres --> |
|{{#expr:{{formatnum:{{{dunam}}}|R}}/1E3}} | |{{#expr:{{formatnum:{{{dunam}}}|R}}/1E3}} | ||
|({{precision|{{formatnum:{{{dunam}}}|R}}}}+3) | |({{precision|{{formatnum:{{{dunam}}}|R}}}}+3) | ||
| − | }}<!-- end | + | }}<!-- end round --> |
}}<!-- end #ifexpr:...{{{dunam}}}...<1E3 --> | }}<!-- end #ifexpr:...{{{dunam}}}...<1E3 --> | ||
|{{#if:{{{acre|}}} | |{{#if:{{{acre|}}} | ||
| − | |{{ | + | |{{round<!-- convert acres to hectares --> |
|{{#expr:{{formatnum:{{{acre}}}|R}}*0.4046856422}} | |{{#expr:{{formatnum:{{{acre}}}|R}}*0.4046856422}} | ||
| − | |{{max | + | |{{max<!-- output at least one sig fig --> |
|{{precision|{{formatnum:{{{acre}}}|R}}}} | |{{precision|{{formatnum:{{{acre}}}|R}}}} | ||
|-{{Order of magnitude|{{#expr:{{formatnum:{{{acre}}}|R}}*0.4046856422}}}} | |-{{Order of magnitude|{{#expr:{{formatnum:{{{acre}}}|R}}*0.4046856422}}}} | ||
| − | }}<!-- end | + | }}<!-- end max --> |
| − | }}<!-- end | + | }}<!-- end round --> |
| − | |{{ | + | |{{round<!-- convert square miles to square kilometres --> |
|{{#expr:{{formatnum:{{{sqmi}}}|R}}*2.589988110336}} | |{{#expr:{{formatnum:{{{sqmi}}}|R}}*2.589988110336}} | ||
| − | |{{max | + | |{{max<!-- output at least one sig fig --> |
|({{precision|{{formatnum:{{{sqmi}}}|R}}}}-1) | |({{precision|{{formatnum:{{{sqmi}}}|R}}}}-1) | ||
|-{{Order of magnitude|{{#expr:{{formatnum:{{{sqmi}}}|R}}*2.589988110336}}}} | |-{{Order of magnitude|{{#expr:{{formatnum:{{{sqmi}}}|R}}*2.589988110336}}}} | ||
| − | }}<!-- end | + | }}<!-- end max --> |
}}<!-- end rnd --> | }}<!-- end rnd --> | ||
}}<!-- end #if:{{{acre|}}} --> | }}<!-- end #if:{{{acre|}}} --> | ||
| Line 45: | Line 45: | ||
|{{#if:{{{ha|}}}{{{km2|}}} | |{{#if:{{{ha|}}}{{{km2|}}} | ||
|{{#if:{{{ha|}}} | |{{#if:{{{ha|}}} | ||
| − | |{{ | + | |{{round<!-- convert hectares to acres --> |
|{{#expr:{{formatnum:{{{ha}}}|R}}/0.4046856422}} | |{{#expr:{{formatnum:{{{ha}}}|R}}/0.4046856422}} | ||
|({{precision|{{formatnum:{{{ha}}}|R}}}}) | |({{precision|{{formatnum:{{{ha}}}|R}}}}) | ||
| − | }}<!-- end | + | }}<!-- end round --> |
| − | |{{ | + | |{{round<!-- convert square kilometres to square miles --> |
|{{#expr:{{formatnum:{{{km2}}}|R}}/2.589988110336}} | |{{#expr:{{formatnum:{{{km2}}}|R}}/2.589988110336}} | ||
| − | |{{max | + | |{{max<!-- output at least one sig fig --> |
|{{precision|{{formatnum:{{{km2}}}|R}}}} | |{{precision|{{formatnum:{{{km2}}}|R}}}} | ||
|-{{Order of magnitude|{{#expr:{{formatnum:{{{km2}}}|R}}/2.589988110336}}}} | |-{{Order of magnitude|{{#expr:{{formatnum:{{{km2}}}|R}}/2.589988110336}}}} | ||
| − | }}<!-- end | + | }}<!-- end max --> |
| − | }}<!-- end | + | }}<!-- end round --> |
| − | }}<!-- end #if:{{{ha|}}} | + | }}<!-- end #if:{{{ha|}}} --> |
|{{#ifexpr:{{formatnum:{{{dunam}}}|R}}<2589 | |{{#ifexpr:{{formatnum:{{{dunam}}}|R}}<2589 | ||
| − | |{{ | + | |{{round<!-- convert dunams to acres --> |
|{{#expr:{{formatnum:{{{dunam}}}|R}}/4.046856422}} | |{{#expr:{{formatnum:{{{dunam}}}|R}}/4.046856422}} | ||
| − | |{{max | + | |{{max<!-- output at least one sig fig --> |
|({{precision|{{formatnum:{{{dunam}}}|R}}}}) | |({{precision|{{formatnum:{{{dunam}}}|R}}}}) | ||
|-{{Order of magnitude|{{#expr:{{formatnum:{{{dunam}}}|R}}/4.046856422}}}} | |-{{Order of magnitude|{{#expr:{{formatnum:{{{dunam}}}|R}}/4.046856422}}}} | ||
| − | }}<!-- end | + | }}<!-- end max --> |
| − | }}<!-- end | + | }}<!-- end round --> |
| − | |{{ | + | |{{round<!-- convert dunams to square miles --> |
|{{#expr:{{formatnum:{{{dunam}}}|R}}/2589.988110336}} | |{{#expr:{{formatnum:{{{dunam}}}|R}}/2589.988110336}} | ||
| − | |{{max | + | |{{max<!-- output at least one sig fig --> |
|({{precision|{{formatnum:{{{dunam}}}|R}}}}+3) | |({{precision|{{formatnum:{{{dunam}}}|R}}}}+3) | ||
|-{{Order of magnitude|{{#expr:{{formatnum:{{{dunam}}}|R}}/2589.988110336}}}} | |-{{Order of magnitude|{{#expr:{{formatnum:{{{dunam}}}|R}}/2589.988110336}}}} | ||
| − | }}<!-- end | + | }}<!-- end max --> |
| − | }}<!-- end | + | }}<!-- end round --> |
}}<!-- end #ifexpr:...{{{dunam}}}...<2589 --> | }}<!-- end #ifexpr:...{{{dunam}}}...<2589 --> | ||
}}<!-- end #if:{{{ha|}}}{{{km2|}}} --> | }}<!-- end #if:{{{ha|}}}{{{km2|}}} --> | ||
| Line 89: | Line 89: | ||
|{{#if:{{{ha|}}}{{{km2|}}} | |{{#if:{{{ha|}}}{{{km2|}}} | ||
|{{#if:{{{km2|}}} | |{{#if:{{{km2|}}} | ||
| − | |{{ | + | |{{round<!-- convert square kilometres to dunams --> |
|{{#expr:{{formatnum:{{{km2}}}|R}}*1E3}} | |{{#expr:{{formatnum:{{{km2}}}|R}}*1E3}} | ||
|({{precision|{{formatnum:{{{km2}}}|R}}}}-3) | |({{precision|{{formatnum:{{{km2}}}|R}}}}-3) | ||
| − | }}<!-- end | + | }}<!-- end round --> |
| − | |{{ | + | |{{round<!-- convert hectares to dunams --> |
|{{#expr:{{formatnum:{{{ha}}}|R}}*10}} | |{{#expr:{{formatnum:{{{ha}}}|R}}*10}} | ||
|({{precision|{{formatnum:{{{ha}}}|R}}}}-1) | |({{precision|{{formatnum:{{{ha}}}|R}}}}-1) | ||
| − | }}<!-- end | + | }}<!-- end round --> |
}}<!-- end #if:{{{km2|}}} --> | }}<!-- end #if:{{{km2|}}} --> | ||
|{{#if:{{{sqmi|}}} | |{{#if:{{{sqmi|}}} | ||
| − | |{{ | + | |{{round<!-- convert square miles to dunams --> |
|{{#expr:{{formatnum:{{{sqmi}}}|R}}*2589.988110336}} | |{{#expr:{{formatnum:{{{sqmi}}}|R}}*2589.988110336}} | ||
| − | |{{max | + | |{{max<!-- output at least one sig fig --> |
|({{precision|{{formatnum:{{{sqmi}}}|R}}}}-4) | |({{precision|{{formatnum:{{{sqmi}}}|R}}}}-4) | ||
|-{{Order of magnitude|{{#expr:{{formatnum:{{{sqmi}}}|R}}*2589.988110336}}}} | |-{{Order of magnitude|{{#expr:{{formatnum:{{{sqmi}}}|R}}*2589.988110336}}}} | ||
| − | }}<!-- end | + | }}<!-- end max --> |
| − | }}<!-- end | + | }}<!-- end round --> |
| − | |{{ | + | |{{round<!-- convert acres to dunams --> |
|{{#expr:{{formatnum:{{{acre}}}|R}}*4.046856422}} | |{{#expr:{{formatnum:{{{acre}}}|R}}*4.046856422}} | ||
| − | |{{max | + | |{{max<!-- output at least one sig fig --> |
|({{precision|{{formatnum:{{{acre}}}|R}}}}-1) | |({{precision|{{formatnum:{{{acre}}}|R}}}}-1) | ||
|-{{Order of magnitude|{{#expr:{{formatnum:{{{acre}}}|R}}*4.046856422}}}} | |-{{Order of magnitude|{{#expr:{{formatnum:{{{acre}}}|R}}*4.046856422}}}} | ||
| − | }}<!-- end | + | }}<!-- end max --> |
| − | }}<!-- end | + | }}<!-- end round --> |
}}<!-- end #if:{{{sqmi|}}} --> | }}<!-- end #if:{{{sqmi|}}} --> | ||
}}<!-- end #if:{{{ha|}}}{{{km2|}}} --> | }}<!-- end #if:{{{ha|}}}{{{km2|}}} --> | ||
Latest revision as of 22:23, 16 October 2019
| This subtemplate is not intended to be used directly |
This subtemplate of {{Infobox settlement}} displays area values.
Contents
Usage
{{Infobox settlement/areadisp
| km2 = area in square kilometres (via area_total_km2 and others)
| sqmi = area in square miles (via area_total_sq_mi and others)
| ha = area in hectares (via area_total_ha and others)
| acre = area in acres (via area_total_acre and others)
| dunam = area in dunams (via area_total_dunam and others)
| pref = preference to display /km2 or /sqmi (via unit_pref)
| name = name of country (via subdivision_name)
| link = if dunam_link = on, returns total=on
| mag = set to value of area_magnitude
}}
Examples: square kilometre (km2)
{{Infobox settlement/areadisp|km2=N}}
Examples: square mile (sqmi)
{{Infobox settlement/areadisp|pref=UK|sqmi=N}}
Examples: hectare (ha)
{{Infobox settlement/areadisp|ha=N}}
Examples: acre
{{Infobox settlement/areadisp|pref=UK|acre=N}}
Examples: dunam
{{Infobox settlement/areadisp|pref=Dunam|dunam=N}}
See also
- {{Infobox settlement}}
- {{Infobox settlement/densdisp}}
- {{Infobox settlement/lengthdisp}}
- {{Infobox settlement/pref}}
- {{Infobox settlement/metric}}
- {{Infobox settlement/metric/mag}}
- {{Infobox settlement/impus}}
- {{Infobox settlement/impus/mag}}
- {{Infobox settlement/dunam}}
- {{Infobox settlement/dunam/mag}}
- {{Infobox settlement/link}}
- {{Infobox settlement cleaner}}
| The above documentation is transcluded from Template:Infobox settlement/areadisp/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |