Yet another Bot, operated by Florian K. This is just intended to be a development-bot for improvements on User:Morn. Please contact Florian if there's something wrong with this Bot.
This bot - just like Morn - is based on Python Wikipedia Robot Framework.
Please feel free to add more To-Do's at the end. At the moment there are no plans to commit the changes to a common reporistory since those changes are especially for Memory Alpha.
Developement
- improvement to snapshot-20050323 (interwiki-links)
- Add "
interwikiR = re.compile(r'\[\[:?([a-z\-]+):([^\]]*)\]\]')" to wikipedia.py (def getLanguageLinks) and replace the old line to operate [[:de:ARTICLE]] like [[de:ARTICLE]] interwiki-links. -- Florian - Talk 16:59, 30 March 2005 (UTC) - improvement to snapshot-20050323 (replacing / deleting interwiki-links)
- If you have an interwiki-link in a wiki-table the bot will desctruct your table. In order to have a valid table after deleting the link, you must add a nextline to the text. I altered wikipedia.py within "def removeLanguageLinks" as follows:
if code in site.family.langs:
# We found a valid interwiki link. Remove it.
text = text[:match.start()] + text[match.end():]
text = text + '\r\n'
# continue the search on the remaining text
index = match.start()
else:
- configuration
- You should configure (config.py)
interwiki_text_separator = ''. Same for category_text_separator. -- Florian - Talk 09:07, 31 March 2005 (UTC)
- new feature to snapshot-20050323 (category.py)
- Implemented a sortorder for episodes, not final. Features german MA-problems. All (in)definite articles wille be set to the end and umlauts and accents will be replaced with normal vocals to maintain the natural sortorder. You can use parameter "-episode" to use this feature, e.g. "category.py add -episode". Up-to-date code can be found here. TODO: english articles; better distinction between "-person" and -"episode"; performance. -- Florian - ✍ talk 14:59, 10 April 2005 (UTC)
To-Do
Bot will destruct wiki-tables when replacing interwiki-links; interwiki-links at end of page prefered.See "Development" above -- Florian - Talk 08:36, 31 March 2005 (UTC)- Request: Categorize all (non-redirect) articles beginning with the term "List of..." as part of Category:Lists -- Captain Mike K. Barteltalk 16:32, 26 April 2005 (UTC)
- Request: Categorize all names in the list of Humans as part of Category:Humans (is it possible to set the sort key up, last name first?), likewise for Vulcans into Category:Vulcans -- Captain Mike K. Barteltalk 01:45, 26 May 2005 (UTC)
Request: check all image pages for indented use of the copyright template (":{{image paramount}}") and change to an unindented use with a "newline" in front of it. Eventually also check for remaining use of the obsoleted "msg:" prefix and remove that (See Template talk:Image paramount). Thanks. -- Cid Highwind 15:09, 26 December 2005 (UTC)I finally had the time to get my own bot working and made that its first task. Thanks anyway... ;) -- Cid Highwind 18:59, 27 December 2005 (UTC)