Creates a new contribution survey row from MediaWiki parser output.
The case page of this row
The wikitext of the row
The case page of this row.
Optional
commentEditor comments for this row (including signature)
Extra page information. e.g. "(1 edit, 1 major, +173)"
Readonly
originalThe original status of this row (if it had a prior status).
The status of this row.
Optional
statusDetermines if the status indicator (as tested by the regular expressions at ContributionSurveyRow.commentMatchRegex) is isolated (at the start or end of the comment). This will enable removal of the status indicator from the comment in the comment text input box.
The title of the page that this row is attached to.
detailed
refers to a row with both page and revision information.pageonly
refers to a row with only a page and no revision information.The original wikitext of the row.
Static
Readonly
commentA set of regular expressions that will match a specific contribution survey row comment. Used to determine the status of the comment.
Static
Readonly
ParserThis variable returns true when (a) the row has a non-unfinished status, and (b) there are no outstanding diffs in this row
See description.
Get the ContributionSurveyRowRevisions of this row.
Static
getGets the sorter function which will sort a set of diffs based on a given sort order. This sorts any array containing revisions.
Optional
mode: "array"The sort mode to use.
Gets the sorter function which will sort a set of diffs based on a given sort order. This sorts any entry array using the first element (the key).
Optional
mode: "key"The sort mode to use.
Gets the sorter function which will sort a set of diffs based on a given sort order. This sorts any entry array using the second element (the value).
Optional
mode: "value"The sort mode to use.
Static
guessGuesses the sort order for a given set of revisions.
The diffs to guess from.
The sort order
Static
identifyIdentifies a row's current status based on the comment's contents.
The comment to process
The status of the row
Represents a contribution survey row. This is an abstraction of the row that can be seen on contribution survey pages, which acts as an intermediate between raw wikitext and actual HTML content.