Extends
Constructor
new ve.dm.MWTemplatePlaceholderModel(transclusion)
#
Represents a not yet realized template invocation as long as the user is still searching for a
template name. Meant to be an item in a {@see ve.dm
.MWTransclusionModel}.
Parameters:
Name | Type | Description |
---|---|---|
transclusion |
ve.dm.MWTransclusionModel |
Represents a not yet realized template invocation as long as the user is still searching for a template name.
Methods
containsValuableData() → {boolean}
#
- Inherited from:
- Source:
Returns:
True if there is meaningful user input that was not e.g. auto-generated
- Type
- boolean
getId() → {string}
#
Get a unique part ID within the transclusion.
- Inherited from:
- Source:
Returns:
Unique ID
- Type
- string
getTransclusion() → {ve.dm.MWTransclusionModel}
#
Get transclusion part is in.
- Inherited from:
- Source:
Returns:
Transclusion
remove()
#
Remove part from transclusion.
- Inherited from:
- Source:
serialize() → {Object|string|undefined
}
#
undefined
}
#
Create a serialized representation of this part. Contains all information needed to recreate the
original wikitext, including extra whitespace. Used in
{@see ve.dm
.MWTransclusionModel.getPlainObject}. The corresponding deserializer is in
{@see ve.dm
.MWTransclusionNode.static.getWikitext}.
- Inherited from:
- Source:
Returns:
Serialized representation, raw wikitext, or undefined if empty
- Type
-
Object
|
string
|
undefined
Events
change()
#
Emitted when anything changed in the content the part represents, e.g. a parameter was added to a template, or a value edited.
- Inherited from:
- Source: