Fandom

Community Central

Admin Forum:Bot to tag unlicensed images

19,032pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

This Forum has been archived

Forums: Admin Central Index Technical Help Bot to tag unlicensed images
Central's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 1360 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


Now that the new editor is allowing people to completely bypass ever even seeing MediaWiki:Licenses, and since the Achievements icons all go up without a license or a category, we're starting to see an influx of pictures without either copyright notice or categories at w:c:tardis. I've got an implementation of pywikipediabot, but I'll be damned if I can figure out how to use it to add a copyright template to a page which isn't in a category. I try using add_text.py with the -untagged option, but it asks me "What project do you want to use?" and I can't seem to give it the answer it wants.

Does anyone have an implementation of any kind of automated process for either: a) putting uncategorized files into a category or b) adding templates to files which have no category? czechout@fandom    fly tardis  <span style="">01:23:14 Thu 08 Sep 2011 

See this thread. Sovq 06:13, September 8, 2011 (UTC)
Interesting. Thanks for the that tip. I can see how it would be useful to generate a big log file and then use that file to perform other operations. That gives me plenty of ideas.
However, I think I actually figured out how to use add_text.py to accomplish the goal of adding a license more directly. Turns out if you do something like:
add_text.py -text:"{{template name}}" -uncatfiles
you get access to uncategorized files, and then can proceed either manually or automatically through all the files.
Another helpful new wrinkle I've just learned, and may be helpful to others, is that you can change the parameter to quickly categorize all your achievements badges. So:
add_text.py -text:"{{achievements}}" -prefixindex:"badge"
will add a license template named "achievements" to every image that begins with the word "badge". So that's a quick and easy way to license all your badges, since "badge" is the usual prefix. I suppose that after the first run you'd have to add an "except" statement there to prevent putting the template on pages that already have it. So:
add_text.py -text:"{{achievements}}" -prefixindex:"badge" -except:"\{\{([Tt]emplate:|)[Aa]chievements"
If anyone else has any implementations of bot solutions which enforce policies about picture licensing, I'd love to hear them. czechout@fandom    fly tardis  <span style="">14:32:48 Thu 08 Sep 2011 

Also on Fandom

Random Wiki