Page MenuHomePhabricator

Interface pages can't categorise the pages they are included in
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The page is not included in Category:Module documentation pages

What should have happened instead?:
Since Template:Documentation subpage is transcluded to the page, its categorisation should also work. The page should be added to Category:Module documentation pages.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
See https://en.wikipedia.org/wiki/MediaWiki_talk:Scribunto-doc-page-header#Category:Module_documentation_pages for a discussion about the issue on enwiki.

Event Timeline

A problem my suggestion has in its current state is that MediaWiki:Scribunto-doc-page-header also appears in doc pages that don't exist. My proposal as suggested would add every possible title to the category, which would be pretty bad. For this reason I propose that the categorisation kicks in only when the page exists.

The interface message is included in the user language, so it cannot be used for categorization.

https://en.wikipedia.org/wiki/Module:Yesno/doc?uselang=en shows the box
https://en.wikipedia.org/wiki/Module:Yesno/doc?uselang=de shows the default text without box

In this case, how the message is used in the php code, also js/css cannot be loaded when it is included in wikitext like templatestyles.