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

Other Languages

Introduction

<noinclude> when not transcluded, and <includeonly> or <onlyinclude> when transcluded.

All of the following properties and methods are not available in the Mini and Browser versions.

Properties

hidden

type: true
NoincludeToken is invisible, read-only.

// hidden (main)
var {firstChild} = Parser.parse('<noinclude>');
assert.equal(firstChild, '<noinclude>');
assert(firstChild.hidden);

Methods

cloneNode

returns: this
Deep clone the node.

// cloneNode (main)
var {firstChild} = Parser.parse('</noinclude>'),
	cloned = firstChild.cloneNode();
assert.equal(firstChild, '</noinclude>');
assert.equal(cloned, '</noinclude>');
assert.deepStrictEqual(firstChild, cloned);
⚠️ **GitHub.com Fallback** ⚠️