Page MenuHomePhabricator

IABot is causing "wikilink in external link" errors
Open, MediumPublic

Description

Affected wiki(s):
en.WP and probably others

Diff(s) (if applicable):
https://en.wikipedia.org/w/index.php?title=Alexander_Dovzhenko&diff=1170323458&oldid=1161580207

What is happening?:
IABot inserted Template:Webarchive inside an external link, causing a Linter "wikilink in external link" error (see https://en.wikipedia.org/wiki/Special:LintErrors/wikilink-in-extlink) and its related help page for details.

I have seen this problem in old edits, but I thought that it had been fixed. The diff above is from 14 August 2023.

What should happen instead?:
Template:Webarchive should be placed outside of external links and outside of any template that may generate an external link.

List of steps to reproduce (step by step, including full links if applicable):

  • Run the bot on the previous version of the page linked in the diff above.
  • *

Other information:

Event Timeline

Harej triaged this task as Medium priority.Aug 16 2023, 8:05 PM
Harej moved this task from Inbox to Backlog: Syntax on the InternetArchiveBot board.

This is still happening (diff from 23 September 2023). There are no more "link in link" errors in article space on en.WP. Please prevent the bot's code from making new ones.

https://en.wikipedia.org/w/index.php?title=Operation_Lam_Son_719&oldid=1177098970

Should be:

* [http://www.laosgpsmap.com/ho-chi-minh-trail-laos/ Legend of the, Ho Chi Minh trail[sic<nowiki>]</nowiki>] {{Webarchive|url=https://web.archive.org/web/20200810192543/https://www.laosgpsmap.com/ho-chi-minh-trail-laos/ |date=2020-08-10 }} – numerous images of campaign remains, including some from  the Ban Dong war museum

What the bot does instead:

* [http://www.laosgpsmap.com/ho-chi-minh-trail-laos/ {{Webarchive|url=https://web.archive.org/web/20200810192543/https://www.laosgpsmap.com/ho-chi-minh-trail-laos/ |date=2020-08-10 }} Legend of the, Ho Chi Minh trail[sic<nowiki>]</nowiki>] – numerous images of campaign remains, including some from  the Ban Dong war museum

We think the [sic<nowiki>]</nowiki>] bit is throwing off the bot's parser, but it's valid syntax so it should be supported.

For what it's worth, nothing like this was found in the original reported diff, which makes the problem more interesting.