Misplaced Pages

Template talk:Height: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 09:46, 18 January 2014 editGibson Flying V (talk | contribs)Autopatrolled, Extended confirmed users, Pending changes reviewers92,854 edits Human height is more commonly expressed in centimetres than metres: reply← Previous edit Latest revision as of 08:37, 29 June 2024 edit undoCewbot (talk | contribs)Bots7,691,520 editsm Maintain {{WPBS}}: 3 WikiProject templates. Create {{WPBS}}.Tag: Talk banner shell conversion 
(593 intermediate revisions by 41 users not shown)
Line 1: Line 1:
{{talkheader}}
Created for sports articles, to indicate how tall a player is.
{{WikiProject banner shell|
{{WikiProject Measurement}}
{{WikiProject Biography}}
{{WikiProject Sports}}
}}
{{Archives |auto=yes |search=yes |title=] (]) |bot=lowercase sigmabot III |age=90 }}
{{User:MiszaBot/config
|algo=old(90d)
|archive=Template talk:Height/Archive %(counter)d
|counter=3
|maxarchivesize=100K
|archiveheader={{Automatic archive navigator}}
|minthreadsleft=4
|minthreadstoarchive=1
}}
{{User:HBC Archive Indexerbot/OptIn
|target=Template talk:Height/Archive index
|mask=Template talk:Height/Archive <#>
|leading_zeros=0
|indexhere=yes
}}
Created for sports articles, to indicate how tall a player is.
__TOC__


== Add "sort" ability to template ==
==Usage==
{| class="wikitable"
! colspan="2" | For articles of non-metric interest, e.g. an American basketball player
|-
| &#123;&#123;height&#124;ft=6&#124;in=1&#125;&#125; || {{height|ft=6|in=1}}
|-
| &#123;&#123;height&#124;ft=7&#125;&#125; || {{height|ft=7}}
|-
| &#123;&#123;height&#124;feet=5&#124;inches=11&#125;&#125; || {{height|feet=5|inches=11}}
|-
! colspan="2" | For how high off the ground the hoop is:
|-
| &#123;&#123;height&#124;ft=10&#125;&#125; || {{height|ft=10}}
|-
! colspan="2" | For articles of metric interest, e.g. an Uruguayan football (soccer) player
|-
| &#123;&#123;height&#124;metres=2&#125;&#125; || {{height|metres=2}}
|-
| &#123;&#123;height&#124;meters=1.85&#125;&#125; || {{height|meters=1.85}}
|-
| &#123;&#123;height&#124;m=1.7&#125;&#125; || {{height|m=1.7}}
|-
| &#123;&#123;height&#124;meter=1.6&#125;&#125; || {{height|meter=1.6}}
|-
| &#123;&#123;height&#124;metre=1.683&#125;&#125; || {{height|metre=1.683}}
|-
! colspan="2" | When attempting to specify two non-compatible units:
|-
| &#123;&#123;height&#124;m=6&#124;ft=2&#125;&#125; || {{height|m=6|ft=2}}
|}
— <small>May. 30, '06</small><tt> ''' <<u class=plainlinks>|</u>>'''</tt>


If this template is used in a table, then it does not sort properly. That is, it will sort values like this:
*Clawed, by stretching out this template to say ft and in, you are stretching out countless infoboxes needlessly which use this template inside of them. ie: NHL players. Just leave it with the standard " for inches and ' for feet. ] 16:06, 11 July 2006 (UTC)
* 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? — ] (]) 18:13, 22 December 2015 (UTC)
:The simplest might be to use {{tl|convert}} for more tricky cases because convert handles sortable tables and some other things that might be useful. See ] for a table example. Examples:
:*<code><nowiki>{{convert|192|cm|ftin|abbr=on}}</nowiki></code> → {{convert|192|cm|ftin|abbr=on}}
:*<code><nowiki>{{convert|192|cm|ftin|1|abbr=on}}</nowiki></code> → {{convert|192|cm|ftin|1|abbr=on}}
:*<code><nowiki>{{convert|192|cm|ftin|abbr=on|frac=2}}</nowiki></code> → {{convert|192|cm|ftin|abbr=on|frac=2}}
:*<code><nowiki>{{convert|6|ft|3+1/2|in|cm|0|abbr=on}}</nowiki></code> → {{convert|6|ft|3+1/2|in|cm|0|abbr=on}}
:*<code><nowiki>{{convert|192|cm|ftin|abbr=on|frac=2|order=flip}}</nowiki></code> → {{convert|192|cm|ftin|abbr=on|frac=2|order=flip}}
:Using <code>|sortable=on</code> adds a sort key, and the sort key can be displayed using <code>debug=yes</code>:
:*<code><nowiki>{{convert|192|cm|ftin|abbr=on|frac=2|sortable=on|debug=yes}}</nowiki></code> → {{convert|192|cm|ftin|abbr=on|frac=2|sortable=on|debug=yes}}
:] (]) 00:06, 23 December 2015 (UTC)


== Output in cm? ==
:The template should strictly follow the manual of style since it is a template in many articles. I have looked at half of all the NHL players that use the NHL infobox and only found a couple of boxes that were expanded such as ], but always by only a very small amount. Can you please provide some exapmles of articles where the infoboxes have been expanded by the change of this template--] 08:36, 12 July 2006 (UTC)


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? ]&nbsp;<span style="color:red">🍁</span>&nbsp;] 02:52, 20 February 2017 (UTC)
Shawn_Horcoff Sergei_Samsonov Brendan_Morrison
:I don't know, but the "See also" has some convert examples that output in cm so I guess it is hinting to use {{tl|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 "<code>5&nbsp;ft&nbsp;8&nbsp;in</code>" and it magically works out what to do. ] (]) 03:30, 20 February 2017 (UTC)
:: Thanks! That's a better solution. ]&nbsp;<span style="color:red">🍁</span>&nbsp;] 03:44, 20 February 2017 (UTC)
:It's a very good question. One that keeps getting asked ], and ], and ]...--] (]) 03:14, 4 May 2017 (UTC)


:: The template now allows {{para|out|cm}} to output conversions from feet and inches to centimetres. Example: <nowiki>{{height|ft=6|in=1|out=cm}}</nowiki> will display {{height|ft=6|in=1|out=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 {{para|out|m}} has no effect but could used: <nowiki>{{height|ft=6|in=1|out=m}}</nowiki> will display {{height|ft=6|in=1|out=m}} (similar to how {{para|mf|y}} is used with the {{tl|birth date}} templates). -- ] (]) 03:02, 16 August 2017 (UTC)
. The bracketed measurement will be placed on a second line


== Talk:List of average human height worldwide ==
==]==
Could someone fix the link so that it points to ], which is the correct link. Thanks. --] 18:41, 5 January 2007 (UTC)
:Please, someone change this:
{| width=600px align=center style="border-width: 1px; border-style: solid; border-color: #000000; background-color: #FFFFFF;"
|-
|<div class="boilerplate metadata plainlinks" style="background-color: #EEEEEE; border: 1px solid #999999; margin: 0.5em; padding: 0.5em;"> <nowiki>{{#if:{{{inch|{{{inches|{{{in|}}}}}}}}}{{{foot|{{{feet|{{{ft|}}}}}}}}} |{{#if:
{{{meter|{{{meters|{{{metre|{{{metres|{{{m|}}}}}}}}}}}}}}}|<font color="red">Error: please specify only English or Metric units</font>|{{#expr:((({{{inch|{{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) - ({{{inch|{{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) mod 12) / 12) round 0}}&nbsp;]&nbsp;{{#expr:({{{inch| {{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) mod 12}}&nbsp;] ({{#expr:(({{{inch|{{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) * 0.0254) round 2}}&nbsp;])}}|{{#if:{{{meter|{{{meters|{{{metre|{{{metres|{{{m|}}}}}}}}}}}}}}} |{{{meter|{{{meters| {{{metre|{{{metres|{{{m|0}}}}}}}}}}}}}}}&nbsp;] ({{#expr: (({{{meter|{{{meters|{{{metre|{{{metres| {{{m|0}}}}}}}}}}}}}}} / 0.0254 - 6 ) / 12 ) round 0}}&nbsp;]&nbsp;{{#expr:({{{meter| {{{meters|{{{metre|{{{metres|{{{m|0}}}}}}}}}}}}}}} / 0.0254 - ((({{{meter|{{{meters| {{{metre|{{{metres|{{{m|0}}}}}}}}}}}}}}} / 0.0254 - 6) / 12) round 0) * 12) round 0}}&nbsp;])}}}}<noinclude>]{{esoteric}}</noinclude></nowiki>
|}
:to this:
{| width=600px align=center style="border-width: 1px; border-style: solid; border-color: #000000; background-color: #FFFFFF;"
|-
|<div class="boilerplate metadata plainlinks" style="background-color: #EEEEEE; border: 1px solid #999999; margin: 0.5em; padding: 0.5em;"> <nowiki>{{#if:{{{inch|{{{inches|{{{in|}}}}}}}}}{{{foot|{{{feet|{{{ft|}}}}}}}}} |{{#if:
{{{meter|{{{meters|{{{metre|{{{metres|{{{m|}}}}}}}}}}}}}}}|<font color="red">Error: please specify only English or Metric units</font>|{{#expr:((({{{inch|{{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) - ({{{inch|{{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) mod 12) / 12) round 0}}&nbsp;]&nbsp;{{#expr:({{{inch| {{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) mod 12}}&nbsp;] ({{#expr:(({{{inch|{{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) * 0.0254) round 2}}&nbsp;])}}|{{#if:{{{meter|{{{meters|{{{metre|{{{metres|{{{m|}}}}}}}}}}}}}}} |{{{meter|{{{meters| {{{metre|{{{metres|{{{m|0}}}}}}}}}}}}}}}&nbsp;] ({{#expr: (({{{meter|{{{meters|{{{metre|{{{metres| {{{m|0}}}}}}}}}}}}}}} / 0.0254 - 6 ) / 12 ) round 0}}&nbsp;]&nbsp;{{#expr:({{{meter| {{{meters|{{{metre|{{{metres|{{{m|0}}}}}}}}}}}}}}} / 0.0254 - ((({{{meter|{{{meters| {{{metre|{{{metres|{{{m|0}}}}}}}}}}}}}}} / 0.0254 - 6) / 12) round 0) * 12) round 0}}&nbsp;])}}}}<noinclude>]{{esoteric}}</noinclude></nowiki>
|}


I'd asked this years ago on the ], but I tend to recall the template being able to do conversions down to the quarter-inch, and I'd really like that to happen again on the Talk:List of average human height worldwide. Is this possible? --] (]) 11:36, 8 February 2018 (UTC)
:Thanks in advance, ]<sup>(]/])</sup> 09:03, 7 January 2007 (UTC)
:] has an example in the reply:
::Thanks to whoever fixed the link. --] 00:13, 7 March 2007 (UTC)
:*<code><nowiki>{{height|cm=177|frac=16}}</nowiki></code> → {{height|cm=177|frac=16}}
:It might be better to use {{tl|convert}} directly as that is understood by many editors and is used to do the work by {{tl|height}}. If wanted, {{tl|cvt}} (which is convert with <code>abbr=on</code>) examples would be:
:*<code><nowiki>{{cvt|177|cm|in|frac=4}}</nowiki></code> → {{cvt|177|cm|in|frac=4}}
:*<code><nowiki>{{cvt|177|cm|ftin|frac=4}}</nowiki></code> → {{cvt|177|cm|ftin|frac=4}}
:] (]) 22:05, 8 February 2018 (UTC)
::I'd have no idea how to do this on that page. More than that, is this something I'd have to ask to do? I would like someone with the know-how to do this. --] (]) 00:34, 9 February 2018 (UTC)
:::I don't understand that. If you are editing an article and want to use {{tl|height}} and want it to display a fraction, use |frac=4 (or |frac=2 or other number) as shown above. If you want to change the default behavior of this template, please spell out what you want. ] (]) 03:09, 12 February 2018 (UTC)


== ] == == Error handling ==


I noticed today that Height has not been displayed in the infobox for ] for 5 months due to edit which introduced <code><nowiki>{{height|1.90m}}</nowiki></code>. This is an obvious error in template usage, but the editor did not notice that nothing was displayed in the infobox and there was no warning. Not sure if there are many more of these out there. Can this generate an error or be flagged in a maint category or something? ] 14:12, 26 September 2018 (UTC)
This template is being used on that article, but the numbers given in it are not exact, so using this template implies an inappropriate degree of precision. This shouldn't be used outside of cases where the numbers are specifically known. ] (]/]) 18:39, 21 March 2007 (UTC)
: I added ], which will take some time to fill up. we can remove this tracking if for some reason it's too much overhead. ] (]) 19:19, 26 September 2018 (UTC)

==Small change to remove spaces==
A small request/proposal: rather than 6 ft (1.8 m), how about 6ft (1.8m)? When written normally, there would be no space between the number and symbol, e.g. 20kg, 100m. ] | ] 11:46, 26 March 2007 (UTC)

:From ]:
::''Put a space between the value and the unit symbol, for example "25&nbsp;kg", "5&nbsp;°C", (not "25kg", "5°&nbsp;C"); however, angles in degrees have no space: "45°". Preferably, use <code>&amp;nbsp;</code> for the space (<code>25&amp;nbsp;kg</code>) so that it does not break lines.'' ] 14:49, 6 May 2007 (UTC)

==Fault==
Using <nowiki>{{height|m=1.82}}</nowiki> gives:
*{{height|m=1.82}}
5 ft 12 in is 6 ft. This template therefore needs a tinker. &nbsp;<font face="Tahoma">]<small>&nbsp;•]•]</small></font> 12:18, 28 March 2007 (UTC)
: Well, strictly speaking 1.82m is 5.97112861 feet. Since it's not quite yet six feet, that's probably why it's not rounding it up to 6 ft 0 in—to insinuate the small difference.<p>Or it could be broken, I'm just postulating here. — ''']''' <sup>|''' ]'''</sup> | 12:40, 28 March 2007 (UTC)

:: Broken. Should be 6 ft. ] 14:51, 6 May 2007 (UTC)

::: Here's the fix (hopefully):
{| width=600px align=center style="border-width: 1px; border-style: solid; border-color: #000000; background-color: #FFFFFF;"
|-
|<div class="boilerplate metadata plainlinks" style="background-color: #EEEEEE; border: 1px solid #999999; margin: 0.5em; padding: 0.5em;"> <nowiki>{{#if:{{{inch|{{{inches|{{{in|}}}}}}}}}{{{foot|{{{feet|{{{ft|}}}}}}}}} |{{#if:
{{{meter|{{{meters|{{{metre|{{{metres|{{{m|}}}}}}}}}}}}}}}|<font color="red">Error: please specify only English or Metric units</font>|{{#expr:((({{{inch|{{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) - ({{{inch|{{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) mod 12) / 12) round 0}}&nbsp;]&nbsp;{{#expr:({{{inch| {{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) mod 12}}&nbsp;] ({{#expr:(({{{inch|{{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) * 0.0254) round 2}}&nbsp;])}}|{{#if:{{{meter|{{{meters|{{{metre|{{{metres|{{{m|}}}}}}}}}}}}}}} |{{{meter|{{{meters| {{{metre|{{{metres|{{{m|0}}}}}}}}}}}}}}}&nbsp;] ({{#expr: (({{{meter|{{{meters|{{{metre|{{{metres| {{{m|0}}}}}}}}}}}}}}} / 0.0254 - 5.5 ) / 12 ) round 0}}&nbsp;]&nbsp;{{#expr: (({{{meter|{{{meters|{{{metre|{{{metres| {{{m|0}}}}}}}}}}}}}}} / 0.0254 ) round 0) mod 12}}&nbsp;])}}}}<noinclude>]{{esoteric}}</noinclude></nowiki>
|}
:::It's also slightly simpler... ] 15:31, 6 May 2007 (UTC)

== Units ==

Is it possible to have the template display conversions in centimetres rather than metres and centimetres, e.g. 6 ft 1 in (185 cm)? ] 00:21, 17 April 2007 (UTC)

:My thoughts also... Besides: e.g. 5 ft 11 in expands to "1.8 m", which is an odd format for human height (1.80 m or 180 cm would be customary). I'd also like to see a 1/2 inch precision (e.g. 187 cm is 6 ft 1&frac12; in), although this looks pretty difficult to implement. ] 14:35, 6 May 2007 (UTC)

::Well, the fraction solution is ugly:
{| width=600px align=center style="border-width: 1px; border-style: solid; border-color: #000000; background-color: #FFFFFF;"
|-
|<div class="boilerplate metadata plainlinks" style="background-color: #EEEEEE; border: 1px solid #999999; margin: 0.5em; padding: 0.5em;"> <nowiki>{{#if:{{{inch|{{{inches|{{{in|}}}}}}}}}{{{foot|{{{feet|{{{ft|}}}}}}}}} |{{#if:
{{{meter|{{{meters|{{{metre|{{{metres|{{{m|}}}}}}}}}}}}}}}|<font color="red">Error: please specify only English or Metric units</font>|{{#expr:((({{{inch|{{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) - ({{{inch|{{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) mod 12) / 12) round 0}}&nbsp;]&nbsp;{{#expr:({{{inch| {{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) mod 12}}&nbsp;] ({{#expr:(({{{inch|{{{inches|{{{in|0}}}}}}}}} + {{{foot|{{{feet|{{{ft|0}}}}}}}}} * 12) * 0.0254) round 2}}&nbsp;])}}|{{#if:{{{meter|{{{meters|{{{metre|{{{metres|{{{m|}}}}}}}}}}}}}}} |{{{meter|{{{meters| {{{metre|{{{metres|{{{m|0}}}}}}}}}}}}}}}&nbsp;] ({{#expr: (({{{meter|{{{meters|{{{metre|{{{metres| {{{m|0}}}}}}}}}}}}}}} / 0.0254 - 5.75 ) / 12 ) round 0}}&nbsp;]&nbsp;{{#ifexpr: (({{{meter|{{{meters|{{{metre|{{{metres| {{{m|0}}}}}}}}}}}}}}} / 0.0254 - 0.25 ) round 0 ) mod 12 != 0 or (({{{meter|{{{meters|{{{metre|{{{metres| {{{m|0}}}}}}}}}}}}}}} / 0.0254 * 2 ) round 0 ) mod 2 = 0|{{#expr: (({{{meter|{{{meters|{{{metre|{{{metres| {{{m|0}}}}}}}}}}}}}}} / 0.0254 - 0.25 ) round 0 ) mod 12}}}}{{#ifexpr: (({{{meter|{{{meters|{{{metre|{{{metres| {{{m|0}}}}}}}}}}}}}}} / 0.0254 * 2 ) round 0 ) mod 2 = 1|½}}&nbsp;])}}}}<noinclude>]{{esoteric}}</noinclude>
</nowiki>
|}

::Works only one way, metric to inches. ] 16:06, 6 May 2007 (UTC)
:::I've moved the above code to {{tl|Height2}}. ] 11:39, 13 May 2007 (UTC)

== Add a IW ==

Hi I've created a copy of this template on the norwegian language. Can an administrator add a IW in the noinclude section to ]? ] 18:37, 17 May 2007 (UTC)

== no inch display ==

Is there a way to make the 0 inches not display. E.G. at ]. ] <small>(]/]/]/])</small> 21:53, 21 May 2007 (UTC)

:Short of altering the template, apparently not. I'd recommend {{tl|Ft to m}}. ] 07:54, 22 May 2007 (UTC)

::Thanks. That is just what I am looking for. ] <small>(]/]/]/])</small> 18:26, 22 May 2007 (UTC)

== Links ==
{{tl|editprotected}}
I'd like to propose removing links to ft, in, metres, etc, as this makes the display of height in infoboxes very inelegant. It's also superfluous as the most obvious of links are not supposed to be made unless relevant to the article, such as linking years when not part of a date. Opinions? ]&nbsp;<sup>«]•]»</sup> 21:30, 23 May 2007 (UTC)

:The links don't really bother me, but I suppose they are not too useful either. ] 15:49, 24 May 2007 (UTC)

*I have turned off the editprotected link for now because there is very little comment on this and this template is used very widely. I would like to see enough to believe that there is consensus before making the change. Perhaps you can post something at the village pump to draw some attention for people to come here and comment. Once (if) you have consensus, I will be happy to make the change. --] <sup><small>]</small></sup> 14:00, 31 May 2007 (UTC)

:I '''support''' it per GregorB's comment. <small>~ ] • ] • ] 03:59, July 5, 2007 (UTC)</small>

:I ''oppose'' this. I believe the links should remain because users may not be familiar with the units, or more importantly the abbreviations. And on many articles, this template is the first and only usage of them. I wouldn't be opposed to a parameter specifying whether to link or not. — ] 04:13, 6 July 2007 (UTC)
::A reader wouldn't be familiar with the units or abbreviations? I'd find that hard to believe, but in the remote possibility that they're not familiar with pretty much the only units used to measure height worldwide (either metres or feet & inches), then the figures being provided are of no use to them, so a link to the article describing them would be of no use either. ]&nbsp;<sup>«]•]»</sup> 18:35, 7 July 2007 (UTC)

== problem in algorithm? ==
{{tl|editprotected}}

It seems the following is giving an error: <nowiki>{{height|m=1.82}}</nowiki> produces {{height|m=1.82}}

Is it possible to fix the template to just be 6 ft 0 in? // ] 19:01, 7 June 2007 (UTC)
: I just noticed an apparent fix is posted above under the "Fault" heading, as well as a request to add an interwiki link, so I'm adding the editprotected template here.
::] '''Done'''. Also I've created a /doc subpage for furture interwiki links. Cheers. --] 22:33, 7 June 2007 (UTC)
:::Looks good, thanks MZMcBride. // ] 22:46, 7 June 2007 (UTC)

== Instructions ==

Hi I've added instructions without noticing there were some at the top of this talkpage, so I reduced mi edits to a quick guide, I wonder if you would mind to move these long table to the /doc subpage --'''''] ]''''' 00:55, 17 June 2007 (UTC)

==Half inches==
I can't seem to get the template to use half inches; { {height|ft=6|in=1.5} } and { {height|ft=6|in=1} } both display as 6ft 1in; however, the metric changes correctly. Thanks, ] 16:35, 30 June 2007 (UTC)

:{{tl|Height}} currently does not support half inches, but for the equivalent result you can try this: <nowiki>{{Ft in to m|ft=6|in=1.5|abbr=yes|precision=2|wiki=yes}}</nowiki>, which expands as {{Ft in to m|ft=6|in=1.5|abbr=yes|precision=2|wiki=yes}}. Speaking of which: it would make sense for {{tl|Height}} to transclude {{tl|Ft in to m}}, it would simplify its code greatly, with half inches as a bonus. Any opinions on that? ] 17:24, 4 July 2007 (UTC)
::I added the functionality of using the sixteenths of the inch in the output (decimals are supported by default). Note that something like "6/16" would automatically be reduced to "3/8". Have fun.—]&nbsp;•&nbsp;(]); 21:01, 3 August 2007 (UTC)

==Enquiry==
Could someone add an instruction so that you can specify whether you want feet or metres to appear first? For example with footballers, some people get very nationalistic over which units to highlight and so used { {height|ft=6|in=1} } / {{height|ft=6|in=1}} when the player is actually 1.86 m tall. I reverted to { {height|m=1.86} } / {{height|m=1.86}} because it is more correct, and only after a few iterations of this minor edit war did I notice what the problem is.

So what I'm saying is that it would be good to be able to enter the height in metres, but get feet display first. Shouldn't be too much work, should it? Cheers, ] 15:44, 4 July 2007 (UTC)

== Precision ==

Precision=0 should be the default instead of precision=1 because that's how human height in inches is usually represented and that was the template's original behavior. The current setting displays precision that isn't there. ] 13:04, 5 August 2007 (UTC)
:I agree. In the main, people never measure height in fractions of inches. Precision=0 should be the default. - ] 14:26, 5 August 2007 (UTC)
::Fixed. One can still specify a different precision if necessary. Thanks.—]&nbsp;•&nbsp;(]); 15:40, 5 August 2007 (UTC)
:::Whoops, I didn't realize there were more complaints above. Just wanted to say that when I was re-designing this template, I beleived that it should be deprecated; all improvements were introduced only as a stop-gap measure. But since people are eager to keep this, a more serious re-write is in order. Anyway, as for the fractions being 16ths, that can be easily switched to any other denominator, as {{tl|dec to frac}} (which is called to handle fraction conversions) can handle all of the smaller values (16 is used here only as a default; it is trivial to switch to 2 (for halves) or to a custom parameter.—]&nbsp;•&nbsp;(]); 15:53, 5 August 2007 (UTC)
::::"Precision=0" broke the support for fractions. I'm going to leave it as is for now because the fractions support is not used anywhere and the default/requested behavior is not affected, but rest assured I'll have it fixed later... unless this fraction feature is found to be completely unneeded.—]&nbsp;•&nbsp;(]); 19:15, 5 August 2007 (UTC)

==Update==
OK, hopefully I was able to finally fix this template. For meters-to-feet/inches conversions, the output now defaults to showing half-inches. If fourths, sixteenths, 45ths, or whatever else is desired, specify it using the ''frac'' parameter (set ''frac''=4, 16, 45, or whatever). Use ''frac''=10 to show inches as decimals (the default precision for this is one, but it can be changed using the ''precision'' parameter). To make sure no fractional inches are shown (either vulgar or decimal), set ''precision''=0.

If you find any bugs that need fixing, please list them here. Hopefully there won't be any. Otherwise, enjoy!—]&nbsp;•&nbsp;(]); 17:11, 7 August 2007 (UTC)

:Well, there's this very minor issue that was present since the beginning: e.g. <nowiki>{{height|ft=5|in=11}}</nowiki> displays the height as 1.8 m, while the display of 1.80 m would be more common in general use. As far as I can tell, this is due to behavior of the MediaWiki round function, so working around it looks difficult. ] 17:44, 16 August 2007 (UTC)
::You are right, it is how the round function works. I won't say it's unfixable (it is), but fixing it is definitely not something that can be done quickly (not with the limited assortment of tools the template language provides, anyway).—]&nbsp;•&nbsp;(]); 17:59, 16 August 2007 (UTC)
:::Ah, alright, I couldn't resist&mdash;I tried it out :) Turned out to be not as difficult as I first thought. However, since I don't have time to test is thoroughly, please do so for me before this improvement can go into production.
:::In order to change {{tl|height}}'s handling of trailing zeroes, {{tl|ft in to m}} will need to be improved. That improved version of <nowiki>{{ft in to m}}</nowiki> is now located at {{tl|X8}} ('s the permalink in case X8 gets reset; it's a sandbox template). Please test it out with different values and precisions. If everything checks, then X8's code can simply be used to overwrite <nowiki>{{ft in to m}}</nowiki>'s, after which <nowiki><!-- {{height}} --></nowiki> will handle trailing zeros properly.—]&nbsp;•&nbsp;(]); 18:55, 16 August 2007 (UTC)
::::Never mind, it does not work properly :(—]&nbsp;•&nbsp;(]); 19:43, 16 August 2007 (UTC)
:::::Confirmed... 5 ft 11 in is OK, 6 ft 7 in is not. ] 20:23, 16 August 2007 (UTC)

== Centimetres ==
Why give heights in metres? Usually when people speak of height it's in centimetres (if they're talking metric). <span title="Pronunciation in IPA" class="IPA">]]]]</span> 23:27, 11 September 2007 (UTC)
:Having for most of my life lived in a country that uses the metric system, I should note that stating a human height in centimeters is not nearly as common as giving it in meters (e.g., 1.89&nbsp;m) or in meters ''and'' centimeters (1&nbsp;m 89&nbsp;cm). I can't vouch, of course, that this is the case everywhere else.—]&nbsp;•&nbsp;(]); 00:15, 14 September 2007 (UTC)
::That country would be Russia, would it not? I should rephrase ... usually when people speak of height, in English speaking countries, it's in centimetres (if they're talking metric) ... or at least that's my experience. Giving human height in metres would be most uncommon where I'm from (Australia). <span title="Pronunciation in IPA" class="IPA">]]]]</span> 07:02, 20 September 2007 (UTC)
:::Russia, yup, that's correct. As for the English-speaking countries, I wouldn't know, living in the U.S. and all (I am yet to hear an American talk metric :)). Anyone else wants to comment? Please?—]&nbsp;•&nbsp;(]); 20:49, 20 September 2007 (UTC)

::::We can inform ourselves with some crude research. Here are some suggestions for google tests:
::::*height 178-cm weight
::::*height 1.78-m weight
::::*taille poids 178-cm
::::*taille poids 1.78-m
::::*Höhe Gewicht 178-cm
::::*Höhe Gewicht 1.78-m
::::*altura peso 178-cm
::::*altura peso 1.78-m
::::Google has excellent facilities for restricting searches to one country (e.g. Spain) or language (e.g. Spanish). Run the english language tests on www.google.co.za using the 'pages from South Africa' button below the search box.
::::Similarly with www.google.com.au using the 'pages from Australia' button.
::::You can test russion pages using http://www.google.com/intl/ru/ using the 'Поиск страниц на русском' button.
::::Other useful data sources would be articles (but not translations of US non-metric articles) from local Wikipedias. For example, the Italian Misplaced Pages shows the height of in metres.
::::In ignorance of the 'right' answer, we could have a slight preference for base units (m, kg, W) over prefixed units. My impression is that there is no consensus that would be 'right' for all countries and all domains. ] 12:15, 22 September 2007 (UTC)

:::::Here in Sweden we at least say (translated) "I'm one and eighty-seven" going with the 1.87m view. "I'm 187 centimeters" just sounds retarded ;) ]] 09:10, 5 October 2007 (UTC)

:In Canada, its centimetres. Giving height in metres AND centimetre (1 m 87 cm) copies the foot-inch reporting & does not make use of the decimal relationship between metres & centimetres - the very reason for the design of the metric system. Using decimals for height (1.87 m)adds an unneeded character - a character that is easily confused with a punctuation mark in sentences. The height template needs to allow the conversion be done to cm, at least as an option if not as default.--] (]) 06:57, 2 July 2010 (UTC)
It appears <nowiki>{{convert|5|ft|11|in|cm}}</nowiki> already does the job :{{convert|5|ft|11|in|cm}} --] (]) 07:36, 2 July 2010 (UTC)
:In Australasia and East Asia it's all centimetres. I've never seen anyone express height in metres in my life till I came to Misplaced Pages. The problem with the solution mentioned by JimWae is that it has feet and inches as the main height with the centimetres in brackets. How can we get it the other way around?--] (]) 01:04, 26 July 2012 (UTC)
::<nowiki>{{convert|184|cm|ftin|abbr=on}}</nowiki> does the trick, although that doesn't use this template. ] (]) 01:20, 26 July 2012 (UTC)

== MOS conformity ==

Is it possible to get this template and {{tl|weight}} to default to ] conventions on abbreviations.--] <small>(]/]/]/]) </small> 21:18, 30 October 2007 (UTC)
:I thought I've fixed this one already? Could you, please, point out where exactly it is in violation of MOS? I might have missed something, of course. As for {{tl|weight}}, I also promised to fix it, but never got around to actually doing it :( Thanks.—]&nbsp;•&nbsp;(]); 21:29, 30 October 2007 (UTC)
::MOS calls for spelled out units and abbreviated parenthetical conversion. Thus, it should default to X feet Y inches (Z m) instead of X ft Y in (Z m). Same for {{tl|weight}}.--] <small>(]/]/]/]) </small> 21:10, 31 October 2007 (UTC)
:::Ah, that. The only reason why this template defaults to abbreviated units is because it is intended for use primarily in infoboxes, where spelling out units is not practical. I was not aware this template is used anywhere outside infoboxes; perhaps this point should be clarified in the documentation. In any case, it is possible to add the ''abbr'' switch to take care of this contingency. Please let me know if that would be helpful. Thanks.—]&nbsp;•&nbsp;(]); 21:17, 31 October 2007 (UTC)
::::Yes a parameter like MOSstlye=on or something would be great for both templates. --] <small>(]/]/]/]) </small> 15:26, 1 November 2007 (UTC)
:::::OK, done. You can now use the standard ''abbr'' parameter, which takes values of ''yes'' (default), ''no'' (both sides spelled out), and ''mos'' (MoS-compliant). Note that the issue with singular units still needs to be fixed&mdash;one foot/one inch/one meter currently show as "1 feet"/"1 inches"/"1 meters", so until that's fixed please exercise caution.
:::::I am not making any promises on when {{tl|weight}} is going to be done, but it is on my to-do list. If anyone reading this wants to fix it themselves, I won't be complaining :) Best,—]&nbsp;•&nbsp;(]); 15:58, 1 November 2007 (UTC)
::::::Thanks.--] <small>(]/]/]/]) </small> 22:47, 1 November 2007 (UTC)

== Display of fractions of inches ==
This is a great addtion to Misplaced Pages. Would it be possible to use the ½ ⅓ ⅔ ¼ ¾ ⅛ ⅜ ⅝ and ⅞ characters when displaying fractions of inches? This would enhance the appearance of the output. Best Wishes ] 08:11, 31 October 2007 (UTC)
:The author of the template that handles the fractions ({{tl|frac}}) originally implemented that feature, but I believe he then rolled it back because of the MoS concerns and overall inconsistency of look. It is not terribly difficult to add the feature back, making it optional if necessary, but we first need to determine whether this feature can be considered to be MoS-compliant or not.—]&nbsp;•&nbsp;(]); 14:16, 31 October 2007 (UTC)
::In most cases in which this template is used, nothing more than half-inch precision is reasonable. But that isn't true in all cases in which it is used, let alone in all cases in which it could be used, were it designed with some way to override the default to the current precision.

::But even when half-inch precision is used, there is a second point made here by ]

::{| class="wikitable"
|-
|code || <nowiki>{{height|m=1.82}}</nowiki>
|-
|display when posted||1.82 m (5 ft 11<sup>1</sup>&frasl;<sub>2</sub> in)
|-
|current display||{{height|m=1.82}}
|-
|Saga City suggestion||1.82 m (5 ft 11½ in)
|-
|}
:: ] (]) 22:53, 13 January 2008 (UTC)
:::As you have probably already discovered by now, the problem lies not with this template, but with {{tl|frac}}, the author of which did not want to use the Unicode fractions for reasons I can't quite recall.—]&nbsp;•&nbsp;(]); 15:05, 14 January 2008 (UTC)

== Linkable ==

Is it possible to make the units linkable?--] <small>(]/]/]/]) </small> 00:48, 5 November 2007 (UTC)
:Done. Can you tell me where you are planning to deploy this tempate's added features, please? It's just that I am having a hard time imagining it being useful anywhere outside the infoboxes. Thanks.—]&nbsp;•&nbsp;(]); 16:21, 5 November 2007 (UTC)

== Deprecation ==

Why isn't this template announced as deprecated just like the "weight" template (due to the new "convert" template)? -] (]) 18:10, 15 February 2008 (UTC)
:Because, unlike {{tl|weight}}, this template provides some functionality which no other template offers.—]&nbsp;•&nbsp;(]); 18:32, 15 February 2008 (UTC)
::Is that so? What functionality is that? – ]] 14:53, 16 February 2008 (UTC)
:::Vulgar fractions. Please refer to the template documentation for details.—]&nbsp;•&nbsp;(]); 15:21, 18 February 2008 (UTC)

On a slightly related issue, Is there any guidance over people doing mass changes from height->convert or vice versa in a case when the extra functionalities aren't being used? ] (]) 05:15, 13 September 2011 (UTC)

==4'12"==
The template is converting height to '4'12"'. See: ]. ] (]) 22:45, 23 May 2008 (UTC)
:Not an easy fix, unfortunately. You can either specify the fractions: <nowiki>{{height|m=1.52|frac=16}}</nowiki>&rarr;{{height|m=1.52|frac=16}}; or use {{tl|Convert}} or {{tl|m to ft in}}: <nowiki>{{m to ft in|1.52}}</nowiki>&rarr;{{m to ft in|1.52}}—]&nbsp;•&nbsp;(]); 14:26, 27 May 2008 (UTC)

== 1.82 converts to 5' 12"" ==

I found the above problem as well, but also not that a person exactly 1.82 meters will convert incorrectly.
<nowiki>{{height|m=1.82|precision=0}}</nowiki>->{{height|m=1.82|precision=0}}
--<font style="font-family:Monotype Corsiva; font-size:15px;">]]</font> 11:58, 29 June 2009 (UTC)
: I believe this is now fixed. For reference, it was producing 5 ft 12 in, but now should produce 6 ft 0 in. ] ] 18:34, 12 September 2010 (UTC)

== Interwiki for Norway ==

Can someone change the interwiki for Norway to ]? ] is wrong and doesn't lead anywhere. ] (]) 21:19, 30 November 2009 (UTC)
:Done. You could have done it on your own, by the way (interwikis go to the doc page, which is not protected). Cheers,—]&nbsp;•&nbsp;(]); 21:47, November&nbsp;30, 2009 (UTC)

== Human height is more commonly expressed in centimetres than metres ==

This is a huge shortcoming in this template which is crying out to be fixed.--] (]) 13:03, 1 January 2014 (UTC)
:A <nowiki>{{height|cm= }}</nowiki> option needs to be provided for. Centimetres for human height are the absolute norm in parts of the world that use the metric system and are preferred by the UK's ],<ref>http://www.nhs.uk/Tools/Pages/Healthyweightcalculator.aspx</ref> ],<ref>http://www.abs.gov.au/ausstats/abs@.nsf/Lookup/4338.0main+features212011-13</ref> ]<ref>http://www.passports.govt.nz/Completing-your-application---converting-your-height</ref>, ]<ref>http://www.hc-sc.gc.ca/fn-an/nutrition/weights-poids/guide-ld-adult/bmi_chart-graph_imc-eng.php</ref>, etc. {{reflist|close}} How it's gone this long without being addressed is a true mystery.--] (]) 04:53, 15 January 2014 (UTC)
::Ask anyone how high they are in Germany and noone will answer in centimeters. How is it in UK? Weight-tables or BMI calculators are not the best source i'd say. -] (]) 07:09, 15 January 2014 (UTC)
Right, well I guess you showed me, huh? Better leave it as it is then!
*{{cite book|last=Thomas T. Samaras|title=Human Body Size and the Laws of Scaling: Physiological, Performance, Growth, Longevity and Ecological Ramifications|year=2007|publisher=Nova Science Publishers|location=USA|url=http://books.google.co.nz/books?id=PCU0RwDI6c4C&printsec=frontcover#v=onepage&q&f=true}}
*{{cite book|last=Phyllis B. Eveleth, James M. Tanner|title=Worldwide Variation in Human Growth|year=1990|publisher=Cambridge University Press|location=UK|url=http://books.google.co.nz/books?id=ZPeMjYy65_sC&printsec=frontcover&source=gbs_ge_summary_r&cad=0#v=onepage&q&f=true}}
*{{cite book|last=Leslie Aiello, Christopher Dean|title=An Introduction to Human Evolutionary Anatomy|year=1990|publisher=Academic Press|location=USA|url=http://books.google.co.nz/books?id=JtUzCX2aPoIC&printsec=frontcover&#v=onepage&q&f=true}}
*{{cite book|last=Bruce J Chalmer|title=Understanding Statistics|year=1987|publisher=CRC Press|location=USA|url=http://books.google.co.nz/books?id=wG06_c4yzC4C&printsec=frontcover&#v=onepage&q&f=true}}
*{{cite book|title=Oxford Textbook of Medicine|year=2003|publisher=Oxford University Press|location=UK|url=http://books.google.co.nz/books?id=_s65U1n9Lf8C&printsec=frontcover&#v=onepage&q&f=true}}
*{{cite book|last=Jerrold T. Bushberg, J. Anthony Seibert, Edwin M. Leidholdt, John M. Boone|title=The Essential Physics of Medical Imaging|year=2012|publisher=Lippincott Williams & Wilkins|location=USA|url=http://books.google.co.nz/books?id=RKcTgTqeniwC&printsec=frontcover&#v=onepage&q&f=true}}
How about those? --] (]) 07:21, 15 January 2014 (UTC)
:That are good sources. :-) -] (]) 08:12, 15 January 2014 (UTC)
::The NHS might prefer it, but what about sources discussing the individual in question? In ] database websites, for example, player heights are almost always given in m or feet - ''very'' rarely cm. ]] 12:48, 15 January 2014 (UTC)
::::Well, in Australia and Japan, where the metric system is the norm for expressing human height, centimetres are used. See ]'s and ]'s official websites. If you (somehow) need more convincing, see the official sites of the ], ], ], ], ]. I suspect a large number of sites that use metres show themsevles to be taking the data directly from wikipedia, which is (as clearly illustrated above) out of step with comman usage in the English-speaking world (not to mention China, Japan, Korea, etc.)--] (]) 20:04, 15 January 2014 (UTC)
:::I agree with GiantSnowman. I hardly ever see human height expressed in centimetres. – ]] 15:40, 15 January 2014 (UTC)
::::So somehow, despite all the evidence that cm are in common usage, you're arguing that no cm parameter should be allowed for this template and users must be restricted to metres only?--] (]) 19:56, 15 January 2014 (UTC)
:::::Where have I said anything against the cm proposal? I was merely warning against people trying to implement it across ''all'' articles. ]] 20:01, 15 January 2014 (UTC)
::::::Fantastic. I don't know how to move forward and make it happen (otherwise I would have). Do you?--] (]) 20:05, 15 January 2014 (UTC)
:::::::Further input to this discussion is needed first, I would say. ]] 20:07, 15 January 2014 (UTC)
I was notified of this discussion from a ]. The top basketball league in Europe, ], . At best, some—not all—domains might prefer centimeters over meters. I cannot comment as an American, but is displaying 1.76 meters vs 176 centimeters really that bizarre. I assume the math is not the issue.—] (]) 20:33, 15 January 2014 (UTC)
:I trust you saw the sources provided above? In some places it's not bizarre. In others (such as reliable ]) it is. All we have to decide is whether the height template allows for centimetres or remains restricted to metres.--] (]) 20:38, 15 January 2014 (UTC)
:: there is now a version in the sandbox which allows for input in cm, will need an admin to update it. the output from imperial is still m, but could change that to cm if there is consensus to do so (or just make it an option). ] (]) 00:50, 16 January 2014 (UTC)
::: Such consensus appears to exist at ].--] (]) 08:21, 16 January 2014 (UTC)
::::That article is very inconsistent, with both metres and centimetres being used throughout. -- ] (]) 13:28, 16 January 2014 (UTC)
:::::That will be addressed once this template starts allowing for the use of centimetres.--] (]) 20:57, 16 January 2014 (UTC)
*One thing I ''do'' have an issue with is the heading of this section, and the claim therein - "human height is more commonly expressed in centimetres than metres" - simply not true. ]] 14:01, 16 January 2014 (UTC)
::Right, I should have qualified that claim with "...in high-quality sources". We're all waiting for you to prove otherwise.--] (]) 20:28, 16 January 2014 (UTC)
:::No, the ] is on you to show why we should change. Also you do know that 180cm is the ''exact'' same as 1.80m? ]] 20:37, 16 January 2014 (UTC)
::::Sorry, but have you read any of the above? I'm afraid it's your defence of metres that is wanting explanation.--] (]) 20:45, 16 January 2014 (UTC)
:::::Ah yes, just because it is used on government websites and by academics? Jeez, your pro-cm/anti-m agenda is actually making me re-think my earlier support for this. I fear the new template parameter might be mis-used. ]] 21:00, 16 January 2014 (UTC)
::::::"Just" government websites and academics. I'm sure you're familiar with ]. We're still waiting for some that support preference for metres.--] (]) 21:06, 16 January 2014 (UTC)
:::::::Like I've already said, plenty of sports databases such as and and . Some ''do'' use cm, but the majority use m. ]] 21:12, 16 January 2014 (UTC)
::::::::Ok, so some sports (mostly non-English language) databases use metres, whereas most serious websites don't. Anything else?--] (]) 21:16, 16 January 2014 (UTC)
:::::::::As this template was intended to be used in infoboxes, and I'm guessing its mostly athletes that list height in infoboxes, it seems sports-relates sources should have greater weight than "serious websites" when it comes to this template.—] (]) 21:42, 16 January 2014 (UTC)
::::::::::Absolutely. And it seems that the higher-quality the source, the more likely it is to use centimetres. We just have to decide where we want Misplaced Pages to fall on this scale. My preference would be at the upper end.--] (]) 21:52, 16 January 2014 (UTC)
{{od}} GFV, you have mis-read/mis-understood what Bagumba said - they said that as this template is used mainly on articles related to athletes, and as athletic databases tend to use m, we should use m. ]] 12:58, 17 January 2014 (UTC)
:See, it's statements like "athletic databases tend to use m" that get me. I never said that sports websites can't be serious ones. Perhaps you should shoot off some emails to help out these poor guys (who are clearly of step with how a few of Misplaced Pages's soccer fans think human height should be presented): ],<ref>{{cite web|title=teamgb.com|url=http://www.teamgb.com/athletes/abby-mae-parkinson}}</ref> ],<ref>{{cite web|title=olympics.com.au|url=http://sochi2014.olympics.com.au/athlete/brooklee-han}}</ref> ]<ref>{{cite web|title=usaswimming.org|url=http://www.usaswimming.org/DesktopModules/BioViewManaged.aspx?personid=4beec290-d7ae-483d-a512-36b18a4e022a&TabId=1453&Mid=10312}}</ref> ]<ref>{{cite web|title=atpworldtour.com|url=http://www.atpworldtour.com/Tennis/Players/Top-Players/Andy-Murray.aspx}}</ref> ]<ref>{{cite web|title=joc.or.jp|url=http://www.joc.or.jp/english/londonolympics/medalists.html}}</ref> ]<ref>{{cite web|title=swimming.org.au|url=http://www.swimming.org.au/article.php?group_id=7307}}</ref> , ]<ref>{{cite web|title=ufc.com|url=http://www.ufc.com/fighter}}</ref> ]<ref>{{cite web|title=nzbreakers.co.nz|url=http://www.nzbreakers.co.nz/player-profiles}}</ref> ]<ref>{{cite web|title=canadasoccer.com|url=http://www.canadasoccer.com/?t=roster&pid=893}}</ref> ],<ref>{{cite web|title=uefa.com|url=http://en.uclplayers.uefa.com/Graph.aspx?Show=Height}}</ref> , ],<ref>{{cite web|title=olympic.ca|url=http://olympic.ca/team-canada/alex-harvey/}}</ref> etc.{{reflist|close}}--] (]) 21:56, 17 January 2014 (UTC)
::I'm pretty sure a number of sites that use meters can be cited too, but where would that lead us aside from people disagreeing on which ones are more "serious"? I don't have personal knowledge being a foot-happy American, and I have no interest in sifting through all these links. I think we are all clear on where you stand. I'd suggest seeing if there are other supporters besides yourself, perhaps get a centralized discussion (or RfC), as opposed to the current parallel discussions on multiple talk pages. I think we can avoid ] and wait for ]. I'd also suggest that everyone ponder if we can have various sports/countries decide if cm/m make more sense for a specific area (e.g. Australia, et al), or does it have to be all m or all cm for all WP articles.—] (]) 22:15, 17 January 2014 (UTC)
:@GiantSnowman: Mostly on spot, except I don't have a preference for m or cm. Was only suggesting how to proceed.—] (]) 22:15, 17 January 2014 (UTC)
:::Agreed. Just as date formatting falls undder ], so should this.--] (]) 22:22, 17 January 2014 (UTC)

My Canadian drivers license shows my height in cm. The two most recent ] winners (top players in the world): Cristiano Ronaldo's height at his team's site: 186.5cm Lionel Messi height at his team's site: 169cm . So why does this template not allow the height to be displayed in cm? I fully understand that we can use {{tl|convert}}, but that requires more parameters and it would be better to standardize on this template. ] (]) 08:13, 18 January 2014 (UTC)
::My guess is that when it was created it was intended for other structures such as buildings. Humans were unfortunately neglected. the truly mind-boggling thing is that it's gone this long without being fixed.--] (]) 08:24, 18 January 2014 (UTC)
: As for databases that may list an athlete's in metres rather than centimetres, I would like to know what nationality are the individuals that maintain the data? I suspect that they're not from nations who have used SI. My two examples above show that Spanish clubs clearly use cm for height and not m. Shall we survey all national leagues? ] (]) 08:17, 18 January 2014 (UTC)
:: <s>Canadian Football League .</s>—] (]) 09:34, 18 January 2014 (UTC)
:::It does? Sorry, maybe I'm being dopey here but I can't see them.--] (]) 09:36, 18 January 2014 (UTC)
::::Edit conflict before I could retract. Decimal point use in ft-in threw me off :-) —] (]) 09:39, 18 January 2014 (UTC)
:::::No worries. Certainly we've established that the odd source can be found that does use metres, but it seems they are well and truly crushed under the weight of the multitude of top-quality sources that use centimetres. So this really is just a wait for an admin who can come along and put a cm parameter in place. If a biographical article takes its height from a source that uses metres, and no better quality source can be found, then that is how it should be displayed and this template already allows for that.--] (]) 09:46, 18 January 2014 (UTC)

Latest revision as of 08:37, 29 June 2024

This is the talk page for discussing improvements to the Height template.
Archives: Index, 1, 2, 3Auto-archiving period: 3 months 
This template does not require a rating on Misplaced Pages's content assessment scale.
It is of interest to the following WikiProjects:
WikiProject iconMeasurement (defunct)
WikiProject iconThis template is within the scope of WikiProject Measurement, a project which is currently considered to be defunct.MeasurementWikipedia:WikiProject MeasurementTemplate:WikiProject MeasurementMeasurement
WikiProject iconBiography
WikiProject iconThis template is within the scope of WikiProject Biography, a collaborative effort to create, develop and organize Misplaced Pages's articles about people. All interested editors are invited to join the project and contribute to the discussion. For instructions on how to use this banner, please refer to the documentation.BiographyWikipedia:WikiProject BiographyTemplate:WikiProject Biographybiography
WikiProject iconSports
WikiProject iconThis template is within the scope of WikiProject Sports, a collaborative effort to improve the coverage of sport-related topics on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.SportsWikipedia:WikiProject SportsTemplate:WikiProject Sportssports
To-do list:

Here are some tasks awaiting attention:
Archiving icon
Archives (index)

Index 1, 2, 3



This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present.

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

Add "sort" ability to template

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+1⁄2 in)
  • {{convert|6|ft|3+1/2|in|cm|0|abbr=on}} → 6 ft 3+1⁄2 in (192 cm)
  • {{convert|192|cm|ftin|abbr=on|frac=2|order=flip}} → 6 ft 3+1⁄2 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+1⁄2 in)
Johnuniq (talk) 00:06, 23 December 2015 (UTC)

Output in cm?

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...--45.72.141.216 (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)

Talk:List of average human height worldwide

I'd asked this years ago on the Talk:List of average human height worldwide, but I tend to recall the template being able to do conversions down to the quarter-inch, and I'd really like that to happen again on the Talk:List of average human height worldwide. Is this possible? --Criticalthinker (talk) 11:36, 8 February 2018 (UTC)

Talk:List of average human height worldwide#Conversion has an example in the reply:
  • {{height|cm=177|frac=16}} → 177 cm (5 ft 9+11⁄16 in)
It might be better to use {{convert}} directly as that is understood by many editors and is used to do the work by {{height}}. If wanted, {{cvt}} (which is convert with abbr=on) examples would be:
  • {{cvt|177|cm|in|frac=4}} → 177 cm (69+3⁄4 in)
  • {{cvt|177|cm|ftin|frac=4}} → 177 cm (5 ft 9+3⁄4 in)
Johnuniq (talk) 22:05, 8 February 2018 (UTC)
I'd have no idea how to do this on that page. More than that, is this something I'd have to ask to do? I would like someone with the know-how to do this. --Criticalthinker (talk) 00:34, 9 February 2018 (UTC)
I don't understand that. If you are editing an article and want to use {{height}} and want it to display a fraction, use |frac=4 (or |frac=2 or other number) as shown above. If you want to change the default behavior of this template, please spell out what you want. Johnuniq (talk) 03:09, 12 February 2018 (UTC)

Error handling

I noticed today that Height has not been displayed in the infobox for Geva Mentor for 5 months due to this edit which introduced {{height|1.90m}}. This is an obvious error in template usage, but the editor did not notice that nothing was displayed in the infobox and there was no warning. Not sure if there are many more of these out there. Can this generate an error or be flagged in a maint category or something? MB 14:12, 26 September 2018 (UTC)

I added Category:Pages using height with unknown parameters, which will take some time to fill up. we can remove this tracking if for some reason it's too much overhead. Frietjes (talk) 19:19, 26 September 2018 (UTC)
Categories: