Affected wiki(s):
en.WP
Diff(s) (if applicable):
https://en.wikipedia.org/w/index.php?title=Rhett_%26_Link&type=revision&diff=1089285833&oldid=1088184941
What is happening?:
Sometimes, instead of placing the webarchive template outside of and after an external link, like this:
<ref>[http://www.hypable.com/dan-radcliffe-what-if-anna-akana-youtube/ What If: Dan Radcliffe teams up with YouTuber Anna Akana] {{Webarchive|url=https://web.archive.org/web/20220522231336/https://www.hypable.com/dan-radcliffe-what-if-anna-akana-youtube/ |date=May 22, 2022 }}. Hypable.com. Retrieved December 29, 2015.</ref>
it places the webarchive template inside the external link, like this:
<ref>[http://theadcc.ca/awards/directions/ {{Webarchive|url=https://web.archive.org/web/20150320183932/http://theadcc.ca/awards/directions/ |date=March 20, 2015 }} Directions: An Annual Awards Show {{!}} Advertising & Design Club of Canada]. Theadcc.ca (October 21, 2015). Retrieved December 29, 2015.</ref>
I think this may be related to the presence of { or } inside the external link. In any event, the latter kind of edit produces a Linter "link inside link" error, and the resulting link is formatted poorly.
What should happen instead?:
The bot should always place webarchive templates outside of the external link.
List of steps to reproduce (step by step, including full links if applicable):
- Run the bot on the pre-diff version of the page linked above.
Other information: