GSoC/GCI Archive
Google Code-in 2013 Wikimedia

Pywikibot featured.py improvement

completed by: Theo Patt

mentors: Strainu

PyWikibot [1] is a Python-based framework to write bots for MediaWiki. There are currently 2 versions of pywikibot currently used: - version 1.0 (also known as pywikibot-compat) is the legacy version - version 2.0 (also known as pywikibot-core) is a rewrite of the original framework, focusing solely on MediaWiki wikis with an API (version 1.14 or newer) and offering an improved internal architecture.

featured.py is a script that adds templates that mark articles as "good" or "quality". This task requires that when a quality article template is added, all good article templates are removed. This is necessary to avoid editor confusion. For example:

- {{Link GA|en}}
+ {{Link FA|en}}

In order for this task to be considered completed, your patch needs to be reviewed and merged in the repository. Please allow at least 12h for this to happen. See also the bug report at [6]

After you have successfully claimed this task in Google Melange please do use the bug report [6] in Bugzilla for communication instead of Google Melange. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list and the #pywikipediabot IRC channel.

Students are required to read Wikimedia's general instructions first.

[1] https://www.mediawiki.org/wiki/Manual:Pywikibot

[2] https://www.mediawiki.org/wiki/Manual:Pywikibot/2.0/Conversion

[3] https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n_conversion

[4] https://tools.wmflabs.org/gerrit-patch-uploader/

[5] http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Gerrit

[6] https://bugzilla.wikimedia.org/show_bug.cgi?id=55037