Template talk:Sort

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
See also: Help talk:Sorting.

Interlanguage link in sortname[edit]

It's easy to use {{ill}} to turn

[[Seán Ó Cuirreáin]]

into

{{ill|Seán Ó Cuirreáin|ga}}

But for the equivalent {{sortname}}

{{sortname|Seán|Ó Cuirreáin||Ocuirreain}}

I had to hack it to

<span data-sort-value="Ocuirreain">{{ill|Seán Ó Cuirreáin|ga}}</span>

It should be simple to add optional parameter ill thus:

{{sortname|Seán|Ó Cuirreáin||Ocuirreain|ill=ga}}

jnestorius(talk) 15:39, 14 October 2023 (UTC)[reply]

There are a dozen other functionalities that are rarely used that can also be merged into the template. But that will just create more problems. This template in its basis isn't really needed, nor is ill. They are just a shorthand for very common situations.
As a matter of fact, the ill template itself shows why combining too many functionalities makes things harder to work with. Because there is always even more functionality that is missing too be added, some of which might be incompatible with what was defined before.
I suggest to just use template sort, or the data-sort-value attribute directly as you showed. That is a simple and fine solution. Alternatively, create a new meta template, that combines the effects of the two templates. Then at least each template keeps having a well defined purpose. —TheDJ (talkcontribs) 17:31, 14 October 2023 (UTC)[reply]