Page MenuHomePhabricator

{{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

Details

Reference
bz17970

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:32 PM
bzimport set Reference to bz17970.

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.

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.)

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.

here is the patch in Gerrit change
#44683.

trying to fix link... Gerrit change 44683

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.

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