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

Other Languages

Introduction

Each non-text node of the syntax tree generated by WikiParser-Node is a Token object. The following table summarizes all the core nodes with different type properties. For other extension nodes, please refer to the corresponding documentation.

type Description
root Root node
redirect Redirect
redirect-target Target of redirect
onlyinclude <onlyinclude>
noinclude <noinclude>
include <includeonly>
comment HTML comment
ext Extension tag
ext-attrs
html-attrs
table-attrs
Attributes of extension tag, HTML tag or table
ext-attr
html-attr
table-attr
Attribute of extension tag, HTML tag or table
attr-key
attr-value
Attribute name and value
ext-inner Text content of extension tag
arg Template argument wrapped by {{{}}}
arg-name
arg-default
Name and default value of template argument
magic-word
template
Magic word or template
magic-word-name
template-name
invoke-module
invoke-function
Name of magic word, template, module or module function
parameter Template parameter
parameter-key
parameter-value
Name and value of template parameter
heading Heading of section
heading-title Title of section
html HTML tag
table Table
tr Table row
td Table cell
td-inner Text content of table cell
double-underscore Behavior switch
hr Horizontal rule
redirect-target
link
Internal link
link-target
link-text
ext-link-text
Target and text of internal link or external link
category Category
file File link
image-parameter Parameter of image link
quote Quote (italic or bold)
ext-link External link
ext-link-url
free-ext-link
magic-link
URL of external link or free external link
list All kinds of list at start of line
dd : indentation not at start of line
converter Language converter
converter-flags All flags of language converter
converter-flag Single flag of language converter
converter-rule Single rule of language converter
converter-rule-noconvert
converter-rule-variant
converter-rule-to
converter-rule-from
Parts of language converter rule
⚠️ **GitHub.com Fallback** ⚠️