Author: artificial
Description:
To complement {{NUMBEROFADMINS}}, how about a magic word for the number of users in each group?
For example: {{USERSINGROUP:sysops}}, {{USERSINGROUP:bureaucrats}}, {{USERSINGROUP:bots}}.
It's very similar to {{PAGESINNAMESPACE}}, and saves having to create separate magic words (or manually updated templates) for each case. For example, with the new rollback group on Wikipedia, User:Gurch created the {{NUMBEROFROLLBACKERS}} template (http://en.wikipedia.org/wiki/Template:NUMBEROFROLLBACKERS) to implement a count manually (which is what inspired me to post this idea), but templates are always a slightly awkward way of doing it, since they either need a bot or a manual update, and updating them wastes revisions in the database. A nice simple magic word would be perfect.
I was wondering what the overhead of such a magic word would be, but I don't think it would be too much at all; PAGESINNAMESPACE isn't enabled on Wikipedia because it requires a run of every page in the database, but NUMBEROFADMINS is, because it only runs through the much smaller table of group assignments, rather than the table of all users.
Good idea/stupid idea? :)
Version: unspecified
Severity: enhancement