模板:Sidebar with collapsible lists
| 此Template被引用於約8,300個頁面中。 為了避免造成大規模的影響,所有對此Template的編輯應先於沙盒、測試樣例或您的使用者頁面上測試。 測試後無誤的版本可以一次性地加入此Template中,但是修改前請務必於討論頁發起討論。 |
| 此模板使用Lua語言: |
{{Sidebar with collapsible lists}}是融合{{Sidebar}}與{{collapsible list}}的特性,在內容中顯示摺疊顯示的列表的邊欄。
用法
| {{{pretitle}}} |
| {{{title}}} |
|---|
| {{{image}}} |
| {{{above}}} |
| {{{heading1}}} |
|
{{{list1title}}} {{{list1}}} |
|
{{{list2title}}} {{{list2}}} |
| {{{headingN}}} |
|
{{{listNtitle}}} {{{listN}}} |
| {{{contentN}}} |
| {{{below}}} |
省略不常用的參數。
{{Sidebar with collapsible lists
| name = {{subst:PAGENAME}}
| pretitle =
| title =
| image =
| expanded = {{{expanded|{{{1|}}}}}}
| headingstyle =
| listtitlestyle =
| liststyle =
| contentstyle = <!--(same as |liststyle = ...?)-->
| heading1 =
| list1name =
| list1title =
| list1 =
| heading2 =
| list2name =
| list2title =
| list2 =
<!-- ...... -->
| headingN = <!--(Template:Sidebar's "headingN" and/or "contentN" parameters (where -->
| contentN = <!-- N is a number) may be used to include uncollapsible lists/content)-->
<!-- ...... -->
| below =
}}
其中listtitlestyle和liststyle參數等同於{{collapsible list}}的titlestyle與liststyle參數,而listNtitle與listN參數等同{{collapsible list}}的title和列表結構塊。要生成列表結構,可以使用{{DumbList}},或者手動添加。
listNname參數用於標示各個需要展開的列表,參見{{collapsible lists option}}.
其他摺疊列表相關參數
除上文外,還可以用下列摺疊列表相關參數:
- listframestyle
- 設置列表邊框樣式(參見{{collapsible list}})
- listNframestyle
- 設置listN的邊框樣式,替換listframestyle
- listNtitlestyle
- 設置listN的標題樣式,替換listtitlestyle
- listNstyle
- 設置listN的背景樣式,替換liststyle
處理長連結
就像在{{Sidebar}}一樣,{{longlink}}也可以用來處理列表中需要換行的連結以防止邊框變得太寬。輸入{{longlink|longlinkname}},longlinkname是除方括號外的連結文字。
參見
| 上述文件嵌入自Template:Sidebar with collapsible lists/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |