Category talk:Lumatone mappings: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Sorting order: How to do this elsewhere, if needed?
Fredg999 (talk | contribs)
 
Line 6: Line 6:


:: Thanks.  For the future, how did you fix this?  I don't see any difference in the page source.  [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 21:07, 6 August 2025 (UTC)
:: Thanks.  For the future, how did you fix this?  I don't see any difference in the page source.  [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 21:07, 6 August 2025 (UTC)
::: I created [[Module:ET sort key]]. I used it to edit [[Template:Navbox Lumatone]], which adds the corresponding categories to the page in addition to displaying the navbox itself (it's just more convenient that way). This module will count the number of digits in the EDO's size and output the needed sort key to make the numerical sorting work. It should be usable in other templates as well. Some other templates already had a similar feature built into their own modules, but it wasn't really possible to re-use that code, so that's why I made a separate module instead. --[[User:Fredg999|Fredg999]] ([[User talk:Fredg999|talk]]) 00:57, 7 August 2025 (UTC)

Latest revision as of 00:57, 7 August 2025

Sorting order

Any way to fix the sort order so that the EDO numbers sort properly? It's kind of annoying when 9edo is after 90edo through 99edo, etc. Lucius Chiaraviglio (talk) 09:12, 6 August 2025 (UTC)

Done. --Fredg999 (talk) 15:52, 6 August 2025 (UTC)
Thanks. For the future, how did you fix this? I don't see any difference in the page source. Lucius Chiaraviglio (talk) 21:07, 6 August 2025 (UTC)
I created Module:ET sort key. I used it to edit Template:Navbox Lumatone, which adds the corresponding categories to the page in addition to displaying the navbox itself (it's just more convenient that way). This module will count the number of digits in the EDO's size and output the needed sort key to make the numerical sorting work. It should be usable in other templates as well. Some other templates already had a similar feature built into their own modules, but it wasn't really possible to re-use that code, so that's why I made a separate module instead. --Fredg999 (talk) 00:57, 7 August 2025 (UTC)