Page MenuHomePhabricator

Make browsing template on project pages dynamic
Closed, ResolvedPublic

Description

At the top of project pages, there are links to previous and following project, if these exist. These are added through the template [[ https://se.wikimedia.org/wiki/Mall:Bl%C3%A4ddra | Bläddra ]]. If possible, this template (or a new one) should show links for projects if they are regularly named. E.g. if the project page is for "Projekt:Buggrapportering 2016", the should be links to "Projekt:Buggrapportering 2015" and/or "Projekt:Buggrapportering 2017".

It should be possible to manually override the links, in case a project changes name from one year to the next.

Event Timeline

I've written a module that checks if there are pages that have the same name as the current page, except that a number at the end is one more or less, and adds relevant links.

There's no way to manually override the links yet. Also, maybe it should be wrapped in a template, as is suggested in the help. Otherwise, you need to supply a function name, which may be confusing.

Mall:Bläddra now uses the module and automatically adds links for previous and next years, when those pages exist. It can still be used as normal, i.e. specifying link with parameters.