Predefinição:Info/Assentamento/areadisp

Origem: Wikipédia, a enciclopédia livre.
Documentação da predefinição[ver] [editar] [histórico] [purgar]

Descrição[editar código-fonte]

Esta subtemplate da {{Info/Assentamento}} mostra valores de área de uma linha na infobox principal.

Uso[editar código-fonte]

{{info/Assentamento/areadisp|unit_pref|AREAsqmi|AREAkm2|area_magnitude|LINK|subdivisão_nome}}

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 {{info/Assentamento}}.

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.

Code Result
{{info/Assentamento/areadisp|Imperial|42| | |lk|Canada}} 42 sq mi (108,8 km2)

Ver também[editar código-fonte]


</noinclude>