Community Wishlist Survey 2022/Categories/Allow custom display of entries in a category's page list

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Random proposal◄ Categories  The survey has concluded. Here are the results!

Allow custom display of entries in a category's page list

  • Problem:
    • Categories are very important for Wiktionary. We use them to group words by language, part of speech, register, topics, rhymes and many other groupings, as well as for maintenance purposes.
    • However, the category listings are very bare-bones. In particular, in language-specific categories, we would like the entries to be formatted correctly according to our rules for that language.
    • For instance, when you visit a category of Greek words (such as - an example at English Wiktionary - wikt:Category:Greek nouns), the user should see Latin-script transliterations next to the Greek script, just as they do anywhere a Greek word is mentioned in an entry, thanks to our use of templates. We already have Lua modules to do this work within the entries themselves - we just need a way to allow these modules to be run against the page list on a category page.
  • Proposed solution: Develop some kind of magic word that is placed in the category wikitext. This magic word tells MediaWiki that, every time a user views the category, each page title to be displayed should be passed into a Lua module, which then transforms the title for display.
  • Who would benefit: Wiktionary readers and editors
  • More comments:
  • Phabricator tickets:
  • Proposer: This, that and the other (talk) 12:47, 18 January 2022 (UTC)Reply[reply]


  • @SGrabarczuk (WMF): Can I list this in both the Categories and Wiktionary sections? This, that and the other (talk) 12:48, 18 January 2022 (UTC)Reply[reply]
    @This, that and the other, for the bot to be working, the proposal has to be in one category only. SGrabarczuk (WMF) (talk) 00:20, 19 January 2022 (UTC)Reply[reply]
    @SGrabarczuk (WMF) thanks. I'll leave it to your team's discretion as to which section this goes in. This, that and the other (talk) 01:05, 19 January 2022 (UTC)Reply[reply]
  • @This, that and the other: The CommTech team has reviewed this proposal. It was decided that in order to have a satisfactory solution to this problem we would need Structured Data for Wiktionary, which is likely to be years in the future. Nevertheless, it is a valid idea so I am moving it to the Larger Suggestions Category. Thanks for taking part in the survey. DWalden (WMF) (talk) 13:41, 25 January 2022 (UTC)Reply[reply]
    @DWalden (WMF) I think you are entirely misunderstanding the proposal. It doesn't ask for, nor does it require, any kind of structured data; it is a proposal to improve the way pages are listed on category pages, using the templates and modules already in use on Wiktionary (or, for that matter, any other wiki). I'm wondering how I can make the proposal clearer - would it fit better in the Categories section? This, that and the other (talk) 13:48, 25 January 2022 (UTC)Reply[reply]
    We read from the standpoint of Wiktionary, hence the conclusion. I'll be bold and move this to the Categories section as suggested, since the use-case could extend well beyond Wiktionary. I do worry this feature could be misused, though (even unintentionally). You could also end up with an odd sorting since the backend is going to go by the category's sort key, though I suppose that could also be passed through the Lua module. MusikAnimal (WMF) (talk) 00:02, 28 January 2022 (UTC)Reply[reply]