Expand all

ve.ui.MWTemplateTitleInputWidget

Extends

Constructor

new ve.ui.MWTemplateTitleInputWidget([config]) #

Input field for entering a template title, for example when adding a template in the template dialog. Autocomplete fetches TemplateData and performs searching in the background, to display information about matching templates on the wiki.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Properties:
Name Type Attributes Description
namespace number optional

Namespace to prepend to queries. Defaults to template namespace.

showDescriptions boolean optional

Show template descriptions from the TemplateData API

api mw.Api optional
Source:

Input field for entering a template title, for example when adding a template in the template dialog.

Methods

addExactMatch(response) → {Object}private #

Parameters:

Name Type Description
response Object

Action API response from server

Source:

Returns:

Modified response

Type
Object

Type Definitions