Expand all

abstract ve.dm.MWExtensionNode

Extends

Constructor

new ve.dm.MWExtensionNode()abstract #

DataModel MediaWiki extension node.

Properties

extensionNamestatic #

Name of the MediaWiki parser extension tag. (Not related to the name of the MediaWiki extension.)

Properties:

Type Description
string
Source:
Name of the MediaWiki parser extension tag.

tagNamestatic #

HTML tag name.

Properties:

Type Description
string
Source:
HTML tag name.

Methods

getExtensionName() → {string} #

Get name of the MediaWiki parser extension tag.

Source:

Returns:

Extension name

Type
string
Get name of the MediaWiki parser extension tag.

cloneElement()static #

getExtensionName(dataElement) → {string}static #

Get name of the MediaWiki parser extension tag.

Static version for toDomElements

Parameters:

Name Type Description
dataElement Object

Data element

Source:

Returns:

Extension name

Type
string
Get name of the MediaWiki parser extension tag.

toDataElement(domElements, converter, [type])static #

Parameters:

Name Type Attributes Description
domElements Array.<Node>
converter ve.dm.Converter
type string optional

Type to give dataElement, defaults to static.name

Source: