Adam, Thanks for the response. I haven't heard of the snoopy class, so I will look into that.
Yes, I do agree that if I am editing the page it is easiest to just click protect and move on. The idea is, I want the tag itself to protect the page (probably via an option) so that I can drop it on my wiki and not have to do it manually. This really is more an exercise in getting comfortable with MediaWiki extension writing, as I will most likely end up writing more. There is a project I will be working on in the next few weeks that would benefit greatly from such an ability, so maybe I can work something out. I'll be sure to post on the list if I do. Vadtec On 6/30/2010 11:41 AM, Adam Meyer wrote: > Im really not sure. > > But upi may be able to protect pages through the API. If that is true, you > could make an extension. > The problem is that the protect page comment requires admin access. So I > guess you could have it access the page as you or a bot and protect the page. > > If you know PHP, you can also use the snoopy class to act as a bot and > protect the page. > > > If you are in the page editing it to add the extension/template... couldn't > you just then protect the page? (may be less time than making a new extension) > > > > On Jun 30, 2010, at 12:35 PM, Vadtec wrote: > >> I've posted this question twice before without so much as a courtesy >> response of >> "Sorry, we don't know." I'd really appreciate some help with this, as I have >> not >> been able to track down any information on protecting pages (aside from >> "click >> protect at the top of the page") and asking in the IRC chan on freenode >> usually >> goes unanswered as well. >> >> -------------------------------------------------------------------------------- >> >> Greetings all, >> >> Is it possible for an extension to set a page as "protected"? I have a tag >> that >> displays help info for my extension, I'd like to drop it in a page, and have >> the >> tag set the page as protected via a parameter. The idea is to allow the tag >> to >> display its output but have the page be protected from editing. >> >> Thanks for any advice, much appreciated. >> >> - Vadtec >> >> >> >> >> >> _______________________________________________ >> MediaWiki-l mailing list >> [email protected] >> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > > > _______________________________________________ > MediaWiki-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
signature.asc
Description: OpenPGP digital signature
_______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
