7 May 18:29
Re: Is there a way to control edit rights for talk pages differently from content pages?
From: Thomas Dalton <thomas.dalton@...>
Subject: Re: Is there a way to control edit rights for talk pages differently from content pages?
Newsgroups: gmane.org.wikimedia.mediawiki
Date: 2008-05-07 16:29:26 GMT
Subject: Re: Is there a way to control edit rights for talk pages differently from content pages?
Newsgroups: gmane.org.wikimedia.mediawiki
Date: 2008-05-07 16:29:26 GMT
On 07/05/2008, Thomas Dalton <thomas.dalton@...> wrote: > 2008/5/7 Daniel Barrett <danb@...>: > > > How about a foreach loop through the array of namespaces, then change the exceptions afterward? > > > No point - the exceptions list would be just as long as doing it the > other way around. There's a talk namespace for every non-talk one. As always, the idea comes to me just as I click send... I think non-talk namespaces generally have even IDs and talk namespaces odd ones. If that really is the case, then you can do a foreach loop and check if the id is even or odd (using "foo % 2 == 0" or whatever it is in php) and set the protection accordingly.
RSS Feed