模板:Template category/sandbox
跳至導覽
跳至搜尋
頁面Template:Hidden begin/styles.css沒有內容。
頁面Template:Hidden begin/styles.css沒有內容。
頁面Module:Message box/mbox.css沒有內容。
頁面Module:Message box/mbox.css沒有內容。
|
頁面Module:Documentation/styles.css沒有內容。
頁面Module:Message box/mbox.css沒有內容。
| File:Sandbox.svg | 這是Template:Template category(差異)的沙盒。 |
File:Test Template Info-Icon - Version (2).svg 模板文件[檢視] [編輯] [歷史] [清除快取]
{{Template category}}應該放置於歸類模板頁面及相關子頁面的分類的頂端。
用法[編輯]
完整語法[編輯]
{{Template category
| type =
| topic =
| description =
| rhs =
| container =
| help =
}}
參數[編輯]
本模板可以不設參數直接使用,即使用代碼{{Template category}}。
不設參數
頁面Module:Message box/mbox.css沒有內容。
| 模板括弧 | 本分類是用於管理維基百科的頁面,並非百科全書的一部分。
更多訊息
如何將模板歸入本分類?
頁面Template:Plainlist/styles.css沒有內容。
|
下面是可用於使本模板提供更多實用信息的參數:
type[編輯]
- 設置type為(目前的)十一個值之一,會顯示分類用於歸類的模板類型的預設說明。這些值有:
- ambox
- campaignbox
- conversion
- external link
- formatting
- function
- meta
- navbox
- navigation
- sidebar
- stub
- timeline
- userbox
- 若type設置為了不是這些值的其他內容,默認的說明「在本分類中列出的頁面為模板」會原樣顯示。
只設type
{{Template category |type=sidebar}}
頁面Module:Message box/mbox.css沒有內容。| 模板括弧 | 本分類是用於管理維基百科的頁面,並非百科全書的一部分。
更多訊息
如何將模板歸入本分類?
頁面Template:Plainlist/styles.css沒有內容。
|
- 更多type的輸出示例請見下面的示例。
topic[編輯]
- 添加默認說明「與topic相關的模板」,其中topic通常為與分類相關的主條目的wikilink。(如美國與Category:美國模板)
只設topic
{{Template category |topic=[[美国]]}}
頁面Module:Message box/mbox.css沒有內容。| 模板括弧 | 與美國有關的模板。 本分類是用於管理維基百科的頁面,並非百科全書的一部分。
更多訊息
如何將模板歸入本分類?
頁面Template:Plainlist/styles.css沒有內容。
|
type,topic
{{Template category |type=infobox |topic=[[美国]]}}
頁面Module:Message box/mbox.css沒有內容。| 模板括弧 | 與美國有關的資訊框模板。 本分類是用於管理維基百科的頁面,並非百科全書的一部分。
更多訊息
如何將模板歸入本分類?
頁面Template:Plainlist/styles.css沒有內容。
|
description[編輯]
- Use this if a customised description is needed instead of – or, if topic also used, to follow – the default description above.
type, topic, description
{{Template category
| type = navbox
| topic = [[China]]
| description = <br/>{{small|For templates relating specifically to the [[People's Republic of China|People's Republic of China (PRC)]] or the current [[Republic of China|Republic of China (ROC, "Taiwan")]], see, respectively, {{c|People's Republic of China templates}} and {{c|Republic of China (Taiwan) templates}}.}}
}}
頁面Module:Message box/mbox.css沒有內容。| 模板括弧 | 與China有關的導航模板。 For templates relating specifically to the People's Republic of China (PRC) or the current Republic of China (ROC, "Taiwan"), see, respectively, People's Republic of China templates and Republic of China (Taiwan) templates. 本分類是用於管理維基百科的頁面,並非百科全書的一部分。
更多訊息
如何將模板歸入本分類?
頁面Template:Plainlist/styles.css沒有內容。
|
只設description
{{Template category |description=This text is supplied by the ''description'' parameter.}}
頁面Module:Message box/mbox.css沒有內容。| 模板括弧 | This text is supplied by the description parameter. 本分類是用於管理維基百科的頁面,並非百科全書的一部分。
更多訊息
如何將模板歸入本分類?
頁面Template:Plainlist/styles.css沒有內容。
|
onright / rhs[編輯]
- Use this to place right-aligned boxes beside the template, such as {{portal}} (to provide a link or links to related portal or portals) and/or {{Commons category}} (to provide a link to the same or a similarly-named category at the Commons). If more than one box is included, ensure the widest one appears first (see example below) otherwise overlapping may occur.
topic, rhs
{{Template category
| topic = [[美国]]
| rhs = {{Commons category|United States|美国}}{{portal|美国}}
}}
頁面Module:Side box/styles.css沒有內容。頁面Template:Sister project/styles.css沒有內容。頁面Template:Plainlist/styles.css沒有內容。
頁面Module:Message box/mbox.css沒有內容。維基共享資源上的相關多媒體資源:package.lua第80行Lua錯誤:module 'Module:If preview/configuration' not found
| 模板括弧 | 與美國有關的模板。 本分類是用於管理維基百科的頁面,並非百科全書的一部分。
更多訊息
如何將模板歸入本分類?
頁面Template:Plainlist/styles.css沒有內容。
|
container[編輯]
- Set container to "true" (without quotemarks) to identify the category as a container category, i.e. a category meant to contain only subcategories. A note requesting that no templates are added to the template category is then included.
只設container
{{Template category |container=true}}
頁面Module:Message box/mbox.css沒有內容。| 模板括弧 | 註:請勿直接將模板加入本分類,正確的做法是將其加入下列子分類之一。 本分類是用於管理維基百科的頁面,並非百科全書的一部分。
更多訊息
如何將模板歸入本分類?
頁面Template:Plainlist/styles.css沒有內容。
|
- An alternative to using container is to place {{Parent category}} after the {{Template category}} template:
{{Parent category}}跟隨{{Template category}}
{{Template category
| type = ''type''
| topic = ''[[topic]]''
| description = 这是''description''参数提供的文字。
}}
{{Parent category}}
頁面Module:Message box/mbox.css沒有內容。| 模板括弧 | 與topic有關的模板。 這是description參數提供的文字。 本分類的收錄對象為type模板。
本分類是用於管理維基百科的頁面,並非百科全書的一部分。
更多訊息
如何將模板歸入本分類?
頁面Template:Plainlist/styles.css沒有內容。
|
| File:Information icon4.svg | 這是一個容器分類。限於其範圍,它只應包含子分類。 |
help[編輯]
- Use this to replace the default instructions as to how to add a template to the category (see the "Further template category notes" section) or, if set to nothing, remove them.
參見[編輯]
其他分類頂部模板[編輯]
package.lua第80行Lua錯誤:module 'Module:NavboxV2/NavboxContext' not found