Last modified: 2009-08-26 00:14:58 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 T22398, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20398 - ParserFunction to count number of occurrences
ParserFunction to count number of occurrences
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/Wikipedi...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-26 00:08 UTC by king.of.hearts.wiki
Modified: 2009-08-26 00:14 UTC (History)
1 user (show)

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


Attachments

Description king.of.hearts.wiki 2009-08-26 00:08:38 UTC
Currently, the AbuseFilter can count the number of times a string appears in a haystack (via count) and the number of times a regex appears in a haystack (via rcount). I think that it would be useful to have a ParserFunction that could do the same. In particular, on the referenced RFPP page, we could find the difference between the number of occurrences of "{{la|" and the number "{{RFPP|" in order to report an admin backlog when appropriate.
Comment 1 Chad H. 2009-08-26 00:14:58 UTC
Already exists in ParserFunctions as {{#count}} with $wgPFEnableStringFunctions enabled.

Getting that enabled on WMF is bug 6455.

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


Navigation
Links