Class CopyrightProblemsPage

A class that represents a Wikipedia:Copyright problems page, a page that lists a collection of accumulated copyright problems found on Wikipedia. Users who are not well-versed in copyright can submit listings there to be reviewed by more- knowledgeable editors.

This page can refer to any Copyright problems page, and not necessarily one that is running on the current tab. For that, CopyrightProblemsSession is used.

Hierarchy (view full)

Constructors

Properties

main: boolean

Whether this is the main page or not

revid: number

The current revision ID of the listing page. Helps in avoiding edit conflicts.

title: Title

The title of the listing page

wikitext: string

Cached wikitext. Based off of the revision ID.

pageCache: Map<string, CopyrightProblemsPage> = ...

Accessors

Methods

  • Generates the batch listing wikitext using wiki configuration values.

    Parameters

    • page: Title[]
    • title: string
    • Optionalcomments: string

    Returns string

    Wikitext

  • Posts a single page listing to this page, or (if on the root page), the page for the current date. Listings are posted in the following format:

    * {{subst:article-cv|Example}} <comment> ~~~~
    

    For posting multiple pages, use postListings.

    Parameters

    • page: Title
    • Optionalcomments: string
    • Optionalpresumptive: boolean

    Returns Promise<void>

  • Posts multiple pages under a collective listing. Used for cases where the same comment can be applied to a set of pages. Listings are posted in the following format:

    ;{{anchor|1=<title>}}<title>
    * {{subst:article-cv|1=Page 1}}
    * {{subst:article-cv|1=Page 2}}
    <comment> ~~~~

    Parameters

    • page: Title[]
    • title: string
    • Optionalcomments: string
    • Optionalpresumptive: boolean

    Returns Promise<void>