Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SpeedyCore

Hierarchy

Index

Constructors

constructor

Properties

Abstract criteriaLists

criteriaLists: { label: string; list: criterion[]; visible: (self: SpeedyCore) => boolean }[]

dialog

dialog: Dialog

flatObject

flatObject: Record<string, criterion>

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

form

form: quickForm

hasCSD

hasCSD: boolean

isRedirect

isRedirect: boolean

mode

mode: { isMultiple: boolean; isRadioClick: boolean; isSysop: boolean }

Type declaration

  • isMultiple: boolean
  • isRadioClick: boolean
  • isSysop: boolean

moduleName

moduleName: string

namespace

namespace: number

params

params: Record<string, any>

portletId

portletId: string = 'twinkle-csd'

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

portletName

portletName: string = 'CSD'

Name displayed on the portlet

portletTooltip

portletTooltip: string = ...

Tooltip shown when hovering on the portlet

result

result: HTMLFormElement

windowTitle

windowTitle: string = 'Choose criteria for speedy deletion'

Static moduleName

moduleName: string = 'CSD'

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

Methods

addMenu

  • addMenu(): void

addPreference

  • addPreference(pref: any): void

addToLog

  • addToLog(): Deferred<any, any, any>

appendCriteriaLists

  • appendCriteriaLists(work_area: element): void

checkPage

  • checkPage(): PromiseBase<any, any, any, any, any, any, any, any, any, any, any, any>

deletePage

  • deletePage(): Deferred<any, any, any> | PromiseBase<void, never, never, never, never, never, never, never, never, never, never, never>
  • Returns Deferred<any, any, any> | PromiseBase<void, never, never, never, never, never, never, never, never, never, never, never>

deleteRedirects

  • deleteRedirects(): Deferred<any, any, any>

deleteTalk

  • deleteTalk(): Deferred<any, any, any> | PromiseBase<void, never, never, never, never, never, never, never, never, never, never, never>
  • Returns Deferred<any, any, any> | PromiseBase<void, never, never, never, never, never, never, never, never, never, never, never>

evaluate

  • evaluate(e: QuickFormEvent | FormSubmitEvent): void

fetchCreatorInfo

  • fetchCreatorInfo(): Deferred<any, any, any> | PromiseBase<void, never, never, never, never, never, never, never, never, never, never, never>
  • Returns Deferred<any, any, any> | PromiseBase<void, never, never, never, never, never, never, never, never, never, never, never>

generateCsdList

getMode

  • getMode(): { isMultiple: any; isRadioClick: boolean; isSysop: boolean }
  • Returns { isMultiple: any; isRadioClick: boolean; isSysop: boolean }

    • isMultiple: any
    • isRadioClick: boolean
    • isSysop: boolean

getTaggingCode

  • getTaggingCode(): string

getTemplateParameters

  • getTemplateParameters(): void
  • Creates this.params.templateParams, an array of objects each object representing the template parameters for a criterion.

    Returns void

getUserNotificationText

  • getUserNotificationText(): string

getUserTalkParameters

  • getUserTalkParameters(): void

insertTagText

  • insertTagText(code: any, pageText: any): string
  • Insert tag text on to the page. If they need to go at a location other than the very top of the page, override this function.

    Parameters

    • code: any
    • pageText: any

    Returns string

makeFlatObject

  • makeFlatObject(): void

makeWindow

  • makeWindow(): void

modeChanged

  • modeChanged(form: HTMLFormElement): void

noteToCreator

  • noteToCreator(): Promise<api, any, any> | Deferred<any, any, any>

parseDeletionReason

  • parseDeletionReason(): Deferred<any, any, any> | PromiseBase<void, never, never, never, never, never, never, never, never, never, never, never>
  • Returns Deferred<any, any, any> | PromiseBase<void, never, never, never, never, never, never, never, never, never, never, never>

parseWikitext

  • parseWikitext(wikitext: any): Promise<string, any, any>

patrolPage

  • patrolPage(): Deferred<any, any, any>

preprocessParamInputs

  • preprocessParamInputs(): void

preprocessParams

  • preprocessParams(): void

priorDeletionCount

  • priorDeletionCount(): void

tagPage

  • tagPage(pageobj: Page): Promise<api, any, any> | Deferred<any, any, any>

userPreferences

  • userPreferences(): { preferences: Preference[]; title: string }

validateInputs

  • validateInputs(): string | void
  • If validation fails, returns a string to be shown to user via alert(), if validation succeeds, doesn't return anything.

    Returns string | void

Static userPreferences

Generated using TypeDoc