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

Other Languages

Introduction

The parent class of GalleryToken, ImagemapToken and ParamTagToken. This class inherits all the properties and methods of the Token class which are not repeated here.

✅ Available in the Mini and Browser versions.
🌐 Available in the Browser version.

Properties

type

✅ Expand

type: 'ext-inner'

// type
var token = Parser.parse('<inputbox>type=create</inputbox>')
	.firstChild.lastChild;
assert.equal(token, 'type=create');
assert.strictEqual(token.type, 'ext-inner');

Methods

print

🌐 Expand

returns: string
Output in HTML format.

// print
var token = Parser.parse('<inputbox>\ntype=create\nbreak=no</inputbox>')
	.firstChild.lastChild;
assert.equal(token, '\ntype=create\nbreak=no');
assert.strictEqual(
	token.print(),
	`<span class="wpb-ext-inner">
<span class="wpb-param-line">type=create</span>
<span class="wpb-param-line">break=no</span></span>`,
);
⚠️ **GitHub.com Fallback** ⚠️