Forum:Count pages in main namespace

Does anyone know a way to easily count the non-redirect pages in ONLY the main namespace? Or at least to count the redirects, which can be subtracted from the total page count.

Thanks! Psychoadept (talk) 13:00, August 16, 2012 (UTC)


 * Short answer: gives . :)
 * Long answer: you might be interested in reading http://www.mediawiki.org/wiki/Manual:Article_count and http://www.mediawiki.org/wiki/Help:Magic_words -452 00:45, August 17, 2012 (UTC)


 * Except that some of the namespace magic words don't seem to be working. -- 21:32, August 17, 2012 (UTC)


 * NUMBEROFARTICLES appears to be working fine, and addresses the question asked.
 * It's very possible that some magic words are disabled on wikia for any number of reasons - which are you having trouble with? -452 21:59, August 17, 2012 (UTC)

NUMBEROFARTICLES doesn't work for this because we have three content namespaces, and it will count all of them. PAGESINNS doesn't work because it includes all the redirects. Psychoadept (talk) 22:47, August 17, 2012 (UTC)
 * Ah, I see. Yes, with that additional information, NUMBEROFARTICLES is definitely not what you need. -452 09:11, August 22, 2012 (UTC)
 * For the record, this is the solution I came up with:
 * Which is possible because all the pages in the other namespaces are automatically categorized via template. Psychoadept (talk) 21:23, August 22, 2012 (UTC)
 * Here's another solution, if you have DPL enabled (I recommend it, it enables many great things):

 namespace = Main mode=userformat resultsheader=There are %TOTALPAGES% pages in Main. 
 * Results:
 * 

namespace = Main mode=userformat resultsheader=There are %TOTALPAGES% pages in Main. 
 * 

namespace = Help mode=userformat resultsheader=There are %TOTALPAGES% pages in Help. 
 * 

namespace = Forum mode=userformat resultsheader=There are %TOTALPAGES% pages in Forum. 
 * (I'm guessing that central counts all pages as content pages) -452 21:39, August 22, 2012 (UTC)