Template:Category tree all/doc

维基语录,自由的名人名言录

用途[编辑]

本模板可產生一個包含子分類、頁面、圖片或母分類的列表。

使用方式[编辑]

  • {{category tree all}} – 基本使用方式,將自動展示放置模板之分類的列表
  • {{category tree all|title}} – 請將 title 替換為分類頁面的名稱
  • {{category tree all|mode=categories、pages、all、parents|depth=0、1⋯|hideroot=on 或 off|showcount=on 或 off|header=使用者自定標題}} – 使用一個以上的 categorytree 標記參數(詳情請參考 http://www.mediawiki.org/wiki/Extension:CategoryTree ):
    • mode=pages 僅顯示分類下的頁面;mode=all 顯示分類下的所有子分類、頁面和圖片;mode=parents 僅顯示母分類;本模板的預設數值為 categories
    • depth=1 顯示第一層分類樹;depth=2 顯示第一層及第二層分類樹;depth=3 以下類推⋯;本模板的預設數值為 0
    • hideroot=on 隱藏根分類。本模板的預設數值為 off
    • showcount=off 隱藏分類名稱後方的子分類、頁面、檔案數量標記。本模板的預設數值為 on
    • header= 使用者可自行指定分類樹上方的文字。本模板的預設數值為 請點選「►」來展開所有子分類

範例[编辑]

請點選「►」來展開所有子分類
天文学(2个分类、​1个页面)
請點選「►」來展開所有
天文学(2个分类、​1个页面)

參見[编辑]