nested link - bhsd-harry/wikiparser-node GitHub Wiki
❌ By default, this rule reports internal links inside external links as errors. See also: Help:Lint errors/wikilink-in-extlink.
Examples of incorrect code for { "nested-link": 2 }:
[//example.com [[Foo]]]Examples of correct code for { "nested-link": 2 }:
[//example.com [[File:Example.jpg|link=]]][//example.com [[File:Foo.mp3]]]This rule also reports file links inside external links. This behavior can be configured by providing a file option with a severity value.
Examples of incorrect code for { "nested-link": [ 0, { "file": 2 } ] }:
[//example.com [[File:Example.jpg|link=Foo]]Bar]
Examples of correct code for { "nested-link": [ 2, { "file": 0 } ] }:
[//example.com [[File:Example.jpg|link=Foo]]Bar]
This rule also reports <ref> tags inside internal or external links. This behavior can be configured by providing a ref option with a severity value.
Examples of incorrect code for { "nested-link": [ 0, { "ref": 2 } ] }:
[[Foo|<ref name=Bar/>]]
[//example.com <ref>Foo</ref>]
Examples of correct code for { "nested-link": [ 2, { "ref": 0 } ] }:
[[Foo|<ref name=Bar/>]]
[//example.com <ref>Foo</ref>]