UESPWiki:Administrator Noticeboard/Archives/Updating ProtectSection

A UESPWiki – Sua fonte de The Elder Scrolls desde 1995
Semi Protection
This is an archive of past UESPWiki:Administrator Noticeboard discussions. Do not edit the contents of this page, except for maintenance such as updating links.

Updating ProtectSection

In the year+ since we started using ProtectSection, the only problems we've had with abuse of the protect tags have all been caused by editors inserting text between the opening protect tag and the top of the article -- either adding a ton of white space to push the protected section down from the top of the page, or else enclosing the entire protected section in a pair of formatting tags.

Therefore, I'd like to propose tweaking the ProtectSection code so that if a protect tag appears at the very start of an article, then inserting any text in front of the protect tag is blocked.

I've gone ahead and made the necessary code tweaks to implement this change. While I was at it, I also effectively upgraded the extension to the current version of the extension -- which means that I've fixed some problems related to editing sections (e.g., it's not possible to use the + button to insert a new section at the bottom of a page containing protect tags). I'm going to pass the code along to Daveh right away, because I'm guessing it would save us all a lot of hassle if this change could be in place before the one-day protection of User talk: expires. Nevertheless, feedback is still welcome. --NepheleTalk 21:02, 6 May 2009 (EDT)

Sounds good to me.--Ratwar 02:31, 7 May 2009 (EDT)
Definitely. I don't like having to fully protect talk pages but it's been the only solution in some cases. –RpehTCE 03:23, 7 May 2009 (EDT)
The change has been made. As long as <protect> is the first thing that appears on a page, it should no longer be possible for non-admins to insert anything in front of the tag. And, as mentioned in my last post, a few other problems with the extension should also now be fixed. If anyone notices strangeness, post a followup; otherwise, I'm taking this off my todo list ;) --NepheleTalk 16:47, 1 June 2009 (EDT)