- Source:
Collection of properties accessible from anywhere in the script that are not grouped in any other way. This is an incomplete list. "g" is for "global".
Members
(static) allowedTags :Array.<string>
- Source:
List of tags allowed in user input. See https://www.mediawiki.org/wiki/Help:HTML_in_wikitext#Allowed_HTML_tags, https://en.wikipedia.org/wiki/Help:HTML_in_wikitext#Parser_and_extension_tags. Deprecated tags are not included.
Type:
- Array.<string>
(static) areTimestampsAltered :boolean|undefined
- Source:
Whether comment timestamps are altered somehow.
Type:
- boolean | undefined
(static) backgroundUpdateCheckInterval :number
- Source:
Number of seconds between new comments checks when the tab is hidden.
Type:
- number
(static) badCommentBeginnings :Array.<RegExp>
- Source:
Regexps for strings that should be cut out of comment beginnings (not considered parts of comments) when editing comments.
Type:
- Array.<RegExp>
(static) badHighlightableElements :Array.<string>
- Source:
Names of elements that shouldn't be the first or last highlightable element. CD wraps these
elements into <div>
containers. It allows for comment headers to be displayed correctly when
the reformatComments
setting is enabled.
Type:
- Array.<string>
(static) commentFallbackSideMargin :number
- Source:
Left and right margins of comment layers used as a fallback (when a comment is placed somewhere where we don't know how to position the layers).
Type:
- number
(static) commentMarkerWidth :number
- Source:
Width (thickness) of comment markers and thread lines when you hover over them. Should be an odd number - otherwise the browser will render 1 pixel more on one side, and for each comment differently. See also pixelDeviationRatio that helps achieve this evenness.
Type:
- number
(static) contentDateFormat :string
- Source:
Format of date in content language, as used by MediaWiki.
Type:
- string
(static) contentDigits :string
- Source:
Regular expression matching a single digit in content language, e.g. [0-9]
.
Type:
- string
(static) contentTimestampMatchingGroups :Array.<string>
- Source:
Codes of date (in content language) components for the timestamp parser function.
Type:
- Array.<string>
(static) contentTimestampNoTzRegexp :RegExp
- Source:
Regular expression for matching timestamps in content with no timezone at the end.
Type:
- RegExp
(static) contentTimestampRegexp :RegExp
- Source:
Regular expression for matching timestamps in content.
+
to account for RTL and LTR marks replaced with a space.
Type:
- RegExp
(static, nullable) contentTimezone :string
- Source:
Timezone of the wiki.
Type:
- string
(static) contribsPage :Array.<string>
- Source:
Contributions page local name.
Type:
- Array.<string>
(static) letterPattern :string
- Source:
A replacement for unicode property escapes while they are not supported in major browsers. https://github.com/slevithan/xregexp can be used also.
Type:
- string
(static) msInDay :number
- Source:
Number of milliseconds in a day.
Type:
- number
(static) msInMin :number
- Source:
Number of milliseconds in a minute.
Type:
- number
(static) noHighlightClasses :Array.<string>
- Source:
Classes of elements that shouldn't be highlighted. Only MediaWiki-assigned and native CD classes go here. Wiki-specific classes go in the configuration.
Type:
- Array.<string>
(static) noSignatureClasses :Array.<string>
- Source:
- Default Value:
- []
Elements with classes listed here won't be considered legit comment timestamp containers. They can still be parts of comments; for the way to prevent certain elements from becoming comment parts, see module:defaultConfig.rejectNode. This value can have a wikitext counterpart (though not necessarily), module:defaultConfig.noSignatureTemplates, for classes that are specified inside templates.
When it comes to the wikitext, all lines containing these classes are ignored.
Type:
- Array.<string>
(static) parseTimestampContentRegexp :RegExp
- Source:
Regular expression for parsing timestamps in content.
Type:
- RegExp
(static) parseTimestampUiRegexp :RegExp
- Source:
Regular expression for parsing timestamps in the interface.
Type:
- RegExp
(static) popularInlineElements :Array.<string>
- Source:
Popular elements that can be met in page content and do have the display: inline
property in
the default browser styles.
Type:
- Array.<string>
(static) popularNotInlineElements :Array.<string>
- Source:
Popular elements that can be met in page content and don't have the display: inline
property
in the default browser styles.
Type:
- Array.<string>
(static) signCode :string
- Source:
Auxiliary property to keep the sign code: '\~\~\~\~'
. If written as plain text, it gets
transformed into the revision author's signature when saved. Note that the minifier
translates '~\~\\~'
and '\~\~' + '\~'
into '\~\~\~'
.
Type:
- string
(static) specialPageAliases :Array.<string>
- Source:
Some special page aliases in the wiki's language.
Type:
- Array.<string>
(static) threadLineSidePadding :number
- Source:
Left and right padding of thread lines.
Type:
- number
(static) timezoneRegexp :RegExp
- Source:
Regular expression for matching timezone, with the global flag.
Type:
- RegExp
(static) uiDateFormat :string
- Source:
Format of date in user (interface) language, as used by MediaWiki.
Type:
- string
(static) uiDigits :string
- Source:
Regular expression matching a single digit in user (interface) language, e.g. [0-9]
.
Type:
- string
(static) uiTimestampMatchingGroups :Array.<string>
- Source:
Codes of date (in interface language) components for the timestamp parser function.
Type:
- Array.<string>
(static) uiTimestampRegexp :RegExp
- Source:
Regular expression for matching timestamps in the interface with no timezone at the end.
Type:
- RegExp
(static, nullable) uiTimezone :string|number
- Source:
Timezone per user preferences: standard timezone name or offset in minutes. 'UTC'
is always
used instead of 0
.
Type:
- string | number
(static) updateCheckInterval :number
- Source:
Number of seconds between checks for new comments when the tab is not hidden.
Type:
- number