Template: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[编辑]

(the first unnamed parameter) Text that appears centered in the titlebar (the top bar).
(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定義 頁面上有2個或以上的autocollapse模板