Extends
Methods
getPartsList() → {Array.<Object>}
#
Get a simplified description of the transclusion's parts.
Returns:
List of objects with either template or content properties
- Inherited from:
- Source:
getSingleTemplateName() → {string|undefined}
#
undefined}
#
Get the name of the template if it's a single template transclusion
Returns:
Name of the template, undefined if not a single template transclusion
- Type
-
string
|
undefined
- Inherited from:
- Source:
getSingleTemplatePart() → {Object|undefined}
#
undefined}
#
Get the transclusion's template part if it's a single template transclusion
Returns:
Object with template properties, undefined if not a single template transclusion
- Type
-
Object
|
undefined
- Inherited from:
- Source:
getWikitext(skipParameters) → {string}
#
Wrapper for static method, ve.dm.MWTransclusionNode.static.getWikitext above.
Parameters:
| Name | Type | Description |
|---|---|---|
skipParameters |
boolean | Exclude parameters from result |
Returns:
Wikitext
- Type
- string
- Inherited from:
- Source:
ve.dm.MWTransclusionNode.static.getWikitext above.
isSingleTemplate([allowedTemplates]) → {boolean}
#
Check if transclusion contains only a single template.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
allowedTemplates |
string | Array.<string> |
optional |
Names of templates to allow, omit to allow any template name |
Returns:
Transclusion only contains a single template, which is one of the ones in templates
- Type
- boolean
- Inherited from:
- Source:
onAttributeChange(key, from, to)
#
Handle attribute change events.
Parameters:
| Name | Type | Description |
|---|---|---|
key |
string | Attribute key |
from |
string | Old value |
to |
string | New value |
- Inherited from:
- Source: