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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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