Re: Protection expiry

Strainu <[email protected]>
Newsgroups gmane.science.linguistics.wikipedia.technical
Message-ID <CAC9meRJRF14-8f3ufN3RamYmzhxZET367EhNyMYg9Te3rt-YUw@mail.gmail.com>
Thank you all for your responses, as usual here I learned a lot! The
tracking category seems to work just fine, so I'll stick to that for the
moment.

wgEnableProtectionIndicators
<https://www.mediawiki.org/wiki/Manual:$wgEnableProtectionIndicators> seems
like a godsend for small wikis, as it looks very configure-and-forget to
me. However, for Wikipedias that took their templates from enwiki it's
probably too simple, since these versions sometime exapand into banners
instead of locks, have reasons etc.

Have a good weeked folks!
  Strainu

În vin., 10 oct. 2025 la 20:34, Bartosz Dziewoński <[email protected]> a
scris:

> 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/

_______________________________________________
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.