Mediawiki category 类别使用指南

出自Guoshuang Wiki

跳转到: 导航, 搜索

在一篇文章的最后加入

[[Category:类别名称]]

表示,本文属于 类别名称 这个类别。

可以同时属于多个类别

[[Category:类别1]]
[[Category:类别2]]
[[Category:类别3]]

类别页可以层叠,在 A 类别页面 最后加入的类别就是 父级类别。

类别树 插件如下:

http://meta.wikimedia.org/wiki/CategoryTree_extension

在最前面加入 : 号,表示对一个类别页的链接。而不是本页的分类!

[[:Category:某类别的链接]]

使用 Templates(模板)可以更容易管理 Category(类别),好处如下:

  1. it helps keep category lists up-to-date
  2. it provides a consistent format so that pages end up on the correct category page without error
  3. it is, frankly, easier
<includeonly>[[Category:category name]]</includeonly>

includeonly 的用意大致如下:

If it is necessary to add the template itself to the category page as well, the 'includeonly' tags can be omitted, but this is generally not desired.

使用

__HIDDENCAT__

页面中不显示类别链接

http://meta.wikimedia.org/wiki/Help:Category

个人工具
留言