In fc745f5dfb483766e12cf4123ef08cc1427d37a4, support was added that allowed PagelistWidget to retrieve all of ProofreadPage's builtin labels using mw.config.get( 'prpPagelistBuiltinLabels' ).
We should use this to build the default configuration returned by PageNumberInputWidget.getNumberTypeConfig() when no configuration file is found.
Documentation
- Tutorial on setting up and working with Gerrit (Gerrit is Wikimedia's code review platform)
- File that needs to be modified: PagelistInputWidget.PageNumberInputWidget.js
- OOUI (the framework used to build PagelistWidget)
- Documentation regarding the configuration file syntax
Criteria
- The default config should contain all the builtin types offered by ProofreadPage dynamically generated using mw.config.get( 'prpPagelistBuiltinLabels' )