跳转到内容

模板:Collapse top/doc

来自天灾之下:危险连接资料站
wiki>Rebulka2023年9月6日 (三) 03:27的版本 (překlad a editace)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Collapse top

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
未知可选