Template talk:Height

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Created for sports articles, to indicate how tall a player is.

Metres vs centimetres[edit]

Moved to Template_talk:Height#Metric_output_should_be_.27cm.27: Bagumba (talk) 21:21, 9 July 2014 (UTC)

Template:Height#Code makes no mention of the template's cm parameter even though in all likelihood that will be the unit sought. Also, should the default output remain as metres?--Gibson Flying V (talk) 02:46, 28 March 2014 (UTC)

Template:Height#Instructions states, "...and feet and inches are converted to centimetres or meters." How? As far as I can tell it only converts to metres.--Gibson Flying V (talk) 08:20, 9 July 2014 (UTC)

A simple look at documentation history shows that you introduced the erroneous documentation (on 12 April 2014) regarding conversion of ft/in to cm, when no such support existed, nor has there been consensus for it. I am removing it.—Bagumba (talk) 20:53, 9 July 2014 (UTC)
Oh. My apologies. I thought it had been added following the RfC. So why hasn't it been?--Gibson Flying V (talk) 21:03, 9 July 2014 (UTC)

Template-protected edit request on 2 February 2015[edit]

Hi, I have a wiki page under the title 'Tom Eckersley footballer' would it be possible for you to change the height of which the page says I am. It says I am 5ft 10in but I am actually 6ft 4in. I want this changed as football clubs look at the information on Wikipedia and with them seeing that it says I'm only 5ft 10in isn't good for me. Please could you change this or give me information on who to contact to change it. Thank you! Tom Eckersley. (talk) 22:25, 2 February 2015 (UTC)

Red information icon with gradient background.svg Not done: this is the talk page for discussing improvements to the template {{Height}}. Please make your request at the talk page for the article concerned. The talk page is at Talk:Tom Eckersley (footballer). --Redrose64 (talk) 22:57, 2 February 2015 (UTC)

Add "sort" ability to template[edit]

If this template is used in a table, then it does not sort properly. That is, it will sort values like this:

  • 6 ft 0 in
  • 6 ft 10 in
  • 6 ft 2 in

Can we add the ability to sort on the metric unit of the value so that it is sorted properly? — X96lee15 (talk) 18:13, 22 December 2015 (UTC)

The simplest might be to use {{convert}} for more tricky cases because convert handles sortable tables and some other things that might be useful. See Help:Convert#Sortable table for a table example. Examples:
  • {{convert|192|cm|ftin|abbr=on}} → 192 cm (6 ft 4 in)
  • {{convert|192|cm|ftin|1|abbr=on}} → 192 cm (6 ft 3.6 in)
  • {{convert|192|cm|ftin|abbr=on|frac=2}} → 192 cm (6 ft 3 12 in)
  • {{convert|6|ft|3+1/2|in|cm|0|abbr=on}} → 6 ft 3 12 in (192 cm)
  • {{convert|192|cm|ftin|abbr=on|frac=2|order=flip}} → 6 ft 3 12 in (192 cm)
Using |sortable=on adds a sort key, and the sort key can be displayed using debug=yes:
  • {{convert|192|cm|ftin|abbr=on|frac=2|sortable=on|debug=yes}}7000192000000000000♠192 cm (6 ft 3 12 in)
Johnuniq (talk) 00:06, 23 December 2015 (UTC)

Output in cm?[edit]

I've never lived anywhere where the height of people is measured in metres rather than centimetres (I'm Canadian and live in Japan). Why does this template force output in metres—especially given it accepts input in centimetres? Curly "JFC" Turkey 🍁 ¡gobble! 02:52, 20 February 2017 (UTC)

I don't know, but the "See also" has some convert examples that output in cm so I guess it is hinting to use {{convert}} for that (by the way, height calls convert to do the work now). In case you are not aware, some infoboxes no longer want a template—you just enter something like "5 ft 8 in" and it magically works out what to do. Johnuniq (talk) 03:30, 20 February 2017 (UTC)
Thanks! That's a better solution. Curly "JFC" Turkey 🍁 ¡gobble! 03:44, 20 February 2017 (UTC)
It's a very good question. One that keeps getting asked again, and again, and again...-- (talk) 03:14, 4 May 2017 (UTC)
The template now allows |out=cm to output conversions from feet and inches to centimetres. Example: {{height|ft=6|in=1|out=cm}} will display 6 ft 1 in (185 cm). More examples can be found in the documentaton. It was made optional to avoid affecting of any current uses of the template. Values other than "cm" are ignored, so |out=m has no effect but could used: {{height|ft=6|in=1|out=m}} will display 6 ft 1 in (1.85 m) (similar to how |mf=y is used with the {{birth date}} templates). -- Zyxw (talk) 03:02, 16 August 2017 (UTC)