User:YuviPanda/Madam Hut

Codename 'Madam Hut' is a project to make assessment of articles much easier. It was built specifically to help en:Wikipedia:WikiProject India, but the code ought to be general enough for everyone to use. Built on request of en:User:AshLin for the English Wikipedia Community.

Components edit

You can track the code here: https://github.com/yuvipanda/MadamHut

Server redirector script edit

  Done

This is a simple web script that redirects you to a random unassessed article. Super simple, not complicated at all.

A preliminary version of this script is up at http://yuvi.in/MadamHut/r/Unassessed_India_articles/ - will give you a different unassessed WP India article every time you hit it. Its cache of unassessed articles is updated every 15 minutes.

Implementation edit

  1. Get a list of all unassessed articles
  2. Load them in memory
  3. Randomly pick one every time a request comes in, redirect to that

The current version is a super simple flask based python app that stores its 'cache' in disk and uses a cronjob to refresh the 'cache'.

Userscripts for UI edit

A single user script would provide the following functionality to a logged in user:

  1. Show current importance and quality ranking for the article from the project   Done
  2. Show subprojects and their associated importance   Done
  3. Show action items   Done}
  4. Change importance and quality of current article for WP India
  5. Change importance of current article for subproject
  6. Add new subproject and importance
  7. Modify action items

Implementation edit

Usable by placing the following line in your common.js:

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Yuvipanda/MadamHut.js&action=raw&ctype=text/javascript');