Page MenuHomePhabricator

Scribunto output is not shown on the module page
Closed, InvalidPublic

Description

I have tried to recreate the process used by enwiki to mark Lua modules for deletion, in fawiki. Specifically, I have copied https://en.wikipedia.org/wiki/Module:Module_wikitext to https://fa.wikipedia.org/wiki/Module:Module_wikitext and I have used it to add a deletion template to a module page, as described here. This works on enwiki (see https://en.wikipedia.org/wiki/Module:Test_module as an example, where you will see the speedy deletion template is shown at the top of the module page). But it doesn't work on fawiki (see this as an example), nor does it work on test wiki (see https://test.wikipedia.org/wiki/Module:TestModule).

Why is the functionality inconsistent across WMF wikis? How can we get it to work on fawiki and testwiki ans others?

Event Timeline

Pppery closed this task as Invalid.EditedDec 3 2020, 4:37 AM
Pppery subscribed.

The reason this is inconsistent across wikis is that this functionality is provided by local templates. The way this works is that MediaWiki:Scribunto-doc-page-show or MediaWiki:Scribunto-doc-page-does-not-exist call Module:Documentation, which then loads the module in question and checks if Module:Module wikitext was used.

On test.wikipedia.org, MediaWiki:Scribunto-doc-page-does-not-exist didn't exist, so couldn't call Module:Documentation, so no documentation was rendered if the wikitext doc page didn't exist. I've created https://test.wikipedia.org/w/index.php?title=Module:TestModule/doc with no content, and the CSD tag you added to https://test.wikipedia.org/w/index.php?title=Module:TestModule now shows up.

On fa.wikipedia.org, Module:Documentation is out of date and does not know about Module:Module wikitext. I've added the necessary code to https://fa.wikipedia.org/wiki/%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Documentation/%D8%AA%D9%85%D8%B1%DB%8C%D9%86, so this should start work if an administrator copies the content of that page to https://fa.wikipedia.org/wiki/%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Documentation.

Closing as invalid as this is a problem with on-wiki content, not a software bug.