Last modified: 2014-06-07 21:30:45 UTC
These templates are mutually exclusive: [[MediaWiki:Cascadeprotectedwarning]] is displayed when the user does not have the ability to edit through the protection, [[MediaWiki:Cascadeprotectedwarning]] is displayed when they can edit. [[MediaWiki:Cascadeprotected]] takes two parameters, $1 being the number of locking pages, and $2 being a list of links to those pages. [[MediaWiki:Cascadeprotectedwarning]], on the other hand, only takes the first parameter (number of locking pages), and hardcodes the display of the list of pages underneath. This means that it is, for instance, impossible to apply ids or styles to the whole section. [[MediaWiki:Cascadeprotectedwarning]] should be modified to define the display of both the message and the list.
Volunteered by Amir during bug triage.
I read the relevant code and i think that i have several options for fixing this, but i wonder:
1. Is there a reason to keep the two messages? Maybe they can be merged? They are almost identical in every regard.
2. Is there a reason to keep the pages list as a parameter?
Happy-melon: Can you answer comment 2, please?
1. Although the messages appear similar in the default installations, many wikis have heavily customized each of them in different ways. I don't think it would be beneficial to merge the messages.
2. Many wikis display the list within custom code, which wouldn't be possible without it being a parameter.