Page MenuHomePhabricator

Feature request: usable {{NUMBEROFFILES}} variable
Closed, ResolvedPublic

Description

Author: dbenbenn

Description:
There used to be a NUMBEROFFILES variable, used on the Commons Main Page and
other places. It no longer works.


Version: unspecified
Severity: enhancement
URL: http://commons.wikimedia.org/wiki/Main_Page

Details

Reference
bz4324

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:59 PM
bzimport set Reference to bz4324.
bzimport added a subscriber: Unknown Object (MLST).

avarab wrote:

It has been disabled on Wikimedia and will probably be removed from the source
tree, the implementation is too slow.

dbenbenn wrote:

Alright, changing this bug to an enhancement request.

Since the Commons is all about images, it would be really nice to have a way to
report how many images we have, equivalent to the NUMBEROFARTICLES variable on
Wikipedia. In principle, it's possible to implement this efficiently:
Special:Upload simply increments a variable, and Special:Delete decrements it.

avarab wrote:

Product => Wikimedia web sites, it's still in the tree, just not on Wikimedia

It might be nice to maintain separate counters for different file types.

wiki.bugzilla wrote:

What about NUMBEROFMEDIAFILES? ;-)

dbenbenn wrote:

Thanks, Bdk. Wierd that the variable name would be changed, breaking all pages
that used the old name ...

dbenbenn wrote:

Er, never mind. That's just
http://commons.wikimedia.org/wiki/Template:NUMBEROFMEDIAFILES, which is nearly
worthless. Having an actual counter would be much better.

This has been usable for some time now. Marking FIXED.