追踪分类是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.
缺省分类 | 消息 | 导致包含此分类的原因 | 版本 |
---|---|---|---|
有过多高开销解析器函数调用的页面 | expensive-parserfunction-category | 页面使用过多高开销解析器函数(如#ifexist )。请见MediaWiki官网手册。This tracking category replaced pfunc_max_ifexist_category, which was added by Extension:ParserFunctions . |
1.13 |
含有略过模板参数的页面 | post-expand-template-argument-category | 在展开模板参数(以三对花括号包含的东西,如{{{Foo}}} )后,页面大于$wgMaxArticleSize 。
|
1.13 |
引用模板后大小超过限制的页面 | post-expand-template-inclusion-category | 在展开所有模板后,页面大小大于$wgMaxArticleSize ,所以某些模板未展开。
|
1.13 |
不可索引页面 | noindex-category | 因为页面上有魔术字__NOINDEX__ 并位于允许该标记的命名空间,而不被爬虫索引的页面。
|
1.15 |
已索引页面 | index-category | 页面上有魔术字__INDEX__ (并位于允许该标记的命名空间),并因此被爬虫索引,但通常不应被索引。
|
1.15 |
隐藏分类 | hidden-category-category | 分类的页面内容中含有__HIDDENCAT__ ,它会阻止分类默认在页面的分类链接框中显示。
|
1.13 |
含有受损文件链接的页面 | broken-file-category | 页面含有受损文件链接(文件不存在时的嵌入文件链接)。 不能将“链接到文件”包含到“错误的图片列表”中,文件不能内联显示的(因为触发器不支持),将直接链接到文件页面(通过前置半角冒号,又称 [[:File:Example.png]] )。自1.19版本,分类,如果被设置为允许,则被从$2链接。 The category, if enabled, is linked from Special:Wantedfiles since 1.19.
|
1.18 |
在模板调用中使用重复参数的页面 | duplicate-args-category | 页面包含调用了重复参数的模板,例如{{foo|bar=1|bar=2}} 或{{foo|bar|1=baz}} 。
|
1.25 |
页面的节点数超出限制 | node-count-exceeded-category | 页面超出最大节点数限制。 | 1.24 |
扩展深度超出限制的页面 | expansion-depth-exceeded-category | 页面超出最大展开深度限制。 | 1.24 |
忽略显示标题的页面 | restricted-displaytitle-ignored | 页面有被忽略的{{DISPLAYTITLE}} ,因为它不等同于页面的实际标题。
|
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 (在版本1.36移除) |
有模板循环的页面 | template-loop-category | 页面存在模板循环,就是递归进行自我调用的模板。 | 1.29 |
使用ISBN魔术链接的页面 | magiclink-tracking-isbn | 此页面使用ISBN魔术链接。参见mediawiki.org以获取有关如何迁移的信息。 仅当$wgEnableMagicLinks 为true时,才添加此跟踪分类。 |
1.28 |
使用RFC魔术链接的页面 | magiclink-tracking-rfc | 此页面使用RFC魔术链接。参见mediawiki.org以获取有关如何迁移的信息。 仅当$wgEnableMagicLinks 为true时,才添加此跟踪分类。 |
1.28 |
使用PMID魔术链接的页面 | magiclink-tracking-pmid | 此页面使用PMID魔术链接。参见mediawiki.org以获取有关如何迁移的信息。 仅当$wgEnableMagicLinks 为true时,才添加此跟踪分类。 |
1.28 |
使用 = 作为模板的页面 | template-equals-category | 页面包含{{=}} ,但该wiki不会扩展到= 。这一用法已被弃用。未来的MediaWiki版本会将{{=}} 实现为一个解析器函数。
|
1.36 |
含有非数字formatnum参数的页面 | nonnumeric-formatnum | 该页面包含一个给formatnum解析器函数的非数字的参数。 | 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 | (在版本1.13移除) |
存在语法高亮错误的页面 | syntaxhighlight-error-category | 尝试高亮页面中的代码时出错。 | SyntaxHighlight | 1.26 |
使用时间线的页面 | timeline-tracking-category | 没有可用说明。 | EasyTimeline | 1.32 |
有参考资料错误的页面 | cite-tracking-category-cite-error | 此分类内的页面存在参考资料标签使用错误。 | Cite | 1.27 |
使用score的页面 | score-use-category | 这些页面使用了Score扩展。 | Score | |
有乐谱生成错误的页面 | score-error-category | 生成乐谱时出错。 | Score | 1.22 |
使用弃用乐谱属性的页面 | score-deprecated-category | 这些页面使用乐谱扩展弃用的选项“override_audio”、“override_ogg”和“override_midi”。 | Score | |
有错误的模板样式表 | templatestyles-stylesheet-error-category | 模板样式表存在错误。 | TemplateStyles | 1.32 |
有模板样式错误的页面 | templatestyles-page-error-category | 处理页面上的<templatestyles/> 时出现错误。
|
TemplateStyles | 1.32 |
大量信息递送列表 | massmessage-list-category | 页面用于大量信息扩展程序的递送列表。 | MassMessage | 1.24 |
没有机器可读许可协议的文件 | commonsmetadata-trackingcategory-no-license | 文件没有任何机器可读的许可协议模板。 | CommonsMetadata | 1.25 |
没有机器可读说明的文件 | commonsmetadata-trackingcategory-no-description | 文件没有机器可读的信息模板,或其说明字段未填写。 | CommonsMetadata | 1.25 |
没有机器可读作者的文件 | commonsmetadata-trackingcategory-no-author | 文件没有机器可读的信息模板,或其作者字段未填写。 | CommonsMetadata | 1.25 |
没有机器可读来源的文件 | commonsmetadata-trackingcategory-no-source | 文件没有机器可读的信息模板,或其来源字段未填写。 | CommonsMetadata | 1.25 |
没有机器可读专利的文件 | commonsmetadata-trackingcategory-no-patent | 文件没有任何机器可读的专利模板。 | CommonsMetadata | 1.31 |
有数学错误的页面 | math-tracking-category-error | 此分类中的页面在数学标签的使用上有错误。 | Math | 1.28 |
有数学渲染错误的页面 | math-tracking-category-render-error | 此分类中的页面有数学标签的渲染错误。 | Math | 1.30 |
有格式错误坐标标签的页面 | geodata-broken-tags-category | 页面有格式错误的{{#coordinates:}} 标签。
|
GeoData | 1.19 |
有未知星球值的页面 | geodata-unknown-globe-category | 页面使用globe 坐标参数的未知值。
|
GeoData | 1.19 |
有无效地区值的页面 | geodata-unknown-region-category | 页面使用region 坐标参数的未知值。
|
GeoData | 1.19 |
有未知坐标类型的页面 | geodata-unknown-type-category | 页面使用type 坐标参数的未知值。
|
GeoData | 1.19 |
有脚本错误的页面 | scribunto-common-error-category | 处理页面嵌入的模块时出错。 | Scribunto | 1.19 |
有错误的Scribunto模块 | scribunto-module-with-errors-category | 模块有错误。 | Scribunto | 1.23 |
有未审阅翻译的页面 | cx-unreviewed-translation-category | 使用内容翻译工具翻译的存在大量未审阅内容的页面 | ContentTranslation | 1.33 |
有图表的页面 | graph-tracking-category | 页面包含<graph> 标签。
|
Graph | 1.26 |
有过时的Vega图表的页面 | graph-obsolete-category | 页面包含应更新至版本5的<graph> 标签。
|
Graph | 1.27 |
有损坏图表的页面 | graph-broken-category | 页面包含无效用法的<graph> 标签。
|
Graph | 1.26 |
有地图的页面 | kartographer-tracking-category | 页面包含地图 | Kartographer | 1.27 |
有损坏地图的页面 | kartographer-broken-category | 页面包含无效的地图用法 | Kartographer | 1.27 |
有未解决属性的页面 | unresolved-property-category | 此分类列出了引用维基数据属性的页面,这些属性既无法通过属性ID也无法通过标签找到。 | Wikibase Client | 1.29 |
连接到维基数据项目的重定向 | connected-redirect-category | 此分类列出了连接到维基数据项目的重定向页面。 | Wikibase Client | 1.31 |