Community Central

Number of articles in a category from certain namespace

Forum page

19,241pages on
this wiki
Add New Page

This Forum has been archived

Visit the new Forums
Forums: Index Community Central Forum Number of articles in a category from certain namespace
Fandom's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 2355 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

I'm familiar with {{PAGESINCAT}} and <categorytree>, but is there a way to combine them to output the amount of articles in a category from a specific namespace? Specifically I need it to count the number of File: in a category. Duskey(talk) 14:41, August 5, 2010 (UTC)

Special:Statistics and look at the line Uploaded files? --  Roguebfl   talk    contribs    email   16:19, August 5, 2010 (UTC)
Not quite what I was going for, I need the output the number of files in a category. Duskey(talk) 20:09, August 5, 2010 (UTC)
{{NUMBEROFFILES}} or {{PAGESINCATEGORY:categoryname}} --  Roguebfl   talk    contribs    email   15:26, August 6, 2010 (UTC)
How do I tweak those to only count the files in a certain category? Duskey(talk) 10:41, August 9, 2010 (UTC)
Make sure only files are in the category, then replace categoryname in the second magic word with the category's name. --  Roguebfl   talk    contribs    email   10:47, August 9, 2010 (UTC)
That's the thing, there's also articles from other namespaces in the category. Duskey(talk) 20:03, August 10, 2010 (UTC)
Could be done with DPL, it can select a set of pages by namespace and category, and you can use %TOTALPAGES% to get the count (documented here). --◄mendel► 20:56, August 10, 2010 (UTC)
Wikia doesn't have that, right? Duskey(talk) 19:59, August 11, 2010 (UTC)
DPL has to be enabled ---- RandomTime 20:13, August 11, 2010 (UTC)
The recommend against it but the do enable it on request. --  Roguebfl   talk    contribs    email   20:31, August 11, 2010 (UTC)
It causes a huge load on the server, right? Duskey(talk) 21:38, August 11, 2010 (UTC)
It can --  Roguebfl   talk    contribs    email   22:17, August 11, 2010 (UTC)
DPL used to be enabled on wikis so DPLforum (such as this) would work. Enabling does not cause a load on the server per se. Using it can cause loads, depending on what you want it to do. Any type of code that would count the pages in a category/namespace would cause the same load, though. --◄mendel► 14:05, August 12, 2010 (UTC)

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki