{{PROTECTIONLEVEL}} should be able to return the status for pages besides the one it's on
Closed, ResolvedPublic

Description

Author: brad9626

Description:
For example: {{PROTECTIONLEVEL:action|Some other page}} would return some value depending on the protection status of "Some other page".


Version: unspecified
Severity: enhancement

bzimport set Reference to bz17970.
bzimport created this task.Via LegacyMar 13 2009, 7:43 PM
Mr.Z-man added a comment.Via ConduitMay 13 2009, 7:31 PM

I considered doing them when implementing it initially, but wasn't sure how useful it would actually be. This would also make it an "expensive" parser function.

MSGJ added a comment.Via ConduitMay 13 2009, 8:30 PM

I think it would be useful, especially on the talk page where it would allow conditional display of protection templates, and also allow more efficient ways to deal with editprotected requests. (Quite often people add the template to unprotected or semiprotected pages.)

bzimport added a comment.Via ConduitJan 18 2013, 7:05 PM

p.selitskas wrote:

(In reply to comment #1)

I considered doing them when implementing it initially, but wasn't sure how
useful it would actually be. This would also make it an "expensive" parser
function.

We have a static cache for titles. Anyway, here is the patch in Gerrit change #44683.

Ciencia_Al_Poder added a comment.Via ConduitJan 18 2013, 7:07 PM

here is the patch in Gerrit change
#44683.

trying to fix link... Gerrit change 44683

bzimport added a comment.Via ConduitJan 18 2013, 8:13 PM

p.selitskas wrote:

(In reply to comment #4)

> here is the patch in Gerrit change
> #44683.

trying to fix link... Gerrit change #44683

Thank you! Merged in I4c60a5f2.

duplicatebug added a comment.Via ConduitFeb 10 2013, 1:34 PM

Some one should look at bug 34039, which can decrease the usability of this new feature.

Add Comment