_____
__
|
|_|__|.----.-----.-----.-----.-----.
|
| || __|
-__| |__ --| -__|
|_______|__||____|_____|__|__|_____|_____|
_______
__ __ _______ _____ _____
|_
_|.-----. | |/
|_
_|
|_| |_
| |
| _ | |
< _|
|_|
| |
|___| |_____| |__|\__|_______|_______|_______|
LicenseToKill v0.1 - http://licensetokill.sourceforge.net
Copyright (C) 2006 - Kevin Drapel
http://fr.wikipedia.org/wiki/User:Dake
Introduction
Administrators
on Wikipedia often need to delete several pictures from the same category
for various reasons (copyright violation, bad images, etc.). Deleting pictures
with Mediawiki is a tedious task as you have to select images one by one,
enter a comment and press the "delete" button.
Some
ways to simplify these tasks have been developed with the Pywikipedia
bot but it is
not really user-friendly. The purpose of this tool is to provide a simple
GUI but still efficient enough to fullfil the administration tasks.
You can either import the images from a category or a list.
Files
Latest
version is available here :
http://sourceforge.net/project/showfiles.php?group_id=185258
Requirements
- You
need an up to date .NET runtime (at least .NET 2.0)
- You
must be admin on the target wiki :)
- Windows
is the only supported platform yet. Mono is the next step though.
Limitations
The current
version is mainly focused on Wikimedia foundation sites (ie. Wikipedia,
Wikibooks,
etc.). For the moment, only Wikipedia and Commons are supported but it
is very easy
to extend the application using the XML configuration files.
The
configuration file only handles "fr" and "en" wikipedias but adding a new
language is a matter of copying and pasting some lines in the
xml and
translating
the messages (see below). For Commons, the default language is english.
This
should be improved in the future with more configuration files.
Configuration
files
Configuration
files are in XML. They are located in the "config" directory. If you
want to change
the location of these config files, you must update the executable
config (LicenseToKill.exe.config).
Interesting
keys :
- BotWaitingTime :
duration in milliseconds between two deletion requests (to avoid logs
flooding)
- categoryDeletion
: message in a language to indicate that the picture comes from a
category, note that the parameters format is based on .NET formatting
(using {0}, {1}, etc.)
- miscDeletion : same
as above but for images imported from a list
If
you translate, just make sure that you properly keep the format (ie.
{0}, etc.)
Import
from list
The
list must be a text file with one picture per line. Example :
Image:blabla.jpg
Image:deleteme.mp3
Image:copyvio.gif
Image:speedy.JPG
Do
not use translated "image" mediawiki tag, such as "Bild" or "Beelt",
etc.
Sources
Source
code is available under the GPL license. It can be retrieved using
Subversion.
Repository
is located here :
https://licensetokill.svn.sourceforge.net/svnroot/licensetokill
It
is currently compiled using Visual Studio 2005 and .NET 2.0. You can
also browse the repository here :
http://licensetokill.svn.sourceforge.net/viewvc/licensetokill/
Known
problems/bugs
- You
must quit the application to switch to another site / target
- There
are some problems with deleted categories which are not properly
detected yet
- The
scrolling in the list of pictures has a bad behavior when deleting
pictures from a long list
- The
application is in english though the configuration files use translated
messages.
- It
doesn't check if you are admin but you cannot do much harm without the
sysop flag...
- Messages
cannot be changed within the tool, you must change the .xml first
Todolist
- Test
and support Mono (high priority)
- Add
a module to remove pictures from articles (high priority)
- Add
more configuration files (Wikibooks, Wikinews, etc)
- Improve
the messages handling and edition
- Cross-categories
extraction (ie. picture in category X and Z but not in Y, etc.)
- Add
a module to undelete pictures (low priority)
Contact
If
you find it useful or you have translated some messages in your
language, drop a
message at :
http://fr.wikipedia.org/wiki/User:Dake
or
dake.wikipedia
[[@]] gmail.com