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

Template:Infobox person/length/switch

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

This is one of three templates used to automatically add conversions of length measurements displayed by infoboxes, such as the |reach= parameter in {{Infobox boxer}} or the |spike= and |block= parameters in {{Infobox volleyball biography}}.

  1. Template:Infobox person/length changes text for units of length to the abbreviations "in", "cm" or "m", then passes the string to:
  2. Template:Infobox person/length/locate which replaces any instances of &nbsp; with a space, and determines the positions of "in", "cm" or "m" within that string, all of which is passed to:
  3. Template:Infobox person/length/switch which does the conversion

See also

  • Template:Infobox person
  • Template:Infobox person/height
    • Template:Infobox person/height/locate
    • Template:Infobox person/height/switch
  • Template:Infobox person/weight
    • Template:Infobox person/weight/locate
    • Template:Infobox person/weight/switch
The above documentation is transcluded from Template:Infobox person/length/switch/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_person/length/switch&oldid=20236"
Category:
  • Template implementation details
Last edited on 12 July 2018, at 03:33

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 12 July 2018, at 03:33.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop