-
Notifications
You must be signed in to change notification settings - Fork 2
NoincludeToken (EN)
Bhsd edited this page Feb 9, 2025
·
4 revisions
<noinclude>
when not transcluded, and <includeonly>
or <onlyinclude>
when transcluded. This class inherits all the properties and methods of the Token class which are not repeated here.
All of the following properties and methods are not available in the Mini and Browser versions.
type: true
NoincludeToken is invisible, read-only.
// hidden (main)
var {firstChild} = Parser.parse('<noinclude>');
assert.equal(firstChild, '<noinclude>');
assert(firstChild.hidden);
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);
对维基文本批量执行语法检查的命令行工具
用于维基文本的 ESLint 插件
A command-line tool that performs linting on Wikitext in bulk
ESLint plugin for Wikitext