Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UnlinkCore

Module for unlinking backlinks of a given page.

Localisation: Should work without any configuration.

Hierarchy

Index

Constructors

constructor

Properties

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 = 'unlink'

portletId

portletId: string = 'twinkle-unlink'

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

portletName

portletName: string = 'Unlink'

Name displayed on the portlet

portletTooltip

portletTooltip: string = 'Unlink backlinks'

Tooltip shown when hovering on the portlet

Static moduleName

moduleName: string = 'unlink'

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

Methods

addMenu

  • addMenu(): void

addPreference

  • addPreference(pref: any): void

displayBacklinks

  • displayBacklinks(apiobj: Api): void

evaluate

  • evaluate(event: any): void

isUsable

  • isUsable(): boolean
  • Return true if the module can be used on the current page by the current user, false otherwise

    Returns boolean

makeWindow

  • makeWindow(presetReason?: any): void

unlinkBacklinks

  • unlinkBacklinks(pageobj: Page): void

Static userPreferences

Generated using TypeDoc