编辑“︁
Template:Template category/doc
”︁
跳转到导航
跳转到搜索
这是
Template category
模板的
文档页面
。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
{{Documentation subpage}} <!----------------------------------------------------------------------------- Place categories where indicated at the bottom of this page, please! ------------------------------------------------------------------------------> {{tl|Template category}}应该放置于归类模板页面及相关子页面的分类的顶端。 {{TOC limit|3}} ==用法== ===完整语法=== <pre style="overflow:auto;"> {{Template category | type = | topic = | description = | rhs = | container = | help = }} </pre> ===参数=== 本模板可以不设参数直接使用,即使用代码<code><nowiki>{{Template category}}</nowiki></code>。 {{Hidden begin |showhide=left |title=不设参数 |bodystyle=font-size:105%;}} {{Template category}} {{Hidden end}} 下面是可用于使本模板提供更多实用信息的参数: ====''type''==== <hr/> : 设置''type''为(目前的)十一个值之一,会显示分类用于归类的模板类型的预设说明。这些值有: :: '''{{hlist |ambox |campaignbox |conversion |external link |formatting |function |meta |navbox|navigation |sidebar |stub |timeline |userbox}}''' : 若''type''设置为了不是这些值的其他内容,默认的说明“在本分类中列出的页面为模板”会原样显示。 {{Hidden begin |showhide=left |title=只设''type'' |bodystyle=font-size:105%;}} <pre>{{Template category |type=sidebar}}</pre> {{Template category |type=sidebar}} {{Hidden end}} : 更多''type''的输出示例请见下面的示例。 ====''topic''==== <hr/> : 添加默认说明“与''topic''相关的模板”,其中''topic''通常为与分类相关的主条目的[[wikilink]]。(如[[美国]]与[[:Category:美国模板]]) {{Hidden begin |showhide=left |title=只设''topic'' |bodystyle=font-size:105%;}} <pre>{{Template category |topic=[[美国]]}}</pre> {{Template category |topic=[[美国]]}} {{Hidden end}} {{Hidden begin |showhide=left |title=''type'',''topic'' |bodystyle=font-size:105%;}} <pre>{{Template category |type=infobox |topic=[[美国]]}}</pre> {{Template category |type=infobox |topic=[[美国]]}} {{Hidden end}} ====''description''==== <hr/> : Use this if a customised description is needed instead of – or, if ''topic'' also used, to follow – the default description above. {{Hidden begin |showhide=left |title=''type'', ''topic'', ''description'' |bodystyle=font-size:105%;}} <pre style="overflow:auto;"> {{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}}.}} }} </pre> {{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}}.}} }} {{Hidden end}} {{Hidden begin |showhide=left |title=只设''description'' |bodystyle=font-size:105%;}} <pre>{{Template category |description=This text is supplied by the ''description'' parameter.}}</pre> {{Template category |description=This text is supplied by the ''description'' parameter.}} {{Hidden end}} ====''onright'' / ''rhs''==== <hr/> : Use this to place right-aligned boxes beside the template, such as {{tl|portal}} (to provide a link or links to related portal or portals) and/or {{tl|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. {{Hidden begin |showhide=left |title=''topic'', ''rhs'' |bodystyle=font-size:105%;}} <pre> {{Template category | topic = [[美国]] | rhs = {{Commons category|United States|美国}}{{portal|美国}} }} </pre> {{Template category | topic = [[美国]] | rhs = {{Commons category|United States|美国}}{{portal|美国}} }} {{Hidden end}} ====''container''==== <hr/> : Set ''container'' to "true" (without quotemarks) to identify the category as a [[Wikipedia:Container category|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. {{Hidden begin |showhide=left |title=只设''container'' |bodystyle=font-size:105%;}} <pre>{{Template category |container=true}}</pre> {{Template category |container=true}} {{Hidden end}} : An alternative to using ''container'' is to place {{tl|Parent category}} after the {{tl|Template category}} template: {{Hidden begin |showhide=left |title={{braces|Parent category}}跟随{{braces|Template category}} |bodystyle=font-size:105%;}} <pre> {{Template category | type = ''type'' | topic = ''[[topic]]'' | description = 这是''description''参数提供的文字。 }} {{Parent category}} </pre> {{Template category | type = ''type'' | topic = ''[[topic]]'' | description = 这是''description''参数提供的文字。 }} {{Parent category}} {{Hidden end}} ====''help''==== <hr/> : 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. ==参见== {{Other category-header templates}} <includeonly> {{#ifeq:{{SUBPAGENAME}}|sandbox | | <!----------请在本行下设置分類------------> [[Category:分類訊息模板]] }} </includeonly>
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息