-
Notifications
You must be signed in to change notification settings - Fork 1
Tokens (EN)
bhsd edited this page Dec 9, 2023
·
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 |
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 |
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 |
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