Help:Extension:ProofreadPage/Pagelist widget

ProofreadPage has a user-friendly widget for editing pagelists, that is used within the Index editing form. It is not available by default, but can be enabled by wiki administrators with a small change to MediaWiki:Proofreadpage_index_data_config.

To use the widget, first open an Index page for editing. Under the 'Pages' field there is a 'Preview pagelist' button along with a checkbox with which to enable the visual mode (explained below).

Click the preview button, and the grid of the pagelist is loaded below. To enter the widget (in either mode), click one of the page numbers. This will open a full-sized dialog window. Note that you should not click the back button to close the dialog, but rather use either the 'X' (close) or 'Insert Changes' buttons.

There are five parts to the dialog window:


 * 1) Top bar: close/cancel button; Index page title; and submit button.
 * 2) Top of left pane: details of the currently-selected page.
 * 3) Bottom of the left pane: The current page's scan image.
 * 4) Top of the right pane: the data entry form (either a wikitext text field, or a set of fields when in the visual mode).
 * 5) Bottom of the right pane: The pagelist preview, showing the currently-configured numbering that will be inserted back into the Index form when the dialog is closed.

Visual mode
T.B.C.

Wikitext mode
T.B.C.

Configuration (for wiki admins)
To enable the pagelist widget, two changes are required to on-wiki configuration.

Firstly, "data": "pagelist" should be added to the relevant field of MediaWiki:Proofreadpage_index_data_config. For example:

"Pages": { "type": "string/line", "size": 15, "default": "\u003Cpagelist /\u003E", "label": "Pages", "header": false, "help": "", "data": "pagelist" },

And secondly, the list of page labels should be defined in MediaWiki:Proofreadpage_pagelist_dropdown_values.json. For example:

[  {        "label": "highroman", "data": "highroman" },   {        "label": "roman", "data": "roman" },   {        "label": "number", "data": "Number" },   {        "label": "Cover of the page", "data": "Cover" },   {        "label": "- (empty)", "data": "-" },   {        "label": "ToC", "data": "ToC" },   {        "label": "image", "data": "img" } ]