Steps to replicate the issue (include links if applicable):
- Go to https://en.wikipedia.org/w/index.php?title=User:Jonesey95/sandbox&oldid=1178572891
- Run a Linter error detection script.
What happens?:
- Note that the first two instances of the wikilink inside an external link are properly detected by the Linter error detection script. The third instance is not detected.
What should have happened instead?:
- The third instance of a wikilink inside an external link should be detected and reported on the Page Information page.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
This error is not an invented edge case. It existed at https://en.wikipedia.org/w/index.php?title=%C3%86olus_(1783_ship)&oldid=1167512994 and was found by WPCleaner, reported at https://en.wikipedia.org/w/index.php?title=Wikipedia:CHECKWIKI/WPC_513_dump&oldid=1178536639
The difference between the third error and the two that are detected is that it is inside a pair of ref tags that are in turn nested inside an efn template.