Extends
Constructor
new ve.ce.MWTransclusionNode(model, [config])abstract
#
Hierarchy
Children
ContentEditable MediaWiki transclusion node.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
model |
ve.dm.MWTransclusionNode | Model to observe |
|
config |
Object |
optional |
Configuration options |
Methods
executeCommand()
#
filterRenderedDomElements()
#
generateContents()
#
getRenderedDomElements()
#
onParseError(deferred, response)
#
Handle an unsuccessful response from the parser for the wikitext fragment.
Parameters:
Name | Type | Description |
---|---|---|
deferred |
jQuery.Deferred | The promise object created by #generateContents |
response |
Object | Response data |
onParseSuccess(deferred, response)
#
Handle a successful response from the parser for the wikitext fragment.
Parameters:
Name | Type | Description |
---|---|---|
deferred |
jQuery.Deferred | The Deferred object created by #generateContents |
response |
Object | Response data |
onSetup()
#
render()
#
Extend the ve.ce.GeneratedContentNode render method to check for hidden templates.
Check if the final result of the imported template is empty.
getDescription(model) → {string}static
#
Get a plain text description of the template parts in a transclusion node, excluding raw wikitext snippets.
Parameters:
Name | Type | Description |
---|---|---|
model |
ve.dm.MWTransclusionNode |
Returns:
Comma-separated list of template names
- Type
- string
Get a plain text description of the template parts in a transclusion node, excluding raw wikitext snippets.
getDescriptionDom(model) → {HTMLElement}static
#
Get a formatted description of the template parts in a transclusion node, excluding raw wikitext snippets.
Like #getDescription, but parts generated from templates are linked to those templates
Parameters:
Name | Type | Description |
---|---|---|
model |
ve.dm.MWTransclusionNode |
Returns:
DOM node with comma-separated list of template names
- Type
- HTMLElement
Get a formatted description of the template parts in a transclusion node, excluding raw wikitext snippets.