Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XfdMode

Hierarchy

  • XfdMode

Index

Constructors

constructor

Properties

Window

Window: simpleWindow

discussionPagePrefix

discussionPagePrefix: string

Used in determineDiscussionPage(), applicable only if in the XfD process, each page is discussed on a separate page (like AfD and MfD). Otherwise this can be skipped.

fieldset

fieldset: element

params

params: Record<string, any>

result

result: HTMLFormElement

tm

tm: taskManager

Static venueCode

venueCode: string

Static venueLabel

venueLabel: string

Methods

addToLog

  • addToLog(): Deferred<any, any, any>
  • Log the XFD nomination to the userspace log. Should be called after notifyTalkPage() which may unset this.params.initialContrib

    Returns Deferred<any, any, any>

appendReasonArea

  • appendReasonArea(): void

autoEditRequest

  • autoEditRequest(pageobj: Page): PromiseBase<any, any, any, any, any, any, any, any, any, any, any, any>
  • Post an edit request to the talk page if the page could not be tagged with a deletion tag (usually because the page is protected)

    Parameters

    Returns PromiseBase<any, any, any, any, any, any, any, any, any, any, any, any>

determineDiscussionPage

  • determineDiscussionPage(): PromiseBase<void, never, never, never, never, never, never, never, never, never, never, never>
  • Only applicable for XFD processes that use separate discussion pages for every page. This is English-language specific (XXX)

    Returns PromiseBase<void, never, never, never, never, never, never, never, never, never, never, never>

evaluate

  • evaluate(): void

fetchCreatorInfo

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

generateFieldset

  • generateFieldset(): element

Abstract getDiscussionWikitext

  • getDiscussionWikitext(): string

Abstract getFieldsetLabel

  • getFieldsetLabel(): any
  • Used as the label for the fieldset in the UI, and in the default notification edit summary

    Returns any

getMenuTooltip

  • getMenuTooltip(): string

getNotifyEditSummary

  • getNotifyEditSummary(): string

getNotifyText

  • getNotifyText(): string

getUserspaceLoggingEditSummary

  • getUserspaceLoggingEditSummary(): string

getUserspaceLoggingExtraInfo

  • getUserspaceLoggingExtraInfo(): string

getUserspaceLoggingText

  • getUserspaceLoggingText(): string

getUserspaceLoggingText1

  • getUserspaceLoggingText1(): string

getVenueWarning

  • getVenueWarning(): string | void
  • Return any warnings about the choice of the selected venue (e.g. using Articles for Deletion for requesting deletion of template). This is displayed in red.

    Returns string | void

notifyCreator

  • notifyCreator(): Promise<void, any, any>

notifyTalkPage

  • notifyTalkPage(notifyTarget: string, statusElement?: status): Promise<void, any, any>
  • Parameters

    • notifyTarget: string
    • Optional statusElement: status

    Returns Promise<void, any, any>

postRender

  • postRender(renderedFieldset: HTMLFieldSetElement): void
  • Actions performed after the form is rendered.

    Parameters

    • renderedFieldset: HTMLFieldSetElement

    Returns void

preprocessParams

  • preprocessParams(): void

preview

  • preview(form: HTMLFormElement): void

printReasonText

  • printReasonText(): void
  • Print reason text if we fail to post the reason to the designated place on the wiki, so that the user can reuse the text. Should be invoked as a onFailure method in Morebits.taskManager. This function shouldn't need to be overridden.

    Returns void

redirectToDiscussion

  • redirectToDiscussion(): void
  • Callback to redirect to the discussion page when everything is done. Relies on the discussion page being known as either this.params.discussionpage or this.params.logpage.

    Returns void

showPreview

  • showPreview(form: HTMLFormElement): void

validateInput

  • validateInput(): boolean
  • Hook for form validation. If this returns false, form submission is aborted

    Returns boolean

Static isDefaultChoice

  • isDefaultChoice(): boolean

Generated using TypeDoc