help:追踪分类

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Help:Tracking categories and the translation is 69% complete.

Other languages:
català • ‎Deutsch • ‎English • ‎español • ‎עברית • ‎italiano • ‎日本語 • ‎Lëtzebuergesch • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎中文
PD 注意:当您编辑本页面时,即代表同意以CC0协议授权您的贡献。您可以在公有领域帮助文档找到更多信息。
PD

追踪分类是MediaWiki的一项功能,该功能允许包含特定性质的页面被追踪。该功能会自动将所有符合条件的页面归类。

自从MediaWiki 1.23版本,追踪分类被列入设定变量$wgTrackingCategoriesManual:$wgTrackingCategories中,你可以在Special:TrackingCategories中查看。

What category to use is determined by the tracking category's system message, that is, a page in MediaWiki namespace. If the message is a single dash (-), then the tracking category is disabled. Often wiki admins mark such categories as hidden (using the (__HIDDENCAT__ magic word), since they are meant for maintenance and not general consumption. Some sites use Parser functions to modify which category is used based on namespace, but that doesn't work properly until 1.19.

缺省分类 消息 What triggers the category's inclusion 版本
Pages with too many expensive parser function calls expensive-parserfunction-category The page uses too many expensive parser functions (like #ifexist). See Manual:$wgExpensiveParserFunctionLimit. 1.13之后。之前,解析器函数扩展使用 pfunc_max_ifexist_category
Pages containing omitted template arguments post-expand-template-argument-category The page is bigger than $wgMaxArticleSize after expanding a template argument (something in triple braces, like {{{Foo}}}). 1.13
Pages where template include size is exceeded post-expand-template-inclusion-category The page size is bigger than $wgMaxArticleSize after expanding all the templates, so some templates were not expanded. 1.13
Noindexed pages noindex-category The page is not indexed by robots because it has the magic word __NOINDEX__ on it and is in a namespace where that flag is allowed. 1.15
Indexed pages index-category The page has a __INDEX__ on it (and is in a namespace where that flag is allowed), and hence is indexed by robots where it normally wouldn't be. 1.15
Hidden categories hidden-category-category The category contains __HIDDENCAT__ in its page content, which prevents it from showing up in the category links box on pages by default. 1.13
Pages with broken file links broken-file-category The page contains a broken file link (a link to embed a file when the file does not exist).
不能将“链接到文件”包含到“错误的图片列表”中,文件不能内联显示的(因为触发器不支持),将直接链接到文件页面(通过前置半角冒号,又称Special:Wantedfiles)。自1.19版本,分类,如果被设置为允许,则被从Special:Wantedfiles链接。
1.18
Pages with syntax highlighting errors syntaxhighlight-error-category There was an error when attempting to highlight code included on the page.
The SyntaxHighlight extension bundled with MediaWiki adds this.
1.26

扩展也能添加新追踪分类(用Parser::addTrackingCategory方法)

一些维基网站通过一些代码添加其他类型的追踪分类,例如这个分类,她追踪#expr错误页面,添加有重大错误的页面。