Manual talk:Pywikibot/delete.py

From MediaWiki.org
Jump to navigation Jump to search
The following discussion has been transferred from Meta-Wiki.
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).

Error message[edit]

I get this message:

Getting a page to check if we're logged in on odessa:en
Retrieving MediaWiki messages for odessa:en
Parsing MediaWiki messages
ERROR: MediaWiki_Msg caused error Error URL: /wiki/index.php?title=Special:Allmessages&ot=html. Dump MediaWiki_Msg_odessa_en__Sun_Jan_07_22-05-27_2007.dump created.


Any suggestions? Odessaukrain 02:37, 8 January 2007 (UTC)

Policy[edit]

I wonder what policies different Wikimedia projects (mostly, enwiki) have for using this, and other things that require sysopnames to be set. Enwiki has no bots with admin flag, but are people using this with their regular admin account? Any links? /skagedal... 20:44, 4 February 2007 (UTC)

file parameter[edit]

i've used the bot with the -file parameter but nothing happens on my wiki.

the pages (which are all redirects) are still there

what's the syntax of the textfile, i used one article name (without " ' or something like that) per line

File Format[edit]

I am having the same file problem, I've tried with and without delimiters and the script still does nothing, no error message, just ends. 82.38.112.222 11:11, 18 August 2007 (UTC)

The file should be a numbered wiki list of wiki links. Each line should start with # symbol, followed by a wiki link to the page you want to delete:

# [[Delete this]]

# [[Delete that]]

# [[etc.]]

--Svemir Brkic 03:14, 4 September 2007 (UTC)

Pages are not deleted but template delete is added[edit]

Hello everybody, i used tried to use this script for several pages with an admin user account on dewikisource. But instead of really deleting the pages just template delete has been added.[1]. This does not help me. Can anyone help? --Aschroet (talk) 08:18, 8 February 2017 (UTC)

Billinghurst, following your suggestion at https://phabricator.wikimedia.org/T157535. How can i do a mass deletion? --Aschroet (talk) 11:17, 10 February 2017 (UTC)
Admin function s:en:MediaWiki:Gadget-massdelete.js, you should be able add it as a local gadget, or just for your use. — billinghurst sDrewth 11:40, 10 February 2017 (UTC)
mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:Gadget-massdelete.js&action=raw&ctype=text/javascript')
Billinghurst, i added the link to my common.js. Where can i find the link to start a mass deletion? --Aschroet (talk) 10:22, 11 February 2017 (UTC)
@Aschroet: at Special:MassDelete. You can reference s:en:Special:Preferences (then the gadget page) for how we implemented it. — billinghurst sDrewth 11:06, 11 February 2017 (UTC)