Page MenuHomePhabricator

Add code to display information on page sections to the "&action=info" view
Open, Needs TriagePublic

Description

en.Wikipedia now has a template [1]/ Lua module [2] to display information on the size and structure of sub-sections of a page.

It can be seen in use, for example, on the talk page [3] of the article "1945 Birthday Honours" [4] (use the template's "show" link, to see the results).

The code (or logic) from the module could usefully be repurposed to include the results in the "&action=info" view of pages (in the above example, [5]).

[1] https://en.wikipedia.org/wiki/Template:Section_sizes

[2] https://en.wikipedia.org/wiki/Module:Section_size

[3] https://en.wikipedia.org/wiki/Talk:1945_Birthday_Honours

[4] https://en.wikipedia.org/wiki/1945_Birthday_Honours

[5] https://en.wikipedia.org/w/index.php?title=1945_Birthday_Honours&action=info

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 16 2019, 11:32 AM
Anomie added a subscriber: Anomie.

This has nothing to do with Scribunto besides that someone wants functionality they put in an on-wiki module to be added to InfoAction.

If someone wanted to try to do something like this for InfoAction, they might do better to use the data from ParserOutput->getSections() rather than trying to parse wikitext.