Expand all

ve.ui.MWMagicWordCompletionAction

Extends

Constructor

new ve.ui.MWMagicWordCompletionAction(surface, [source]) #

Autocompletion of double-underscore behaviour switches (e.g. TOC) in wikitext source mode, triggered by typing "__". The chosen word is inserted complete, with the caret after it.

Parameters:

Name Type Attributes Description
surface ve.ui.Surface

Surface to act on

source string optional
Source:
Autocompletion of double-underscore behaviour switches (e.g.

Properties

magicWordsstatic #

The double-underscore behaviour switches to offer, as complete "WORD" forms (e.g. TOC). Populated at load time from the wiki's magic words by a generated data script (ResourceLoaderData::makeMagicWordData) so it reflects the content language and installed extensions; the empty default just offers nothing until that runs.

Properties:

Type Description
Array.<string>
Source:

The double-underscore behaviour switches to offer, as complete "WORD" forms (e.g.

Methods