قالب:Infobox settlement/lengthdisp/doc
هذه صفحة توثيق
قالب:Infobox settlement/lengthdisp الفرعية، لشرح القالب وتصنيفه، وهي لا تدخل في استخدامه. |
This subtemplate of {{Infobox settlement}} displays length (e.g. elevation) values for a line in the main infobox.
Usage
{{infobox settlement/lengthdisp|unit_pref|FEET|METRES|LINK|subdivision_name}}
where FEET and METRES 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 {{Infobox settlement}}.
Whether the metric or imperial value is displayed first depends on the value of subn (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 |
---|---|
{{infobox settlement/lengthdisp|Imperial|42| |lk|Canada}}
|
Formatting error: invalid input when rounding m ( | Formatting error: invalid input when rounding ft)
See also