The document to use as a reference.
A timestamp of when this case page was last worked on.
The sections last worked on for this case page.
The n-cache stores the n
of contribution survey headings. In other
words, it differentiates survey headings by giving it a number if
another section on the page has a matching heading. The n-cache
only contains the n of contribution survey headings, but counts all
HTML headings as part of the n-cache.
The page ID of the case page.
Whether this page is a Parsoid HTML5 with RDFa markup page or not.
Title of this page.
The wikitext handler of the page.
Find a contribution survey heading by section name.
The section identifier to look for, usually the section
name unless useId
is set to true.
Whether to use the section name instead of the ID
The <h*> element of the heading.
Finds all contribution survey headings. These are <h*> elements with the content matching the pattern "Pages \d+ to \d+"
The <h*> element of the heading.
Finds the first contribution survey heading. This is always an <h*> element with the content matching the pattern "Pages \d+ to \d+"
The <h*> element of the heading.
Gets all elements that are part of a contribution survey "section", that is a set of elements including the section heading and all elements succeeding the heading until (and exclusive of) the heading of the next section.
In other words, YES: === Pages 1 to 2 === YES: * [[Page 1]] YES: * [[Page 2]] YES: NO : === Pages 3 to 4 ===
The section heading to work with
An array of all HTMLElements covered by the section
Checks if a given element is a valid contribution survey heading.
The element to check for
true
if the given heading is a valid contribution survey heading.
Static
buildOptional
pageId: numberThe page ID of the case page.
Optional
title: TitleThe title of the page being accessed
Optional
document: DocumentThe document to be used as a reference.
Optional
parsoid: booleanWhether this is a Parsoid document or not.
Static
Optional
getGets the case name by parsing the title.
Optional
title: TitleLikeThe title of the case page
The case name, or null
if the title was not a valid case page
Static
isChecks if the current page (or a supplied page) is a case page (subpage of the root page).
Optional
title: TitleLikeThe title of the page to check.
true
if the page is a case page.
Handles Deputy case pages, controls UI features, among other things. This class should be able to operate both on the standard MediaWiki parser output and the Parsoid output.