Шаблон:Collapse/doc: различия между версиями

1537 байт добавлено ,  02:46, 27 сентября 2014
TemplateData added
en>Zyxw
(update transclusion count)
en>Renamed user 2560613081
(TemplateData added)
Строка 50: Строка 50:
===When content includes tables===
===When content includes tables===
This template frequently breaks when used around content that consists of or includes wikitables.  Such content can be made collapsible by using the {{tlx|collapse top}} and {{tlx|collapse bottom}} templates instead of {{tlx|collapse}}.
This template frequently breaks when used around content that consists of or includes wikitables.  Such content can be made collapsible by using the {{tlx|collapse top}} and {{tlx|collapse bottom}} templates instead of {{tlx|collapse}}.
==TemplateData==
{{TemplateDataHeader}}
<templatedata>
{
"description": "Creates a collapsible box that allows its content to be hidden or revealed on user's command. It is used to reduce clutter.",
"params": {
"1": {
"label": "Contents",
"description": "Contents of the box",
"type": "content",
"required": true
},
"2": {
"label": "Title",
"description": "Text of title bar. Defaults to \"Extended contents\".",
"type": "string",
"suggested": true
},
"expand": {
"label": "Expanded by default?",
"description": "Setting to any value (such as \"yes\") would cause the box to show its contents by default. Not specifying this parameter causes the box to be collapsed by default, thus its contents hidden.",
"type": "string",
"default": "yes"
},
"border": {
"label": "Border width",
"description": "Width of the border. Accepts a number (e.g. 2) followed immediately with a CSS-compatible unit of measurement. (e.g. \"px\") Example: 2px.",
"type": "string",
"default": "1px"
},
"bg": {
"label": "Title bar's color",
"description": "Color of the title bar. Can be set any valid CSS color value but please take care that text would remain black.",
"type": "string"
},
"padding": {
"label": "Padding",
"description": "Width of the padding, the empty space between border and the contents. Accepts a number (e.g. 2) followed immediately with a CSS-compatible unit of measurement. (e.g. \"px\") Example: 2px.",
"default": "8px"
}
}
}
</templatedata>


== See also ==
== See also ==
Анонимный участник