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

40 байт убрано ,  14:44, 16 января 2015
Нет описания правки
en>Renamed user 2560613081
(TemplateData added)
en>DePiep
Строка 1: Строка 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{High-use|1,700+}}
{{High-use|1,800+}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
{{shortcut|Template:Cot|Template:Cob}}
{{shortcut|Template:Cot|Template:Cob}}


Строка 46: Строка 46:


===The expand parameter===
===The expand parameter===
Simply add {{para|expand|yes}} to have the box show up in expanded form with a "hide" link, instead of collapsed form with a "show" link. Note: {{para|expand|no}} does not work; to disable the feature, you have to remove the entire {{para||expand}} parameter and value.
Simply add {{para|expand|yes}} to have the box show up in expanded form with a "hide" link, instead of collapsed form with a "show" link. Other options: {{para|expand|}} <code>yes, y, expand, expanded, uncollapse, uncollapsed</code>. Note: {{para|expand|no}} will fold the box (default).


===When content includes tables===
===When content includes tables===
Строка 71: Строка 71:
"expand": {
"expand": {
"label": "Expanded by default?",
"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.",
"description": "Setting to \"yes, y, expand, uncollapse\") will cause the box to show its contents by default. Any other value (and omitting this parameter) causes the box to be collapsed by default (its contents hidden).",
"type": "string",
"type": "string",
"default": "yes"
"default": "yes"
Анонимный участник