Page MenuHomePhabricator

Make project start bot update Mall:Projektid and Mall:Projektnamn
Closed, ResolvedPublic

Description

The current mechanism is for Mall:Projektnamn and Mall:Projektid to be manually updated based on formatting done in the Projekt 2018-2021 (nummer samt namn (engelska och svenska)) file.

Since this file is already loaded by the bot it should be possible to
a) generate the same formatting
b) injecting it into the right place in the existing pages
c) ensure no duplicate entries are added (since the same project might have been added a previous year)

Event Timeline

Lokal_Profil renamed this task from Make project start bot update Mall:projektid and Mall:Projektnamn to Make project start bot update Mall:Projektid and Mall:Projektnamn.Dec 18 2020, 1:17 PM

Adding an <!- inject here-> comment to search avd replace on should allow for updates. Subtracting the set of existing lines from the prospective ones should handle the risk of duplicates

@Alicia_Fagerving_WMSE When you have some time, could you please have a look and see if you could review this task?

This is mostly separate code for two new templates, but there is also a bit of cleanup. Let me know if you want me to explain anything,

Took a look at this since someone was having an issue due to these templates being missing

Great, but the update of the templates has not yet been done?

I manually updated the templates since T297895: Write only to certain subpages on the wiki is needed to do it with the bot.