Manual:Article count/zh

是一个用于返回内容页面数量的魔术字，在本Wiki中这一魔术字返回为.

默认情况下，一个在主名字空间的新页面（不包括类似"User:" 或 "Talk:"的前缀）将会在统计页面和 变量中被计算为内容页面. 只要该页面包含至少一个维基链接（例如：文本“ Main Page ”中创建了一个包含一个标题为“Main Page”维基链接）且不是一个重定向页面.

哪些名字空间可以被记为内容页面可以通过控制.

在这个计数被使用之前，一个页面也会被计入只要它包含至少一个标点符号.

That method proved to be unreliable in many languages where the comma does not have much or any significance (see 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., BiggestWiki.

更改MediaWiki条目计数设置
Before, the method used to count articles was determined by the configuration variable which was at the same time deprecated and later removed in.

Since 1.18, the variable is used.

In, the default setting for is "link", which means   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.

In recent versions of MediaWiki, the existence of links is checked by consulting the database table, so it includes links provided by the transclusion of templates or other pages. Special links such as category links (which place pages into categories) and file links (which display files) do not count when determining the article status of a page, because those links affect different database tables.

To change to a different method, use one of the following approaches:

1.18或更新的版本

 * Define the article count method with the variable.

1.17或更旧的版本

 * If you want to count articles only if they contain a comma, you can set the variable to   in.

更新条目数量统计
如果你想重新对你的wiki计数来反应条目计数的方法（改变方法不会自动重新计数），在代码栏运行.

If you only have access to the database you can get an approximation to the article count by using a query similar to the following, which only checks page links (similar to the "link" method):

参见

 * Article counts revisited (2015)