Help:Tracking categories/zh
File:PD-icon.svg | Note: When you edit this page, you agree to release your contribution under the CC0. See Public Domain Help Pages for more info. | File:PD-icon.svg |
追踪分类是MediaWiki的一项功能,该功能允许包含特定性质的页面被追踪。该功能会自动将所有符合条件的页面归类。
自从MediaWiki 1.23 版本,追踪分类被列入设定变量$wgTrackingCategories 中,你可以在Special:TrackingCategories中查看。 Since MediaWiki 1.25, tracking categories, which are added by MediaWiki itself, are hard-coded in the MediaWiki source code, and $wgTrackingCategories is kept for backwards compatibility.
使用什么分类取决于追踪分类的系统信息,也即,在MediaWiki中的一个页面。如果信息仅仅是一个連字暨減號(-),则追踪分类被禁止。这种分类往往被wiki管理員标记为隐藏(使用__HIDDENCAT__
魔術字),因为她们意味着维护页并且不是主要的资源消耗页。有些网站使用Parser functions 基于名字空间确定使用哪种分类,但是在1.19版本之前无效。
一些维基网站通过一些代码添加其他类型的追踪分类,例如这个分类,她追踪#expr错误页面,添加有重大错误的页面。
核心
The following tracking categories are added by MediaWiki itself, or have been in the past.
缺省分类 | 消息 | 导致包含此分类的原因 | 版本 |
---|---|---|---|
Pages with too many expensive parser function calls | expensive-parserfunction-category | The page uses too many expensive parser functions (like #ifexist ). See Manual:$wgExpensiveParserFunctionLimit.This tracking category replaced pfunc_max_ifexist_category, which was added by Extension:ParserFunctions . |
1.13 |
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). 不能将“链接到文件”包含到“错误的图片列表”中,文件不能内联显示的(因为触发器不支持),将直接链接到文件页面(通过前置半角冒号,又称 [[:File:Example.png]] )。自1.19版本,分类,如果被设置为允许,则被从$2链接。 The category, if enabled, is linked from Special:Wantedfiles since 1.19.
|
1.18 |
Pages using duplicate arguments in template calls | duplicate-args-category | The page contains template calls that use duplicates of arguments, such as {{foo|bar=1|bar=2}} or {{foo|bar|1=baz}} .
|
1.25 |
Pages where node count is exceeded | node-count-exceeded-category | The page exceeds the maximum node count. | 1.24 |
Pages where expansion depth is exceeded | expansion-depth-exceeded-category | The page exceeds the maximum expansion depth. | 1.24 |
Pages with ignored display titles | restricted-displaytitle-ignored | The page has an ignored {{DISPLAYTITLE}} because it is not equivalent to the page's actual title.
|
1.28 |
Pages using invalid self-closed HTML tags | deprecated-self-close-category | The page contains invalid self-closed HTML tags, such as <b /> or <span /> . The behavior of these will change soon to be consistent with the HTML5 specification, so their use in wikitext is deprecated.
|
1.28 <translate> (removed in <tvar name=2>1.36</tvar>)</translate> |
Pages with template loops | template-loop-category | The page contains a template loop, ie. a template which calls itself recursively. | 1.29 |
Pages using ISBN magic links | magiclink-tracking-isbn | This page uses ISBN magic links. See mediawiki.org on how to migrate. 仅当$wgEnableMagicLinks 为true时,才添加此跟踪分类。 |
1.28 |
Pages using RFC magic links | magiclink-tracking-rfc | This page uses RFC magic links. See mediawiki.org on how to migrate. 仅当$wgEnableMagicLinks 为true时,才添加此跟踪分类。 |
1.28 |
Pages using PMID magic links | magiclink-tracking-pmid | This page uses PMID magic links. See mediawiki.org on how to migrate. 仅当$wgEnableMagicLinks 为true时,才添加此跟踪分类。 |
1.28 |
Pages which use = as a template | template-equals-category | The page contains {{=}} but on this wiki that does not expand to = . This usage is deprecated; a future MediaWiki version will implement {{=}} as a parser function.
|
1.36 |
Pages with non-numeric formatnum arguments | nonnumeric-formatnum | The page contains a non-numeric argument to the formatnum parser function. | 1.36 |
扩展
The following tracking categories are added by extensions, or have been in the past. Extensions can add new tracking categories using the extension registration system . Prior to 1.25, this was instead done via Parser::addTrackingCategory, with the tracking category name added to $wgTrackingCategories .
默认分类 | 訊息 | What triggers the category's inclusion | Added by extension | 版本 |
---|---|---|---|---|
Pages with too many ifexist calls [1] | pfunc_max_ifexist_category | Warning: This page contains too many #ifexist calls. It should have less than $2, there are now $1. This tracking category was replaced with expensive-parserfunction-category, which is added by core. The messages for the tracking category and its description were removed in rev:32965. |
ParserFunctions | <translate> (removed in <tvar name=2>1.13</tvar>)</translate> |
Pages with syntax highlighting errors | syntaxhighlight-error-category | There was an error when attempting to highlight code included on the page. | SyntaxHighlight | 1.26 |
⧼timeline-tracking-category⧽ | timeline-tracking-category | No description available. | EasyTimeline | 1.32 |
Pages with reference errors | cite-tracking-category-cite-error | Pages in this category have errors in the usage of references tags. | Cite | 1.27 |
⧼score-use-category⧽ | score-use-category | ⧼score-use-category-desc⧽ | Score | |
⧼score-error-category⧽ | score-error-category | ⧼score-error-category-desc⧽ | Score | 1.22 |
⧼score-deprecated-category⧽ | score-deprecated-category | ⧼score-deprecated-category-desc⧽ | Score | |
TemplateStyles stylesheets with errors | templatestyles-stylesheet-error-category | The TemplateStyles stylesheet has an error. | TemplateStyles | 1.32 |
Pages with TemplateStyles errors | templatestyles-page-error-category | There was an error when processing a <templatestyles/> tag on the page.
|
TemplateStyles | 1.32 |
MassMessage delivery lists | massmessage-list-category | The page is a delivery list for the MassMessage extension. | MassMessage | 1.24 |
⧼commonsmetadata-trackingcategory-no-license⧽ | commonsmetadata-trackingcategory-no-license | ⧼commonsmetadata-trackingcategory-no-license-desc⧽ | CommonsMetadata | 1.25 |
⧼commonsmetadata-trackingcategory-no-description⧽ | commonsmetadata-trackingcategory-no-description | ⧼commonsmetadata-trackingcategory-no-description-desc⧽ | CommonsMetadata | 1.25 |
⧼commonsmetadata-trackingcategory-no-author⧽ | commonsmetadata-trackingcategory-no-author | ⧼commonsmetadata-trackingcategory-no-author-desc⧽ | CommonsMetadata | 1.25 |
⧼commonsmetadata-trackingcategory-no-source⧽ | commonsmetadata-trackingcategory-no-source | ⧼commonsmetadata-trackingcategory-no-source-desc⧽ | CommonsMetadata | 1.25 |
⧼commonsmetadata-trackingcategory-no-patent⧽ | commonsmetadata-trackingcategory-no-patent | ⧼commonsmetadata-trackingcategory-no-patent-desc⧽ | CommonsMetadata | 1.31 |
⧼math-tracking-category-error⧽ | math-tracking-category-error | ⧼math-tracking-category-error-desc⧽ | Math | 1.28 |
⧼math-tracking-category-render-error⧽ | math-tracking-category-render-error | ⧼math-tracking-category-render-error-desc⧽ | Math | 1.30 |
⧼geodata-broken-tags-category⧽ | geodata-broken-tags-category | ⧼geodata-broken-tags-category-desc⧽ | GeoData | 1.19 |
⧼geodata-unknown-globe-category⧽ | geodata-unknown-globe-category | ⧼geodata-unknown-globe-category-desc⧽ | GeoData | 1.19 |
⧼geodata-unknown-region-category⧽ | geodata-unknown-region-category | ⧼geodata-unknown-region-category-desc⧽ | GeoData | 1.19 |
⧼geodata-unknown-type-category⧽ | geodata-unknown-type-category | ⧼geodata-unknown-type-category-desc⧽ | GeoData | 1.19 |
Pages with script errors | scribunto-common-error-category | There was an error when processing the modules included on the page. | Scribunto | 1.19 |
Scribunto modules with errors | scribunto-module-with-errors-category | The module has an error in it. | Scribunto | 1.23 |
⧼cx-unreviewed-translation-category⧽ | cx-unreviewed-translation-category | ⧼cx-unreviewed-translation-category-desc⧽ | ContentTranslation | 1.33 |
⧼graph-tracking-category⧽ | graph-tracking-category | ⧼graph-tracking-category-desc⧽ | Graph | 1.26 |
⧼graph-obsolete-category⧽ | graph-obsolete-category | ⧼graph-obsolete-category-desc⧽ | Graph | 1.27 |
⧼graph-broken-category⧽ | graph-broken-category | ⧼graph-broken-category-desc⧽ | Graph | 1.26 |
Pages with maps | kartographer-tracking-category | The page includes a map | Kartographer | 1.27 |
Pages with broken maps | kartographer-broken-category | The page includes an invalid map usage | Kartographer | 1.27 |
⧼unresolved-property-category⧽ | unresolved-property-category | ⧼unresolved-property-category-desc⧽ | Wikibase Client | 1.29 |
⧼connected-redirect-category⧽ | connected-redirect-category | ⧼connected-redirect-category-desc⧽ | Wikibase Client | 1.31 |