Thanks a lot for the response John! Unfortunately the module itself assumes the title of the page is known, which is exactly what I'm missing. However, if nothing better comes up, I'll just use the tracking category for unprotected pages. Probably not perfect, but better than what I had.
Strainu În mar., 7 oct. 2025 la 17:04, John <[email protected]> a scris: > Take a look at enwiki’s Module:Protection banner. It has some code for this > > On Tue, Oct 7, 2025 at 9:07 AM Strainu <[email protected]> wrote: > >> Hi all, >> >> I'm trying to automate wrangling protection templates. Adding them is >> trivial, but I'm having issues with the removal. The best I have is go >> waaay back on protections, check the expiration date and see if the page is >> still protected. But that's both expensive and useless for long-term >> protections. >> >> Is there any event/notification/anything at all available through the API >> that would allow me to know which pages' protection expired recently >> without keeping a list of protected pages? >> >> Thanks, >> Strainu >> _______________________________________________ >> Wikitech-l mailing list -- [email protected] >> To unsubscribe send an email to [email protected] >> >> https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/ > > _______________________________________________ > Wikitech-l mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
_______________________________________________ Wikitech-l mailing list -- [email protected] To unsubscribe send an email to [email protected] https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
