Help:Gadget-mark-proofread

From Wikisource
Jump to navigation Jump to search

The "mark proofread" Gadget highlights pages in an Index:'s pagelist that you can progress the page status of. Pages that currently have the status "Proofread" but which the current user was not the last to edit are highlighted with a red border indicating that you can progress them to "Validated". Since there are no restrictions on changing page status from "Without text", "Not proofread", and "Problematic" these pages are not highlighted. Ditto for pages with status "Validated" since there are no further page statuses.

Technical details

[edit]

The Gadget code lives in MediaWiki:Gadget-mark-proofread.js and depends on a stylesheet at MediaWiki:Gadget-mark-proofread.css which defines the styling for the highlighted pages. It works by querying the Action API for the latest revision of every page that has status "Proofread" and matching the current user against the user tagged as having set the page status, adding a class on every page link where the two are not the same.