Topic on Project:Current issues

Jump to navigation Jump to search

MediaWikiHook template: Have categories auto-generated base on version it was introduced/deprecated/removed

SamanthaNguyen (talkcontribs)

Similar to Template:SettingSummary, there are categories that are auto-generated for when the configuration setting was introduced, deprecated, and removed. They follow the syntax:

  • [[Category:MediaWiki configuration settings introduced in version 1.xx.x]]
  • [[Category:MediaWiki configuration settings deprecated in version 1.xx.x]]
  • [[Category:MediaWiki configuration settings removed in version 1.xx.x]]

We have Category:Removed hooks currently, but it only serves as a top-level category. It's not specific enough if you're a MediaWiki developer trying to follow what's happening with each version.

It would make sense to have these categories auto-generated for Template:MediaWikiHook as well. Does anyone agree? I'm willing to add it to the template if others are fine with this. For hooks, they'd follow similarly:

  • [[Category:MediaWiki hooks introduced in version 1.xx.x]]
    • There's already categories for this except it follows as [[:Category:Hooks added in MediaWiki 1.xx.x]], might/might not be worth renaming them for consistency.‎
  • [[Category:MediaWiki hooks deprecated in version 1.xx.x]]
  • [[Category:MediaWiki hooks removed in version 1.xx.x]]
Jdforrester (WMF) (talkcontribs)

Seems sensible. I think "Hooks {added} in MediaWiki …" makes slightly more sense.

SamanthaNguyen (talkcontribs)
Jdforrester (WMF) (talkcontribs)

Note that the deprecation content and category only show if it's not been removed; should we change this?

SamanthaNguyen (talkcontribs)