Template talk:Sort
- See also: Help talk:Sorting.
Template:Sort is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should be proposed here first. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This is the talk page for discussing improvements to the Sort template. |
|
Archives: 1, 2Auto-archiving period: 180 days |
To help centralise discussions and keep related topics together, the talk pages of several other templates redirect here. |
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}}
<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)
- 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 (talk • contribs) 17:31, 14 October 2023 (UTC)