parsing order - bhsd-harry/wikiparser-node GitHub Wiki

parsing-order

❌ By default, this rule reports wrong wikitext due to the parsing order as errors.

Options

ext

This option can be configured to specify the severity of extension tags (except <nowiki>) in HTML tag attributes.

Examples of incorrect code for { "parsing-order": [ 0, { "ext": 2 } ] }:

<br id="<ref>foo</ref>">

Examples of correct code for { "parsing-order": [ 2, { "ext": 0 } ] }:

<br id="<ref>foo</ref>">

heading

This option can be configured to specify the severity of section headings in tag attributes.

Examples of incorrect code for { "parsing-order": [ 0, { "heading": 2 } ] }:

<br
==foo==
>

Examples of correct code for { "parsing-order": [ 2, { "heading": 0 } ] }:

<br
==foo==
>

html

This option can be configured to specify the severity of HTML tags in table attributes.

Examples of incorrect code for { "parsing-order": [ 0, { "html": 2 } ] }:

{|<br>
|}

Examples of correct code for { "parsing-order": [ 2, { "html": 0 } ] }:

{|<br>
|}

templateInTable

⚠️ By default, this rule reports parsing-order issues inside transclusion in table attributes as warnings. This can be configured by providing a templateInTable option with a severity value.

Examples of incorrect code for { "parsing-order": [ 0, { "templateInTable": 2 } ] }:

{|{{Foo|1=
==Bar==
}}
|}
{|{{Foo|Bar
<br>}}
|}
{|{{Foo|Bar
<pre>Baz</pre>}}
|}

Examples of correct code for { "parsing-order": [ 2, { "templateInTable": 0 } ] }:

{|{{Foo|1=
==Bar==
}}
|}
{|{{Foo|Bar
<br>}}
|}
{|{{Foo|Bar
<pre>Baz</pre>}}
|}
⚠️ **GitHub.com Fallback** ⚠️