Interface RawContributionSurveyRow

Hierarchy

  • RawContributionSurveyRow

Properties

bullet: string

The bullet and all trailing whitespace. This matches the starting bullet (an asterisk) and the trailing whitespace. The whitespace is also included to avoid modifying rows that don't follow the format, as this needlessly modifies the rows.

Example

`"* "`
comments?: string

The comments attached to the diff. This includes the comment in its entirety and the signature of the user. Leading space is not included.

Example

`"{{x}} [[User:Foo|Foo]] ([[User talk:Foo|talk]]) 00:00, 1 January 2000 (UTC)"`
creation?: boolean

true if one of the diffs include creation. This appends a '''N''' at the start of the row text when built. The space is not removable (as it would cause issues with the link display to begin with).

diffTemplate: string

Template to use for rebuilding row revisions.

$1 - Revision ID $2 - Diff size

diffs?: string

A string containing all diff links in the row. This includes all opening and closing link brackets.

Example

`"[[Special:Diff/12345|(+420)]][[Special:Diff/12346|(+69)]]"`
diffsTemplate?: string

Template to use for rebuilding the entirety of the diffs section.

$1 - Diff links

Default

"$1"
extras?: string

Extra information attached to the diff. This usually comes before or after the colon, depending on the year the case was opened, including the actual colon. In practice, this string contains any text between the page title and the diffs.

Example

`": (1 edits, 1 major, +10929)"`, `"(3 edits):"`
page: string

The page that the row refers to. This does not include the wikilink brackets. Page names include everything inside the brackets, meaning any leading colons from interwiki links or category/file links (e.g. [[:Category:Foo]]) are also included. The main ContributionSurveyRow class should be able to handle those page names.

Example

`"List of characters in the Breaking Bad franchise"`
revidText: Record<number, string>

A map of all revision IDs to their apparent size. This is the diff size provided in wikitext.

revids: number[]

An array of all revision IDs parsed from the diffs.

type: "detailed" | "pageonly"

Generated using TypeDoc