Module talk:Protected edit request

This is an old revision of this page, as edited by MSGJ (talk | contribs) at 19:17, 27 November 2013. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 11 years ago by MSGJ in topic Protection detection

The {{edit protected}} and {{edit semi-protected}} templates used to set an anchor {{anchor|editprotected}} immediately before the box; this was useful because the lists at User:AnomieBOT/PERTable and User:AnomieBOT/SPERTable contain links to that anchor - see this edit, where the link [[Template talk:Infobox requested#editprotected|request]] is in the second added line. These links are now broken. I would fix it myself, but I can't find my way through the Lua code: there is something that looks like it's supposed to add an anchor, in the form of function box:exportAnchors, but I can't work out why that's not happening. --Redrose64 (talk) 14:07, 24 November 2013 (UTC)Reply

The anchors are working for me from User:AnomieBOT/PERTable and User:AnomieBOT/TPERTable. I changed the template on Template talk:Infobox requested from {{edit protected}} to the new {{edit template-protected}}, which will have caused links in the history of User:AnomieBOT/PERTable to stop working. If you use [[Template talk:Infobox requested#edittemplateprotected|request]] it should work. (Here's the link: request.) Are any of the anchors from the live PERTable lists not working, or is it just ones in the history? — Mr. Stradivarius ♪ talk ♪ 14:31, 24 November 2013 (UTC)Reply
Yes, they appear to be working now. --Redrose64 (talk) 16:37, 24 November 2013 (UTC)Reply

Protection detection

The module also attempts to detect the protection level of the pages used, and if any pages have a different protection level from the function specified it adds the page to Category:Wikipedia edit requests possibly using incorrect templates.

Instead of populating an error category, why not just choose the appropriate function based on the protection level? — Martin (MSGJ · talk) 19:17, 27 November 2013 (UTC)Reply