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.
Optionalautosave: booleanWhether to automatically save parameter and target changes or not.
StaticfromOptionalparameters: Record<string, string | { Optionalautosave: booleanStaticupgradeUpgrades 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
parsoidDocumentin the below function. Since the original node is always instantiated withthis, it can be assumed thatparsoidDocumentis a valid CTEParsoidDocument.