-
Notifications
You must be signed in to change notification settings - Fork 1
Tokens (EN)
Bhsd edited this page Oct 1, 2024
·
6 revisions
Each non-text node of the syntax tree generated by WikiParser-Node is a Token object. The following table summarizes all the nodes with different type
properties.
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 |
对维基文本批量执行语法检查的命令行工具
用于维基文本的 ESLint 插件
A command-line tool that performs linting on Wikitext in bulk
ESLint plugin for Wikitext