Difference between revisions of "Template:Infobox settlement/lengthdisp/sandbox"
Jump to navigation
Jump to search
imported>Arjunaraoc m (sandbox to test next lower level template sandbox) |
imported>WOSlinker (avoid redirects) |
||
| Line 3: | Line 3: | ||
|{{{km|}}}{{{m|}}} | |{{{km|}}}{{{m|}}} | ||
|{{#if:{{{mi|}}} | |{{#if:{{{mi|}}} | ||
| − | |{{ | + | |{{round |
|{{#expr:{{formatnum:{{{mi}}}|R}}*1.609344}} | |{{#expr:{{formatnum:{{{mi}}}|R}}*1.609344}} | ||
|{{precision|{{formatnum:{{{mi}}}|R}}}} | |{{precision|{{formatnum:{{{mi}}}|R}}}} | ||
}} | }} | ||
| − | |{{ | + | |{{round |
|{{#expr:{{formatnum:{{{ft}}}|R}}*0.3048}} | |{{#expr:{{formatnum:{{{ft}}}|R}}*0.3048}} | ||
| − | |{{max | + | |{{max |
|{{precision|{{formatnum:{{{ft}}}|R}}}} | |{{precision|{{formatnum:{{{ft}}}|R}}}} | ||
|-{{Order of magnitude|{{#expr:{{formatnum:{{{ft}}}|R}}*0.3048}}}} | |-{{Order of magnitude|{{#expr:{{formatnum:{{{ft}}}|R}}*0.3048}}}} | ||
| Line 20: | Line 20: | ||
|{{{mi|}}}{{{ft|}}} | |{{{mi|}}}{{{ft|}}} | ||
|{{#if:{{{km|}}} | |{{#if:{{{km|}}} | ||
| − | |{{ | + | |{{round |
|{{#expr:{{formatnum:{{{km}}}|R}}/1.609344}} | |{{#expr:{{formatnum:{{{km}}}|R}}/1.609344}} | ||
| − | |{{max | + | |{{max |
|{{precision|{{formatnum:{{{km}}}|R}}}} | |{{precision|{{formatnum:{{{km}}}|R}}}} | ||
|-{{Order of magnitude|{{#expr:{{formatnum:{{{km}}}|R}}/1.609344}}}} | |-{{Order of magnitude|{{#expr:{{formatnum:{{{km}}}|R}}/1.609344}}}} | ||
}} | }} | ||
}} | }} | ||
| − | |{{ | + | |{{round |
|{{#expr:{{formatnum:{{{m}}}|R}}/0.3048}} | |{{#expr:{{formatnum:{{{m}}}|R}}/0.3048}} | ||
|{{precision|{{formatnum:{{{m}}}|R}}}} | |{{precision|{{formatnum:{{{m}}}|R}}}} | ||
Latest revision as of 22:18, 16 October 2019
| This is the template sandbox page for Template:Infobox settlement/lengthdisp (diff). See also the companion subpage for test cases. |
| This subtemplate is not intended to be used directly |
This subtemplate of {{Infobox settlement}} displays length (e.g. elevation) values.
Contents
Usage
{{Infobox settlement/lengthdisp
| km = length in kilometres
| mi = length in miles
| m = length in metres
| ft = length in feet
| pref = preference to display km or mi (via unit_pref)
| name = name of country (via subdivision_name)
}}
Examples: kilometre (km)
{{Infobox settlement/lengthdisp|km=N}}
Examples: mile (mi)
{{Infobox settlement/lengthdisp|pref=UK|mi=N}}
Examples: metre (m)
{{Infobox settlement/lengthdisp|m=N}}
Examples: feet (ft)
{{Infobox settlement/lengthdisp|pref=UK|ft=N}}
See also
- {{Infobox settlement}}
- {{Infobox settlement/densdisp}}
- {{Infobox settlement/pref}}
- {{Infobox settlement/metric}}
- {{Infobox settlement/metric/mag}}
- {{Infobox settlement/impus}}
- {{Infobox settlement/impus/mag}}
- {{Infobox settlement/link}}
- {{Infobox settlement cleaner}}
| The above documentation is transcluded from Template:Infobox settlement/lengthdisp/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. |