Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace SiteConfig

Site configuration for Twinkle. These are usually MediaWiki configurations that are wiki-specific, but that either can't be retrieved by Twinkle automatically, or are too expensive to fetch.

Index

Variables

Let botUsernameRegex

botUsernameRegex: RegExp = ...

Regex expression to check if a username is likely to be a bot.

Let flaggedRevsNamespaces

flaggedRevsNamespaces: number[] = ...

Namespaces where FlaggedRevs (pending changes protection) is enabled. Needs to put in unless phab:T218479 happens. Copy the $wgFlaggedRevsNamespaces value for your wiki which you can find on https://noc.wikimedia.org/conf/highlight.php?file=flaggedrevs.php Used in protect module.

Let permalinkSpecialPageName

permalinkSpecialPageName: string = 'Special:PermanentLink'

Local alias for Special:PermanentLink. Check using /w/api.php?action=query&meta=siteinfo&formatversion=2&siprop=specialpagealiases Include the namespace prefix. If there are multiple aliases, enter any one - preferably the one that's shorter

Let redirectTagAliases

redirectTagAliases: string[] = ...

Aliases for #REDIRECT tag. These are always case-insensitive. Please copy as-is from API output (name: "redirect") /w/api.php?action=query&format=json&meta=siteinfo&formatversion=2&siprop=magicwords

Let signatureTimestampFormat

signatureTimestampFormat: any = null

Function to parse the signature timestamp format. This should be a function that takes a string as input and returns an array of 5 numbers - the year, month (0-indexed), date, hour and minute, all of them ACCORDING TO UTC (even if your wiki doesn't use UTC as the default time zone!) This can be skipped if your wiki's signature timestamp format is same as the MediaWiki default - used on en.wikipedia, commons, meta, etc.

Generated using TypeDoc