Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:$wgArticleCountMethod

From mediawiki.org
Translate this page
Languages:
Statistics and content analysis: $wgArticleCountMethod
Method used to determine if a page in a content namespace should be counted as a valid content page (article).
Introduced in version:1.18.0 (r88113)
Removed in version:Still in use
Allowed values:(string) ornull
Default value:'link' (1.24+)
null (1.18-1.23)
Other settings:Alphabetical |By function

Details

Method used to determine if a page in acontent namespace should be counted as a valid content page (article).

Redirect pages willnever be counted as valid content pages (articles).

This variable can have the following values:

  • 'link' - the page must contain a wikilink to be considered valid
  • 'comma' - the page must contain a comma to be considered valid. Due to problems with how this option was implemented, it wasremoved in MediaWiki 1.31. It is now equivalent to'any'.
  • 'any' - all pages (that are not redirects) are considered as valid articles
  • Any other value will have the same result as'any'.

The "wikilink" alluded to above must be an "internal-style" link formed by using [[double brackets]] wiki markup (the link may be provided bytransclusion and need not point to an existing page). Such links create entries in thepagelinks table, which is what actually gets checked to determine whether a page contains wikilinks.

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 themaintenance/updateArticleCount.php script.

See also

Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:$wgArticleCountMethod&oldid=7611988"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp