Skip to content

void ext

Bhsd edited this page Jun 2, 2026 · 5 revisions

❌ By default, this rule reports void extension tags (e.g., <templatestyles> and <section>) containing content or empty extension tags that should contain content (e.g., <dynamicpagelist> and <templatedata>) as errors.

Examples

Examples of incorrect code for { "void-ext": 2 }:

<languages>Foo</languages>
<templatedata/>
<dynamicpagelist></dynamicpagelist>

Examples of correct code for { "void-ext": 2 }:

<languages></languages>

Options

Extension tag name

This rule can be configured for specific extension tags by providing an object with the tag name as the key and the severity as the value.

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

<templatestyles>Foo</templatestyles>

Examples of correct code for { "void-ext": { "templatestyles": 0 } }:

<templatestyles>Foo</templatestyles>

Clone this wiki locally