Patches item #1867322, was opened at 2008-01-09 00:54 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1867322...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Purodha B Blissenbach (purodha) Assigned to: Nobody/Anonymous (nobody) Summary: Mark pages for deletion, which cannot deleted rightaway.
Initial Comment: Category.py can delete category pages when the user chooses so, and when having access to an account with admin privileges.
If it does not have an admin account, it currently does nothing, and the information that the page should be deleted is lost.
A better solution was to mark those pages for later deletion by a human admin, by adding {{delete}} or a localized version thereof.
The attached patch is adding "{{delete}} reason ~~~~" plus a horizontal line, and line ends, to categories that category.py cannot delete because it is having no admin privileges. The SWMT suggest to have {{delete}} at least as a redirect in every WMF wiki, but the name would better be localized, too.
Not that, since the main part of the modification is three lines added to wikipedia.py, other bot programs could use it, too. In order to do so, they need to add a parameter when calling wikipedia.delete() like this:
wikipedia.delete(markfordeletion=u'reason')
where u'reason' must not be empty. It is the wikitext to be put into the page behind "{{delete}}".
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1867322...
pywikipedia-l@lists.wikimedia.org