模板:Collapse top

詳細內容

本文为測試文字。这段文字用于说明格式,请勿删除。這段文字用於說明格式,請勿刪除。海納百川,有容乃大。維基百科,自由的百科全書。本文为測試文字。这段文字用于说明格式,请勿删除。這段文字用於說明格式,請勿刪除。海納百川,有容乃大。維基百科,自由的百科全書。本文为測試文字。这段文字用于说明格式,请勿删除。這段文字用於說明格式,請勿刪除。海納百川,有容乃大。維基百科,自由的百科全書。

文档图示 模板文档[创建]

TemplateData

編寫

模板:TemplateData header

Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

模板參數[編輯模板資料]

參數描述類型狀態
Title1 title heading header reason result

Main title of collapsed box

範例
This is the title text
不明必填
Custom warning line2

Will override the standard warning line, and make the 'warning' parameter unnecessary

範例
This is a custom warning line
字串非必填
indentindent

Indents the box from the left of the page

自動值
0px
不明非必填
expandexpand collapse

Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

範例
true
自動值
字串非必填
Border width (px)border

Sets the width of the border line on the collapsed material

預設
1px
範例
2px
自動值
不明非必填
Border colorb-color

Sets the border color

預設
Silver
範例
#F0F2F5
不明非必填
Template width (px or %)width

Sets the width of the overall template

範例
50%
不明非必填
Collapsed material background colorbg

Sets the background color of the collapsed material

預設
#CFC
範例
#F0F2F5
不明非必填
Alight along the left margin (true or blank)left

Will align the 'parameter 1 title' along the left margin

範例
true
字串非必填
Title font colorfc

Sets the font color of the title of the collapsible bar

預設
Black
範例
#F0F2F5
不明非必填
Warning (true or blank)warning

Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

範例
true
不明非必填
Expanded box border size & colorborder2

Sets the border of the box that appears when template is expanded

預設
1px silver
範例
2px
不明非必填
Padding (px)padding

Sets the padding on the collapsed material in the colored area

預設
8px
範例
16px
不明非必填
Expanded box colorbg2

Sets background of the box that appears when template is expanded

預設
white
範例
#F0F2F5
不明非必填