Page MenuHomePhabricator

Cascading Page Protection system should pass a parameter with number of trascluding pages
Closed, ResolvedPublic

Description

Author: anyfile

Description:
It would be interesting if a parameter is passed to system messages

  • MediaWiki:Cascadeprotectedwarning
  • MediaWiki:Cascadeprotected
  • MediaWiki:Protect-cascadeon

If a parameter is passed to these system messages with the number of pages
listed below (the number of the page that are rcascading protected and that
include the target page), then these system messages could be written in such a
way, using the {{plural:}} function, to adjust the grammar to be singular or plural.

For instance in English, two different messages could be obtain

... because it is included in the following pages, which are protected ...
... because it is included in the following page, which is protected ...

using the following code
... {{plural:$1|because it is included in the following page, which is
protected|because it is included in the following pages, which are protected}}

(of course other wiki-code could by used and it would also possible to print the
number of the pages)

(for the use of plural see bug # 5005 5006 and
http://meta.wikimedia.org/wiki/Help:Magic_words#Language-dependent_word_conversions
)


Version: 1.10.x
Severity: enhancement

Details

Reference
bz8664

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:31 PM
bzimport set Reference to bz8664.
bzimport added a subscriber: Unknown Object (MLST).