Last modified: 2007-04-24 02:04:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10664, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8664 - Cascading Page Protection system should pass a parameter with number of trascluding pages
Cascading Page Protection system should pass a parameter with number of trasc...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.10.x
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 8575
  Show dependency treegraph
 
Reported: 2007-01-16 21:03 UTC by AnyFile
Modified: 2007-04-24 02:04 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description AnyFile 2007-01-16 21:03:43 UTC
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
)
Comment 1 Aaron Schulz 2007-04-24 02:04:35 UTC
Done in r21510 and r21511.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links