ParamTagToken (EN) - bhsd-harry/wikiparser-node GitHub Wiki
Content of extension tags that specify parameters line by line, used for the <dynamicpagelist> or <inputbox> tag. This class inherits all the properties and methods of the MultiLineToken class.
✅ Available in the Mini and Browser versions.
Inherited properties from MultiLineToken
✅ Expand
type: string
Name of the extension tag in lowercase, read-only.
// name
var {
firstChild: {lastChild},
} = Parser.parse('<inputbox>type=create</inputbox>');
assert.equal(lastChild, 'type=create');
assert.strictEqual(lastChild.name, 'inputbox');Inherited methods from MultiLineToken
Expand
returns: this
Deep clone the node.
// cloneNode (main)
var {
firstChild: {lastChild},
} = Parser.parse('<dynamicpagelist>category = A</dynamicpagelist>');
assert.equal(lastChild, 'category = A');
assert.deepStrictEqual(lastChild.cloneNode(), lastChild);