invalid gallery - bhsd-harry/wikiparser-node GitHub Wiki
❌ By default, this rule reports invalid files or image parameters, including those in <gallery>
tags, as errors.
Examples of incorrect code for { "invalid-gallery": 2 }
:
<gallery>Foo.jpg|thumb</gallery>
Examples of correct code for { "invalid-gallery": 2 }
:
[[File:{{{1}}}]]
This option can be configured to specify the severity of missing file extensions.
Examples of incorrect code for { "invalid-gallery": [ 0, { "extension": 2 } ] }
:
[[File:Foo]]
<gallery>Foo</gallery>
This option can be configured to specify the severity of invalid images in <gallery>
tags.
Examples of incorrect code for { "invalid-gallery": [ 0, { "image": 2 } ] }
:
<gallery>Help:Foo</gallery>
Examples of correct code for { "invalid-gallery": [ 2, { "image": 0 } ] }
:
<gallery>Help:Foo</gallery>
parameter
option with a severity value.
Examples of incorrect code for { "invalid-gallery": [ 0, { "parameter": 2 } ] }
:
<gallery>
Foo.jpg|100px
</gallery>
[[File:Foo.jpg|frame|100px]]
[[File:Foo.jpg|100pxpx]]
Examples of correct code for { "invalid-gallery": [ 2, { "parameter": 0 } ] }
:
<gallery>
Foo.jpg|100px
</gallery>
[[File:Foo.jpg|frame|100px]]
[[File:Foo.jpg|100pxpx]]