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]- Get a list of all unassessed articles
- Load them in memory
- 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:
- Show current importance and quality ranking for the article from the project Done
- Show subprojects and their associated importance Done
- Show action items Done}
- Change importance and quality of current article for WP India
- Change importance of current article for subproject
- Add new subproject and importance
- 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');