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.
Optional
autosave: booleanWhether to automatically save parameter and target changes or not.
Static
fromOptional
parameters: Record<string, string | { Optional
autosave: booleanStatic
upgradeUpgrades a vanilla ParsoidDocument.Node to a CTEParsoidTransclusionTemplateNode.
The node to upgrade
The document to attach
A CTEParsoidTransclusionTemplateNode
Extension class of ParsoidDocument's node. Used to type
parsoidDocument
in the below function. Since the original node is always instantiated withthis
, it can be assumed thatparsoidDocument
is a valid CTEParsoidDocument.