Just to test Lua/Scribunto power we are testing https://wikisource.org/wiki/Module:Nap. Its name comes from the language code for Neapolitan, a fastly growing sub-project into mul.source. There are two core ideas inside:
- the Lua code gets the whole wikitext of the hosting page;
- then it parses the text, searching for key data into standard templates/standard code fragments.
We are testing it into nsIndex and nsPage, with exciting results for self-categorization of contents; by now, MediaWiki:Proofreadpage index template is parsed into nsIndex, and hidden header code is parsed into nsPage. Obviously Nap gets the namespace too, and behaves differently into different namespaces. No parameter is needed.
Are we simply rediscovering the wheel?