Manual:$wgArticleCountMethod

Details
Method used to determine if a page in a 1>Special:MyLanguage/Manual:$wgContentNamespaces|content namespace should be counted as a valid content page (article).

This variable can have the following values:


 * - the page must contain a wikilink to be considered valid
 * - the page must contain a comma to be considered valid. When recounting with maintenance scripts, this criterion was not actually used, but all non-empty pages (that are not redirects and are in a content namespace) were counted.
 * - all pages (that are not redirects) are considered as valid articles
 * - all pages (that are not redirects) are considered as valid articles


 * Any other value will have the same result as.

The "wikilink" alluded to above must be an "internal-style" link formed by using double brackets wiki markup (the link may be provided by 1>Special:MyLanguage/Help:Transclusion|transclusion and need not point to an existing page). Such links create entries in the pagelinks table, which is what actually gets checked to determine whether a page contains wikilinks.

1>Special:MyLanguage/Help:Links|Other types of links, including "external" links (formed with [single brackets]), interwiki links (to pages on other wikis), category links (which place pages into categories), and file links (which display files) do not count when using the 'link' method.

Changing this variable will not retroactively affect the existing count. To update it, you will need to run the  script.