{{NUMBEROFARTICLES}} is a Magic word that returns the number of all articles. By default, a new page in the main namespace (the one without a prefix like "User:" or "Talk:") will be counted as an article in the statistics and the {{NUMBEROFARTICLES}} variable (on this project it currently gives 751) if it contains at least one wiki link (e.g. the text "[[Main Page]]"). Which namespaces are used can be controlled by $wgContentNamespaces

Before this count was used, an article was counted if it contained at least one comma. That method proved to be unreliable in many languages where the comma does not have much or any significance (see meta:Article count reform for the process which led to this outcome). However, the comma count is still common in the wiki world; see, e.g., MeatBall:BiggestWiki.

Changing the MediaWiki article count settings Edit

Before MediaWiki 1.18, the method used to count articles was determined by the configuration variable $wgUseCommaCount (now deprecated). Since 1.18, the variable $wgArticleCountMethod is used.

In DefaultSettings.php, the default setting for $wgUseCommaCount is false and for $wgArticleCountMethod null, which means {{NUMBEROFARTICLES}} counts all pages in the main name namespace that are not a redirect and contain at least one wiki link. This includes stubs containing a link, and disambiguation pages. To change to a different method, use one of the following approaches.

Template:MW 1.18

MW 1.18 and after Edit

MW 1.17 and before Edit

Template:MW 1.17

Updating article count statistics Edit

If you want to recount your statistics to reflect the change to comma-based "good article" count (that doesn't happen automatically), run updateArticleCount.php from a command line.

Language: English