This is a proposed bot created by User:Pyramidhead to change episode titles across the wiki from the current Day X Y:00am-Z:00am to the more correct (as used on Imdb, Wikipedia, et al) Day X: Y:00am-Z:00am.
Some other things I plan to do:
- General style touch-ups (Italicizing 24, Redemption, book titles, graphic novel titles; replacing A.M./a.m./AM with am/pm; etc - maybe episode quotes?)
- Moving all SeasonX templates to the bottom on each episode page
- etc.
Contents
Progress[edit | edit source]
01/03/10, 01:03 PST: Moved all Season 1 pages, quote pages, image categories, replaced episode titles across wiki
01/03/10, 02:50 PST: Moved all Season 2 pages, quote pages, image categories, replaced episode titles across wiki
01/03/10, 04:09 PST: Moved all Season 3 pages, quote pages, image categories, replaced episode titles across wiki
01/03/10, 13:47 PST: Moved all Season 4 pages, quote pages, image categories, replaced episode titles across wiki
01/03/10, 15:37 PST: Moved all Season 5 pages, quote pages, image categories, replaced episode titles across wiki
01/03/10, 17:25 PST: Moved all Season 6 pages, quote pages, image categories, replaced episode titles across wiki
01/03/10, 17:25 PST: Moved all Season 7 pages, quote pages, image categories, replaced episode titles across wiki
01/03/10, late: Moved all season nav templates to bottom of episode pages
01/04/10, 12:30: Added icons to all actor pages missing them
Instructions[edit | edit source]
Installation[edit | edit source]
- First, flag this bot so it won't clutter up the recent activity list
- Download all of these: Python 2.6.4, Pywikipedia (grab one of the nightly releases), Extra files you'll need
- Install Python, then unzip everything in Pywikipedia and the extra zip file into the same directory
- Move 24_family.py into the families directory
- Open the command prompt, navigate to the directory containing PYTHON.py (most likely C:\Python26 on Windows), enter:
python login.py
and enter password
Replacing titles[edit | edit source]
The command for replacing the titles in all pages in a particular namespace:
python replace.py -start:namespace:! -fix:colon -always
where namespace is just the name, no quotes. If you're feeling brave, then
python replace.py -xml -fix:colon -always or python replace.py -start:! -fix:colon -always
should replace it for every page on the wiki. I'd recommend starting off doing it by category or on a single page, using:
python replace.py -cat:category -fix:colon -always or python replace.py -page:pagename -fix:colon -always
just to make sure it works like it should. For reference, -fix:colon refers to a custom replacement element in the file user-fixes.py.
Moving pages[edit | edit source]
Episode guides[edit | edit source]
To move all episode pages to their new homes:
python movepages.py -pairs:pairs.txt
You'll be prompted to enter your own password once. Pairs.txt is a text file containing the old and new names in pairs. I'd recommend testing this first by entering
python movepages.py -from:Day_1_12:00am-1:00am -to:Day_1:_12:00am-1:00am or python movepages.py -pairs:pairstest.txt
which should just move Day 1 12:00am-1:00am.
Quote pages[edit | edit source]
python movepages.py -pairs:quotes.txt or python movepages.py -pairs:quotestest.txt
Image categories[edit | edit source]
Unfortunately, I don't believe there is a way to move categories en masse, other than entering the commands for each move into the shell. The basic command is
python category.py move -from:'Images (Day 1 12:00am-1:00am' -to:'Images (Day 1: 12:00am-1:00am)' -batch
This will move everything in the from category to the to category and automatically delete the first one when it's emptied. Categories.txt contains all 168 such commands separated by semicolons; try putting them in a few at a time just to be safe.
Again, I have had no opportunity to test the moving part of this project, so I make no guarantees. --Movebot 22:14, December 15, 2009 (UTC)