Re: Protection expiry

Bartosz Dziewoński <[email protected]>
Newsgroups gmane.science.linguistics.wikipedia.technical
Message-ID <CAA-yUx30HUZ7_WwGh4kCHoMfWqsB8XoobernSN73GX619kbo1g@mail.gmail.com>
By the way, MediaWiki has recently gained the ability to display
protection indicators by itself, without the need to keep templates in
sync with the page protection:
https://www.mediawiki.org/wiki/Manual:$wgEnableProtectionIndicators

If your templates are not too complex, it's possible you could enable
that option on your wiki and replace the templates. The appearance of
the indicators can be customized with some MediaWiki: messages and
site CSS, per the docs on that page.

Among Wikimedia wikis, the option is currently only enabled on
https://az.wikipedia.org/ (https://phabricator.wikimedia.org/T371440),
so you can have a look at the protected pages there to see how it
works in practice.

On Tue, 7 Oct 2025 at 15:07, 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/



-- 
Bartosz Dziewoński
_______________________________________________
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.