Page MenuHomePhabricator

creates broken cs1|2 template and bad wiki markup
Closed, DuplicatePublic

Description

this edit:
https://en.wikipedia.org/w/index.php?title=2019%E2%80%9320_EuroLeague&type=revision&diff=1013128560&oldid=1000933463

converted this:
[http://starkarena.co.rs/o-%D1%88/?lang=en {{in lang|ru}}]

to this:
[{{Cite web |url=http://starkarena.co.rs/o-%D1%88/?lang=en |title={{in lang|ru}} |access-date=2019-06-08 |archive-date=2019-07-15 |archive-url=https://web.archive.org/web/20190715223649/https://starkarena.co.rs/o-%d1%88/?lang=en |url-status=dead }} {{in lang|ru}}]

The bot replaced the url with a broken {{cite web}} template but left the ext link label and wikimarkup in place.

This citation's title is not {{in lang|ru}}. That template does not belong in cs1|2 template |title= parameters because that template creates a category wikilink. If anything, {{in lang|<code>}} should be converted to |language=<code> or, when an ext link contains a template ([<url> {{<template>|...}}] the bot should abandon the edit.

If the bot is smart enough to walk the article history to get a value for |access-date= (as it apparently did in this case) then surely it can be made smart enough to notice {{in lang|<code>}} in |title= and do the right thing. It can also be made smart enough to cleanup after itself by removing the extraneous ext link markup and link label