Create a new ParsoidTransclusionTemplateNode.
The document handling this transclusion node.
The original element where the data-mw
of this node is found.
The data-mw
part.template
of this node.
The i
property of this node.
Whether to automatically save parameter and target changes or not.
Readonly
autosaveWhether to automatically save parameter and target changes or not.
Readonly
dataThis template's data. This is the value for template
for this specific "part" in the
data-mw
.
Readonly
elementThe HTMLElement that contains this template.
Readonly
iThe i
property of this specific node.
Readonly
parsoidThe ParsoidDocument handling this node.
Removes this node from its element. This will prevent the node from being saved again.
Optional
eraseLine: booleanFor block templates. Setting this to true
will also erase a newline
that immediately succeeds this template, if one exists. This is useful in ensuring that
there are no excesses of newlines in the document.
Static
fromCreates a new ParsoidTransclusionTemplateNode. Can be used later on to add a template into wikitext. To have this node show up in wikitext, append the node's element (using ParsoidTransclusionTemplateNode.element) to the document of a ParsoidDocument.
The document used to generate this node.
The template to create. If you wish to generate wikitext as a block-type transclusion (as long as a format is not provided through TemplateData), append a "\n" to the end of the template name.
Optional
parameters: Record<string, string | { The parameters to the template.
Optional
autosave: booleanA new ParsoidTransclusionTemplateNode.
Generated using TypeDoc
A class denoting a transclusion template node (a transcluded template, barring any included text or inline parameters) inside an element with [typeof="mw:Transclusion"].