模板:Tnavbar-collapsible

被永久保护的模板
维基百科,自由的百科全书

{{{1}}}

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

模板介绍

使用方法

Simply place the following code in the header area of collapsible tables to add left justified view/talk/edit link functionality:

{{Tnavbar-collapsible| Heading wikitext |{{subst:FULLPAGENAME}}}}

Parameters

Mandatory

1
(the first unnamed parameter) Text that appears centered in the titlebar (the top bar).
2
(the second unnamed parameter) The name of the template, which is needed for the "" links to work properly on all of the pages where the template is used on. You can use {{subst:FULLPAGENAME}} as a shortcut for this value.

Optional

plain
If set to plain=1 then will be expanded to the longer form of .
fontcolor
Specifies the title text color and the link color of the .
width
Specifies the width of . Unit is em. Default is 8em.
margin
固定设定距离左边的距离
例如:{{Tnavbar-collapsible| 標題 |{{subst:PAGENAME}}|margin=20px}}
标题

参见

{{navbar}}
This template transcludes navbar, the source is more customizable.
{{tnavbar-header}}
Positions on the right edge of the line, often used in non-collapsible navbox heading.
{{Tnavbar-navframe}}
For use in conjunction with Navframe divs, positions opposite of the [hide]/[show] feature.

Make use of meta-template to reduce code bloat and simplify editing:

导航模板比较
可折叠? 标题颜色 图像 组别 样式(主体)
参数
范例
{{Navbox}} navbox 主体左/右侧 {{H:f Help}}
{{Navbox with columns}} navbox 栏左/右侧 {{APEC}}
{{NavboxYears}} navbox
{{Navbox with collapsible groups}} navbox 主体左/右侧 及/或 在每列表中 {{ATI}}
折叠属性
类别 CSS class Javascript 何时折叠 自定义
初始状态
套叠结构
Collapsible tables collapsible Common.js定义 页面有两块或以上autocollapse模板