Difference between revisions of "Template:Areadisp"
Jump to navigation
Jump to search
(Added {{flag|United...) |
m (1 revision) |
(No difference)
|
Latest revision as of 05:17, 26 November 2008
This subtemplate displays area values for a line in the main Infobox. It is transcluded thus:
- {{areadisp|unit_pref|AREAsqmi|AREAkm2|area_magnitude|LINK|subdivision_name}}
where AREAsqmi and AREAkm2 are the area values to be displayed (one may be blank for automatic conversion if the other is numeric), LINK is set if the units are to be wikilinked, and the other parameters are taken from Template:Infobox Settlement.
Whether the metric or imperial value is displayed first depends on the value of subdivision_name (usually the country name) and unit_pref (which can be set to Imperial to force imperial-first display). The default for non-US non-UK countries is metric first.
Example: {{areadisp|Imperial|42| | |lk|Canada}} produces 42 sq mi (108.8 km²)