手册:$wgArticleCountMethod

This page is a translated version of the page Manual:$wgArticleCountMethod and the translation is 71% complete.
Outdated translations are marked like this.
统计和内容分析: $wgArticleCountMethod
方法用于确定内容名称空间中的页是否应算作有效的內容頁面(條目)。
引进版本:1.18.0 (r88113)
移除版本:仍在使用
允许的值:(字符串)或null
默认值:'link' (1.24+)
null (1.18-1.23)

详情

此方法用于确定一个内容名字空间的页面是否被会计为有效的内容页面(条目)。

重定向页面不论使用哪种都不会被计为有效的内容页面(条目)。

此变量可以是以下值:

  • 'link' - 页面包含一个维基链接就会被计为有效
  • 'comma' - 页面包含一个逗号就会被计作有效。 此方法已在MediaWiki 1.31中被移除。 It is now equivalent to 'any'.
  • 'any' - 所有页面(重定向页面除外)都会被计作有效页面
  • 其他所有的值都会和'any'有一样的结果。

The "wikilink" alluded to above must be an "internal-style" link formed by using [[double brackets]] wiki markup (the link may be provided by 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.

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

参见