Difference between revisions of "Template:Infobox settlement/areadisp/sandbox"
Jump to navigation
Jump to search
imported>Jimp |
imported>Frietjes (test this as a fix) |
||
| Line 44: | Line 44: | ||
|{{rnd<!-- convert hectares to acres --> | |{{rnd<!-- convert hectares to acres --> | ||
|{{#expr:{{formatnum:{{{ha}}}|R}}/0.4046856422}} | |{{#expr:{{formatnum:{{{ha}}}|R}}/0.4046856422}} | ||
| − | |({{precision|{{formatnum:{{{ha}}}|R}}}}-1) | + | |{{max/2<!-- output at least one sig fig --> |
| + | |({{precision|{{formatnum:{{{ha}}}|R}}}}-1) | ||
| + | |-{{Order of magnitude|{{#expr:{{formatnum:{{{ha}}}|R}}/0.4046856422}}}} | ||
| + | }}<!-- end max2 --> | ||
}}<!-- end rnd --> | }}<!-- end rnd --> | ||
|{{rnd<!-- convert square kilometres to square miles --> | |{{rnd<!-- convert square kilometres to square miles --> | ||
Revision as of 01:26, 15 November 2012
| This is the template sandbox page for Template:Infobox settlement/areadisp (diff). See also the companion subpage for test cases. |
| 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. |