Interface RawContributionSurveyRow

interface RawContributionSurveyRow {
    bullet: string;
    comments?: string;
    creation?: boolean;
    diffTemplate: string;
    diffs?: string;
    diffsTemplate?: string;
    extras?: string;
    page: string;
    revidText: Record<number, string>;
    revids: number[];
    type: "detailed" | "pageonly";
}

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.

`"* "`
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.

`"{{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.

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

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

$1 - Diff links

"$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.

`": (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.

`"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"