Forum:Changing the total pages number

At the top of every page of the wiki is the total number of articles, for this wiki,.

However, this figure includes disambiguation articles. Disambiguation articles aren't real content articles. So on this wiki there happens to be. Now I've composed code that displays the total article number, takes the disambiguation pages number from it.

But I want this number to replace the number displayed on every article in the top-right.

Even if I hurt my head trying to work out how to replace the number there through JS, I doubt it would be possible for me to then put WikiCode in there since JS won't allow that.

I also considered that there may be a variable in a page which decides whether it is included in the article count or not but I don't think there is. I imagine it's all done by namespace. Which brings up the idea that if disambigs were moved into their own namespace, that namespace wouldn't have to be counted, but since Search doesn't allow for quickjumping to namespaces if no article in mainspace exists with the same name anymore, then that's not feasible.

So is it possible to have the totalarticle number in the top-right replaced with another dynamic number? And would this be breaking one of wikia's policies? JBed 19:37, December 27, 2011 (UTC)

--
 * You can change the number with MediaWiki:Oasis-total-articles-mainpage. Also, doing this is not against the ToU. --
 * Edit: Try changing the text within the tags to . This way, it won't include disambiguation pages.
 * Oh, well that was easy. Thanks. ;) I thought WikiCode wouldn't work there. JBed 20:40, December 27, 2011 (UTC)
 * WikiCode works on some MediaWiki pages, and doesn't on others. Luckily, it works where you need it. Otherwise, you would be forced to change the displayed number of articles via js. ;) --