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 as it allows 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)
 * Cool, thanks. Pretty sure we don't have it, but I'll look into it.  What do you mean by "central"? Psychoadept (talk) 21:50, August 22, 2012 (UTC)


 * [[File:Wiki-wordmark.png]] :)
 * As it turns out, a list of namespaces is available.
 * 

namespace = Main mode=userformat resultsheader=%TOTALPAGES% + namespace =Admin_Central mode=userformat resultsheader=%TOTALPAGES% + namespace =Admin_Support mode=userformat resultsheader=%TOTALPAGES% + namespace =Forum mode=userformat resultsheader=%TOTALPAGES% + namespace =User_blog_comment mode=userformat resultsheader=%TOTALPAGES% </DPL>+ namespace =User_blog mode=userformat resultsheader=%TOTALPAGES% </DPL> =  namespace = Main namespace =Admin_Central namespace =Admin_Support namespace =Forum namespace =User_blog_comment namespace =User_blog mode=userformat resultsheader=%TOTALPAGES% </DPL> and NUMBEROFARTICLES = - It doesn't match, because NUMBEROFARTICLES requires the page to have a comma -452  21:53, August 22, 2012 (UTC) (edited: 08:43, August 23, 2012 (UTC))