Regex matching the redirect category shell template whose existence removes the need to add a protection template to the redirect since the shell auto-detects it. This should be null if the wiki has no such template.
Regex expression to search for an existing request on the request page, and abort if found. Leaving this null (default) means that no check for existing request is performed.
Regex that matches protection tags already existing on the page. Leaving this as null (default) means that no existing tag detection takes place.
Set of links shown in the bottom right of the module dialog. Object keys are labels and values are the wiki page names.
Optional ID for the portlet. This defaults to twinkle-${portletName.toLowerCase()}
if unspecified
Name displayed on the portlet
Tooltip shown when hovering on the portlet
Short form or acronym for the requestPageName. Used in text. Usage is not in form of a link so this doesn't necessarily need to be a redirect to the requestPageName.
Full name of the page where protection requests are placed.
The name of the module, used to check if the user has the module disabled
Add menu portlet
Add a preference to this module's preference group
Get presets for create protection.
Get protection presets.
Returns the request text and edit summary.
Insert tag into the page. You may want to override this to have the tag inserted after short description or hatnotes
Return a PreferenceGroup with the preferences added by this module
Generated using TypeDoc
Module used for requesting page protection, for tagging pages with protection templates and actually applying protection.
Localisation: This is an abstract class. The following abstract methods must be implemented:
In addition, the following methods and fields should be overridden:
See enwiki localisation at https://github.com/wikimedia-gadgets/twinkle-enwiki/blob/master/src/protect.ts