Template talk:Hidden sort key
Page contents not supported in other languages.
This template used to be an redirect to {{Hearts}} but such use has been deprecated and it has been repurposed.— Preceding unsigned comment added by Yecril (talk • contribs) 18:20, 8 September 2008 (UTC)[reply]
Shorter words should, in an alphabetical listing, precede words that begin with the letters that comprise them. Boa should be listed before Boat. This template fails to acheive that. Kevin McE (talk) 11:02, 12 May 2012 (UTC)[reply]
{{Hs|Boa}}Boa constrictor
and {{Hs|Boat}}Boat
, I assume the sort will be performed on BoaBoa constrictor
and on BoatBoat
. Have you tried to add a trailing blank to {{Hs|Boa }}
? A cleaner method would be to use the dedicated sort field data-sort-value
, but apparently that doesn't work; see Help talk:Sorting#Attribute data-sort-value. -- Michael Bednarek (talk) 03:20, 13 May 2012 (UTC)[reply]Shouldn't {{sms}} be merged here? It seems to be doing exactly the same thing. --Waldir talk 19:48, 6 February 2013 (UTC)[reply]
I added the proposal at WP:TFD to gather more opinions. --Waldir talk 15:01, 13 February 2013 (UTC)[reply]
Regarding this edit which claims that this template is now deprecated: Where was this discussed? Ad rem: I know that |data-sort-value=
has been available for some time, but it's seriouly inconvient (and cluttering the source text). Compare
|data-sort-value="Doe, John"|[[John Doe|Doe, John]]
with|{{hs|Doe, John}}[[John Doe|Doe, John]]
or even with|{{sn|John|Doe}}
Use of these templates is wide-spread and I can't see why a much more labour intensive method should be compulsory. The same notice has been placed on {{hid}}, {{sort}}, and {{sortname}} as well; the same argument again deprecating applies there. -- Michael Bednarek (talk) 13:17, 9 June 2015 (UTC)[reply]
data-sort-value
; it would be better to create a new series of sort-key templates if verbosity is a concern. Alakzi (talk) 10:44, 10 June 2015 (UTC)[reply]|data-sort-value=
method is a valuable improvement, and I have used it occasionally, but "deprecated" implies that these templates are going to be phased out, or at least that they should no longer be used. I would like to see where this has been discussed. If it hasn't, the tone of the notice should be turned down to offer advice about alternative methods of sorting, such as WP:SORT#Sorting with a hidden key. IMO, these templates make improvements of tables much easier and editors should not be discouraged from using them. -- Michael Bednarek (talk) 12:35, 10 June 2015 (UTC)[reply]date
in particular. In fact, for the documentation example, you don't even need to use a sort value or a sort key anymore; try it below. Alakzi (talk) 13:41, 10 June 2015 (UTC)[reply]With {{Hs}} | Without | ||||||||
---|---|---|---|---|---|---|---|---|---|
|
|
Disagree with the deprecation Aside from being undiscussed, {{Hidden sort key}} makes a lot easier to create templates that automatically provide the correct keys. Migrating to the new model would require embedding the
<td>
tag withing such templates, which would be an undesirable design feature --Usien6 msg • his 15:34, 1 December 2015 (UTC)[reply]
<td>
tag withing such templates. Some templates in Category:Unified table cell templates (see Template:Table cell templates for an overview of the templates) already use this new sorting model with wikitable syntax. An example is the deprecation comment on Template:Sort dash suggesting Template:Sdash as a replacement. There was a discussion about this a while back here: Template talk:N/a § Adding a hidden sort parameter. 50.53.21.2 (talk) 15:18, 4 February 2018 (UTC)[reply]With {{Hs}} | With data-sort-value | ||||||||
---|---|---|---|---|---|---|---|---|---|
|
|