Extends
Constructor
new ve.dm.MWExtensionNode()abstract
#
Hierarchy
Children
DataModel MediaWiki extension node.
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 |
Name of the MediaWiki parser extension tag.
tagNamestatic
#
HTML tag name.
Properties:
Type | Description |
---|---|
string |
HTML tag name.
Methods
getExtensionName() → {string}
#
Get name of the MediaWiki parser extension tag.
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 |
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 |