Expand all

abstract ve.ce.MWTransclusionNode

Extends

Constructor

new ve.ce.MWTransclusionNode(model, [config])abstract #

Parameters:

Name Type Attributes Description
model ve.dm.MWTransclusionNode

Model to observe

config Object optional

Configuration options

Mixes in:
Source:
ContentEditable MediaWiki transclusion node.

Methods

filterRenderedDomElements() #

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

Source:
Handle an unsuccessful response from the parser for the wikitext fragment.

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

Source:
Handle a successful response from the parser for the wikitext fragment.

render() #

Extend the ve.ce.GeneratedContentNode render method to check for hidden templates.

Check if the final result of the imported template is empty.

Source:
Extend the ve.ce.GeneratedContentNode render method to check for hidden templates.

filterRendering(contentNodes) → {Array.<Node>}static #

Filter rendering to remove auto-generated content and wrappers

Parameters:

Name Type Description
contentNodes Array.<Node>

Rendered nodes

Source:

Returns:

Filtered rendered nodes

Type
Array.<Node>
Filter rendering to remove auto-generated content and wrappers

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
Source:

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
Source:

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.