ParamTagToken (EN) - bhsd-harry/wikiparser-node GitHub Wiki

Other Languages

Introduction

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.

Properties

Inherited properties from MultiLineToken

name

✅ 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');

Methods

Inherited methods from MultiLineToken

cloneNode

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);
⚠️ **GitHub.com Fallback** ⚠️