Page MenuHomePhabricator

ProofreadPage should show "pagenum" variable somewhere on mw.config
Closed, ResolvedPublic

Description

If a gadget or customized script wants to make use of the page number, as stated on the Index, currentyl it doesn't have a way,
However, it exists some variable {{{pagenum}}} loaded at the start of the editing page, that controls the custom header and footers.

mw.config should be able to access that information, as well

Event Timeline

Change 739852 had a related patch set uploaded (by Inductiveload; author: Inductiveload):

[mediawiki/extensions/ProofreadPage@master] Set all JS vars in view, edit and submit modes

https://gerrit.wikimedia.org/r/739852

Change 739852 merged by jenkins-bot:

[mediawiki/extensions/ProofreadPage@master] Set all JS vars in view, edit and submit modes

https://gerrit.wikimedia.org/r/739852

Inductiveload claimed this task.
Inductiveload added a subscriber: Inductiveload.

This is now working (mw.config.get("prpFormattedPageNumber"))