Шаблон:Collapse/doc: различия между версиями
Перейти к навигации
Перейти к поиску
Update templatedata with all parameters in the template
en>Wikimandia (→When content includes tables: redirecting people (like me) who want to only collapse tables) |
en>Ahecht (Update templatedata with all parameters in the template) |
||
| Строка 69: | Строка 69: | ||
"description": "Text of title bar. Defaults to \"Extended contents\".", | "description": "Text of title bar. Defaults to \"Extended contents\".", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true, | ||
"aliases": [ | |||
"title", | |||
"heading", | |||
"header" | |||
], | |||
"default": "Extended content" | |||
}, | }, | ||
"expand": { | "expand": { | ||
| Строка 79: | Строка 85: | ||
"border": { | "border": { | ||
"label": "Border width", | "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.", | "description": "Width of the outermost border. Accepts a number (e.g. 2) followed immediately with a CSS-compatible unit of measurement. (e.g. \"px\") Example: 2px.", | ||
"type": "string", | "type": "string", | ||
"default": "1px" | "default": "1px" | ||
| Строка 86: | Строка 92: | ||
"label": "Title bar's color", | "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.", | "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" | "type": "string", | ||
"aliases": [ | |||
"background" | |||
], | |||
"default": "#CFC" | |||
}, | }, | ||
"padding": { | "padding": { | ||
| Строка 92: | Строка 102: | ||
"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.", | "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" | "default": "8px" | ||
}, | |||
"bg1": { | |||
"label": "Outer background", | |||
"description": "Color of the space between the inner and outer border. Can be set to any valid CSS color.", | |||
"type": "string", | |||
"default": "transparent" | |||
}, | |||
"b-color": { | |||
"label": "Outer border color", | |||
"description": "Color of the outer border. Can be any valid CSS color.", | |||
"type": "string", | |||
"default": "silver" | |||
}, | |||
"width": { | |||
"label": "Collapse box width.", | |||
"description": "The width of the entire collapsed box.", | |||
"type": "string", | |||
"default": "100%" | |||
}, | |||
"left": { | |||
"label": "Left-align title", | |||
"description": "If set to any value, the title will be left-aligned", | |||
"type": "string" | |||
}, | |||
"fc": { | |||
"label": "Font color", | |||
"description": "Font color for the title. Also sets the color of the [show]/[hide] link. Can be any valid CSS color", | |||
"type": "string" | |||
} | } | ||
} | } | ||