Page MenuHomePhabricator

{{PROTECTIONLEVEL:...}} does not work when deleting
Closed, DeclinedPublic

Description

Author: happy.melon.wiki

Description:
On the deletion confirmation dialogue, the {{PROTECTIONLEVEL:...}} magic word is not defined.


Version: 1.15.x
Severity: minor

Details

Reference
bz18359

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:36 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz18359.
bzimport added a subscriber: Unknown Object (MLST).

Sorry, can you explain the problem?

From https://www.mediawiki.org/wiki/Help:Magic_words
{{PROTECTIONLEVEL:action}}
Outputs the protection level (e.g. "autoconfirmed", "sysop") for a given action (e.g. "edit", "move") on the current page or an empty string if not protected.

How is this relevant in a dialog wen you are deleting a page?

happy.melon.wiki wrote:

I believe the premise is that calling {{PROTECTIONLEVEL}} in [[MediaWiki:Confirmdeletetext]] should give the status of the page in question (which is perfectly reasonable, enwiki uses that to pop up an alert "the page you're about to delete is protected; are you sure you're not doing something stupid?!"). In which case this is actually WORKSFORME as that usecase works fine.