• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.213
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Infobox islands/length

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
< Template:Infobox islands
Template documentation[view] [edit] [history] [purge]

This is a subtemplate of {{Infobox islands}}, and should not be used directly.

Usage

Input Output
{{Infobox islands/length|km=0.5}} 0.5 km (0.31 mi)
{{Infobox islands/length|mi=0.3}} 0.3 mi (0.5 km)
{{Infobox islands/length|m=500}} 500 m (1600 ft)
{{Infobox islands/length|ft=1610}} 1,610 ft (491 m)
{{Infobox islands/length|km=0.5|mi=0.3}} 0.5 km (0.3 mi)
{{Infobox islands/length|m=500|ft=1610}} 500 m (1,610 ft)
{{Infobox islands/length|km=0.5|m=500}} 0.5 km (0.31 mi)
{{Infobox islands/length|mi=0.3|ft=1610}} 0.3 mi (0.5 km)
{{Infobox islands/length|m=500|mi=0.3|ft=1610}} 0.3 mi (0.5 km)
{{Infobox islands/length|km=0.5|mi=0.3|ft=1610}} 0.5 km (0.3 mi)
{{Infobox islands/length|km=0.5|m=500|ft=1610}} 0.5 km (0.31 mi)
{{Infobox islands/length|km=0.5|m=500|mi=0.3}} 0.5 km (0.3 mi)
{{Infobox islands/length|km=0.5|m=500|mi=0.3|ft=1610}} 0.5 km (0.3 mi)
  • {{convert|0.5|km|abbr=on}} → 0.5 km (0.31 mi)
  • {{convert|0.3|mi|abbr=on}} → 0.3 mi (0.48 km)
  • {{convert|500|m|abbr=on}} → 500 m (1,600 ft)
  • {{convert|1610|ft|abbr=on}} → 1,610 ft (490 m)

Code

The code uses {{precision}} to determine the level of precision. The logic is to give preference to km/mi over m/ft. If both km and mi are specified, then no conversion takes place. Similarly, if both m and ft are specified (and km/mi are not specified), then no conversion takes place.

See also

  • {{convert}}
  • {{Infobox islands/area}}
  • {{Infobox islands/density}}
The above documentation is transcluded from Template:Infobox islands/length/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Infobox_islands/length&oldid=20091"
Category:
  • Place infobox subtemplates
Last edited on 28 September 2020, at 19:45

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 28 September 2020, at 19:45.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop