Operator: Snottywong ( talk · contribs)
Time filed: 17:53, Tuesday February 8, 2011 ( UTC)
Automatic or Manually assisted: Automatic
Programming language(s): Python
Source code available: Pywikipedia script, source code can be made available on request.
Function overview: Tagging image files which are used in video game articles with {{ WikiProject Video games}}.
Links to relevant discussions (where appropriate): Wikipedia:Bot requests/Archive 40#Tagging files for WikiProject Video games
Edit period(s): One time run
Estimated number of pages affected: Maximum of about 20,00025,000 images.
Exclusion compliant (Y/N): No
Already has a bot flag (Y/N): Yes
Function details: User:Anomie was kind enough to create a list of all images used in articles which are in WikiProject Video Games (see 1, 2, 3, 4, 5). The bot will go through each of these files and add the WPVG template to the file's talk page if it is not already present. If no talk page exists, the bot will create one. The only problem that remains to be resolved is that Anomie's list contains all images used on the articles, including images transcluded from templates. So, I will talk to Anomie to see if it is possible to generate a list that excludes images that aren't directly linked in articles. If that is not possible, then the bot will need to go through and check that each image is directly linked before adding the WPVG template.
Quick update on the scope of the bot: In preparing the bot, I've found that there are exactly 28,060 unique files that are directly linked from WPVG articles (and by "directly linked", I mean that the article uses [[File:...]] or [[Image:...]] in the wikicode, not counting images transcluded from templates, although images used in templates tagged by the WPVG banner are counted). Since approximately 3,200 of the files are already tagged with the WPVG banner, this leaves roughly 25,000 that will likely need to be tagged. The bot is programmed and ready to go, just waiting on approval now. SnottyWong babble 20:17, 11 February 2011 (UTC) reply
Only non-scope image I found was File talk:Flag of the United Kingdom.svg. What about if talk page uses {{ WikiProjectBannerShell}}? I doubt there's many images now, but should you get requested to tag more projects, you may end up tagging the same page multiple times for different projects.
Anyway, Approved for extended trial (5 existing page edits or 50 random edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Let's see correct existing page update. — HELLKNOWZ ▎ TALK 09:19, 12 February 2011 (UTC) reply
Trial complete. I made 50 more random edits, and only one of them had an existing talk page, File talk:VentureAfrica.png. It took forever this time because there was a lot of database server lag, so the bot kept pausing. Looks like the previous problems have been resolved. Also, I have changed the bot so that it doesn't mark the edits as minor if it is creating a new page (I did that after the 50 edits were complete, so you won't see that until next time). SnottyWong prattle 21:47, 14 February 2011 (UTC) reply
What about if talk page uses {{ WikiProjectBannerShell}}? — HELLKNOWZ ▎ TALK 21:58, 14 February 2011 (UTC) reply
Anyway, Approved. — HELLKNOWZ ▎ TALK 08:44, 16 February 2011 (UTC) reply