Community Central
Community Central
No edit summary
No edit summary
 
(8 intermediate revisions by 4 users not shown)
Line 8: Line 8:
 
::: <nowiki>{{NUMBEROFFILES}}</nowiki> or <nowiki>{{PAGESINCATEGORY:categoryname}}</nowiki> --{{User:Roguebfl/sig}} 15:26, August 6, 2010 (UTC)
 
::: <nowiki>{{NUMBEROFFILES}}</nowiki> or <nowiki>{{PAGESINCATEGORY:categoryname}}</nowiki> --{{User:Roguebfl/sig}} 15:26, August 6, 2010 (UTC)
 
::::How do I tweak those to only count the files in a certain category? '''[[User:Duskey|Duskey]]'''<small>([[User_talk:Duskey|<span style="color:green;">talk</span>]])</small> 10:41, August 9, 2010 (UTC)
 
::::How do I tweak those to only count the files in a certain category? '''[[User:Duskey|Duskey]]'''<small>([[User_talk:Duskey|<span style="color:green;">talk</span>]])</small> 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. --{{User:Roguebfl/sig}} 10:47, August 9, 2010 (UTC)
  +
::::::That's the thing, there's also articles from other namespaces in the category. '''[[User:Duskey|Duskey]]'''<small>([[User_talk:Duskey|<span style="color:green;">talk</span>]])</small> 20:03, August 10, 2010 (UTC)
  +
  +
:Could be done with [[mw:DPL|DPL]], it can select a set of pages by namespace and category, and you can use %TOTALPAGES% to get the count (documented [http://semeb.com/dpldemo/index.php?title=DPL:Manual_-_DPL_parameters:_Controlling_output_format#format here]). --<span class="sigpic">[[User:M.mendel|◄mendel►]]</span> 20:56, August 10, 2010 (UTC)
  +
::Wikia doesn't have that, right? '''[[User:Duskey|Duskey]]'''<small>([[User_talk:Duskey|<span style="color:green;">talk</span>]])</small> 19:59, August 11, 2010 (UTC)
  +
:::DPL has to be enabled ---- <span class="sigpic">'''[[User:Randomtime|<font color="Orange">Random</font>]][[User talk:Randomtime|<font color="Black">Time</font>]]'''</span> 20:13, August 11, 2010 (UTC)
  +
:::: The recommend against it but the do enable it on request. --{{User:Roguebfl/sig}} 20:31, August 11, 2010 (UTC)
  +
:::::It causes a huge load on the server, right? '''[[User:Duskey|Duskey]]'''<small>([[User_talk:Duskey|<span style="color:green;">talk</span>]])</small> 21:38, August 11, 2010 (UTC)
  +
:::::: It can --{{User:Roguebfl/sig}} 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. --<span class="sigpic">[[User:M.mendel|◄mendel►]]</span> 14:05, August 12, 2010 (UTC)

Latest revision as of 14:05, 12 August 2010

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.
Archive
Note: This topic has been unedited for 4991 days. It is considered archived - the discussion is over. Information in this thread may be out of date. 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)