New to bots on Wikipedia? Read these primers!
Operator: NicoV (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 13:40, Friday, June 12, 2020 (UTC)
Function overview: Fix some nowiki tags after internal links (cf. Wikipedia:CHECKWIKI/WPC 553 dump).
Automatic, Supervised, or Manual: Automatic
Programming language(s): Java (WPCleaner)
Source code available: On GitHub (especially algorithm 553)
Links to relevant discussions (where appropriate):
Edit period(s): Twice a month
Estimated number of pages affected: About 10k pages found during the dump analysis, not all can be fixed automatically, so a few thousand edits.
Namespace(s): Main
Exclusion compliant (Yes/No): Yes
Function details: Tools like VE or CX tend to create internal links with incorrect formatting (the hyperlink is not covering all the letters), because the user doesn't always select exactly on what the link should apply. Part of such errors could be fixed automatically (see for example what my bot did on frwiki for several thousand articles). Examples of situations where the bot can automatically fix the internal link:
[[Eugène Caillot|Eugène Caillo]]<nowiki/>t
replaced by [[Eugène Caillot]]
: displayed text is the same as the target of the link[[forêt]]<nowiki/>s
replaced by [[forêt]]s
: "s" is configured on frwiki as a possible extension (plural). Configuration for enwiki will also include "s", I will see with what is left after a first pass if other extensions can be added.[[Jean-Auguste-Dominique Ingres|Ingres]]<nowiki/>
replaced by [[Jean-Auguste-Dominique Ingres|Ingres]]
: whitespace after the nowiki makes it useless.[[Divorce|Divorcé]]<nowiki/>s
replaced by [[Divorce|Divorcés]]
: "s" is configured on frwiki as a possible extension (plural).After the first run on frwiki, I'm adding some other automatic fixing abilities to the bot:
[[Marietta (Ohio)|Mariett]]<nowiki/>a
replaced by [[Marietta (Ohio)|Marietta]]
: displayed text is the same as the target of the link minus the text after the opening parenthesis[[Black metal|Black Meta]]<nowiki/>l
replaced by [[Black metal|Black Metal]]
: displayed text is the same as the target of the link, regardless of uppercase/lowercase[[1999|2000]]
). --NicoV (Talk on frwiki) 14:24, 14 June 2020 (UTC)[reply]
grazing lands
replaced by [[grazing land]]<nowiki/>s
[[mounted band]]<nowiki/>s
added.Mexico City2 5,
replaced by [[Mexico City|Mexico Cit]]<nowiki/>y<ref name=":1" /><ref name=":3" />.
[[Fox Corporation]] and [[Walt Disney Television]] while
replaced by [[Fox Corporation]]<nowiki/>while
[[Shooting of Breonna Taylor|shooting death of Breonna Taylo]]<nowiki/>r
added[[Indo-Canadians|Indo-Canadian]]<nowiki/>to
and [[Third party (Canada)|fourth-largest party]]<nowiki/>in
added.[[Campbelltown Stadium|Newcastle Sports Ground]]
[[Nintendo DSiWare|iPhone]]
[[1943 Australian federal election|1946]]
[[1956 Walthamstow West by-election|1955]]
[[1995 British Superbike Championship season|1999]]
[[1972 Norwegian European Communities membership referendum|1973]]
and [[1994 Norwegian European Union membership referendum|1995]]
[[2006 in literature|2007]]
[[1846 Newark by-election|1845]]
[[619|624]]
[[2006 in literature|2007]]
. Over 6,000! Wow. – Jonesey95 (talk) 18:57, 15 June 2020 (UTC)[reply][[1998 Pro Bowl|1997]]
, because, as the article says, "The 1998 Pro Bowl was the NFL's all-star game for the 1997 season." In the US, American football seasons take place almost entirely in the second half of a given year, with the post-season games at the beginning of the following year but designated as part of the previous year's "season". If that makes sense. If there is any way to avoid changing links where the link text is one number higher than the target year, please do so pending further discussion. – Jonesey95 (talk) 03:33, 16 June 2020 (UTC)[reply]
[[xxxx ...|yyyy]]
when xxx=yyyy+1. Do you think it's the same reason for the elections links (2 in the above examples) or it will be problems that are missed? Or do I need to configure the list of "..." for which xxxx=yyyy+1 should be ignored? The incorrect links problem for years if just the tip of the iceberg for incorrect links, but I don't know how I can find all the other ones... --NicoV (Talk on frwiki) 09:22, 16 June 2020 (UTC)[reply]
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Primefac (talk) 23:55, 15 June 2020 (UTC)[reply]