The idea is to let people sign up for recurring SuggestBot recommendations on their WikiProject page by setting 'suggestbot': true on wikiproject.json (or through a template if they insist) and then SuggestBot make suggestions on a regular basis. To fit with the WPX UI, the output should look like this.
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Declined | Harej | T106840 Implement submodules | |||
Declined | yuvipanda | T120902 Admin interface for WPX UI | |||
Open | None | T106868 Implement standardized WikiProject Features | |||
Resolved | Nettrom | T106865 Implement SuggestBot recommendations as a WikiProject module |
Event Timeline
I have written a Lua module that can translate a set of suggestions into the necessary template calls: https://en.wikipedia.org/wiki/Module:User:SuggestBot/WikiProjects
I based my code on the formatting used on https://en.wikipedia.org/w/index.php?title=Wikipedia:WikiProject_Ghana/Tasks/SuggestBot&oldid=671626109
An example "invoke"-call with a bunch of suggestions (based on my own suggestions from SuggestBot) should be available on: https://en.wikipedia.org/w/index.php?title=User:Nettrom/sandbox/templates&oldid=676420470 As far as i can tell, the formatting looks correct compared to the WP Ghana formatting, but feel free to change the module or bug me if the formatting isn't right.
I have also tested the randomisation w/shorter lists when the page with the module call is transcluded, as shown here: https://en.wikipedia.org/w/index.php?title=User:Nettrom/sandbox/suggestions&oldid=676420626
I'll move on to finishing the code that SuggestBot will run to update the invoke-call. Will let you know when I can test that and have code in our GitHub repository that can be reviewed.
Yes, there is news, I have working code!
I have so far only let the bot edit in my userspace, see for instance https://en.wikipedia.org/w/index.php?title=User:Nettrom/sandbox/templates&diff=686705092&oldid=686703920 Things seem to be working, but there might be bugs left to iron out. Am running a longer test now to see if there are unexpected issues.
One question regarding what pages SuggestBot should edit: I noticed a project has a sub-page "/Tasks/SuggestBot". Can the bot assert that all projects will be expected to have that page, so it can post the suggestions there?
Great! I've got seven WikiProjects that are due to have their suggestions updated by SuggestBot. I'll go check them out and make sure things are ready, then have SuggestBot make a run to see if everything works okay.
The projects are:
- Women's Health
- Occupational Safety and Health
- Ghana
- Cognitive science
- Hampshire
- Cannabis
- Evolutionary biology
The updates are complete, and I've done some manual cleanup, removed the previous task suggestions. Looking forward to learning what project members think about the tasks, hopefully many of them will be useful!
@Harej: No, looks like everything's working! There's a little bit of work to set up the automation on my end, but that doesn't need to be tracked here, so I'm closing this task.