Page MenuHomePhabricator

Transcludable special pages should offer wikitext when transcluded
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):
When transcluding a page in the Special namespace, I want to be able to have access to the actual code transcluded. I know it's not in wikitext, but as for an enduser, it doesn't matter to me – I want to be able to get the output as wikitext and then process it. Maybe some additional parameters could be introduced, like wikitext=1 or plain=1. E.g.:

{{#tag: pre | {{Special:ListUsers/sysop|wikitext=1}} }}

⬇️

<pre>
* [[User:Example1|Example1]]
* [[User:Example2|Example2]]
...
</pre>

Use cases (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

  • Each time a major flag is granted or revoked on every project, people manually update the user list on all relevant Project namespace pages and templates. All this should be updated automatically from a single source of truth. Just think of the amount of effort that will be saved!
  • Currently there is a page https://en.wikipedia.org/wiki/Project:GUS2Wiki that is updated by a bot that just copypastes the contents of https://en.wikipedia.org/wiki/Special:GadgetUsage. Its content are then used to display the number of the gadget's users in gadget headers like this:
    image.png (54×1 px, 8 KB)
    Updating a page by bot gives an added benefit of keeping a history of gadget usage. But you can solve the task of showing the number of gadget users without running such a bot.

See also