Operator: GoingBatty ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 23:25, Friday June 20, 2014 ( UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): AutoWikiBrowser
Source code available: For two character templates, I plan to use the following find/replace rules:
{{(\s*[Cc]it(?:e|ation))([^}]+)(\s*\|\s*language\s*=\s*){{(\w{2})\s?(?:icon)?}}(\s*[\|}<])
{{$1$2$3$4$5
For three character templates, a different substitution will be used.
Function overview: Remove language icon templates from citation templates
Links to relevant discussions (where appropriate): User talk:Dispenser/Reflinks#Issue with language parameter and Help talk:Citation Style 1/Archive 5#Icon templates in language
Edit period(s): One time run per template (presuming Reflinks is the only way these icons are being incorrectly added and that Reflinks goes away when the Toolserver is retired at the end of the month)
Estimated number of pages affected: hundreds
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details: Remove language icon templates from citation templates. For two character templates such as {{
sv icon}}, make a change such as:
{{cite web|url=http://www.google.com|title=Hej världen|language=sv}}
generates
"With template" (in Swedish).{{cite web|url=http://www.google.com|title=Hej världen|language=sv}}
generates
"Without template" (in Swedish).For maximum effectiveness, I plan to run BattyBot 24 and AWB general fixes at the same time. GoingBatty ( talk) 23:25, 20 June 2014 (UTC) reply
GoingBatty can you please make a database scan so that we know the exact number of pages affected? -- Magioladitis ( talk) 11:04, 22 June 2014 (UTC) reply
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Magioladitis ( talk) 15:05, 22 June 2014 (UTC) reply
This is related to Wikipedia_talk:AutoWikiBrowser/Feature_requests#Remove_language_icon_templates_from_citations too. -- Magioladitis ( talk) 19:44, 22 June 2014 (UTC) reply
GoingBatty I added it as built-in AWB feature in rev 10262. Please do another 50 edits with this version so that we check there is no bug in it. Thanks, Magioladitis ( talk) 07:30, 23 June 2014 (UTC) reply
Approved. Magioladitis ( talk) 11:22, 25 June 2014 (UTC) reply