Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BatchDeleteCore

Module used for batch deletion of pages. Works in different ways on three types of pages:

  1. If invoked from category, delete pages from the category
  2. If invoked from a regular page, delete pages linked from the page
  3. If invoked from a Special:PrefixIndex query page, delete pages in the result The user can select which pages to delete in all cases, as well as choose to delete all the talk pages and subpages, and unlink the pages being deleted.

Localisation: Should work without any configuration.

Hierarchy

Index

Constructors

constructor

Properties

callbacks

callbacks: { deleteRedirectsMain: (apiobj: any) => void; deleteTalk: (apiobj: any) => void; doExtras: (thingWithParameters: any) => void; unlinkBacklinks: (pageobj: any) => void; unlinkBacklinksMain: (apiobj: any) => void; unlinkImageInstances: (pageobj: any) => void; unlinkImageInstancesMain: (apiobj: any) => void } = ...

Type declaration

  • deleteRedirectsMain: (apiobj: any) => void
      • (apiobj: any): void
      • Parameters

        • apiobj: any

        Returns void

  • deleteTalk: (apiobj: any) => void
      • (apiobj: any): void
      • Parameters

        • apiobj: any

        Returns void

  • doExtras: (thingWithParameters: any) => void
      • (thingWithParameters: any): void
      • Parameters

        • thingWithParameters: any

        Returns void

  • unlinkBacklinks: (pageobj: any) => void
      • (pageobj: any): void
      • Parameters

        • pageobj: any

        Returns void

  • unlinkBacklinksMain: (apiobj: any) => void
      • (apiobj: any): void
      • Parameters

        • apiobj: any

        Returns void

  • unlinkImageInstances: (pageobj: any) => void
      • (pageobj: any): void
      • Parameters

        • pageobj: any

        Returns void

  • unlinkImageInstancesMain: (apiobj: any) => void
      • (apiobj: any): void
      • Parameters

        • apiobj: any

        Returns void

footerLinks

footerLinks: footerLinks

footerlinks

footerlinks: {}

Set of links shown in the bottom right of the module dialog. Object keys are labels and values are the wiki page names.

Type declaration

  • [label: string]: string

moduleName

moduleName: string = 'batchdelete'

pages

pages: Record<string, any>

portletId

portletId: string = 'twinkle-batchdelete'

Optional ID for the portlet. This defaults to twinkle-${portletName.toLowerCase()} if unspecified

portletName

portletName: string = 'D-batch'

Name displayed on the portlet

portletTooltip

portletTooltip: string = 'Delete pages found in this category/on this page'

Tooltip shown when hovering on the portlet

subpagesLoaded

subpagesLoaded: boolean

unlinkCache

unlinkCache: {} = {}

Type declaration

windowTitle

windowTitle: string = 'Batch deletion'

Static moduleName

moduleName: string = 'batchdelete'

The name of the module, used to check if the user has the module disabled

Methods

addMenu

  • addMenu(): void

addPreference

  • addPreference(pref: any): void

evaluate

  • evaluate(event: any): void

generateNewPageList

  • generateNewPageList(form: any): HTMLElement

getMetadata

  • getMetadata(page: any): string[]

makeWindow

  • makeWindow(): void

toggleSubpages

  • toggleSubpages(e: any): void

Static userPreferences

Generated using TypeDoc