Mobile app version of vmapp.org
Login or Join
Shelley277

: Is it possible to find broken link anchors in MediaWiki? Probably a simple question answered million times, but I can't find an answer. MediaWiki can track missing pages and report those with

@Shelley277

Posted in: #Mediawiki

Probably a simple question answered million times, but I can't find an answer. MediaWiki can track missing pages and report those with Special:WantedPages. I'm not sure if it's possible, but can MediaWiki report broken anchors? Say, I have the Foo page that refers the Bar page like this: [[Bar#Name]]. Let's assume the Bar page lacks this section therefore the Name section does not exist there, but Special:WantedPages won't report this link as broken because the Bar page exists. Is there any way to find all broken anchors? Thanks in advance!

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley277

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shelley277

Not very critical, but unfortunately it seems that MediaWiki does not support such a feature out of box, although it was requested multiple times. :( See more at phabricator.wikimedia.org/T18561. Thanks to Ciencia Al Poder from the MediaWiki Project Support Desk.

(Edit 1)

Another thanks go to Tgr that suggested to use BrokenAnchorBot. This solution requires Pywikibot and seems to really answer the question. Also, Tgr seems to have an account at the site, and if he puts his answer here too, I'd be happy to mark his answer as the best one since the bot seems to fix my issue without having built-in support.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme