:Collapsible box

틀 설명문서[보기] [편집] [역사] [새로 고침]

사용법

편집

Generic template for a collapsible box. Can be used to format templates with specific purposes. Little default formatting is provided; calling templates should set this as they see fit.

Generally, you should wrap this template in another template for a specific purpose.

  • title: The box title, optional (always show if given)
  • content: The box's main content (this can be collapsed)
  • collapsed: yes to collapse the box by default
  • style_outer: CSS style for the outer box
  • class_outer: CSS classes for the outer box
  • attribs_outer: Additional CSS attributes for the outer box
  • style_title: CSS style for the title
  • class_title: CSS classes for the title
  • style_content: CSS style for the content box
  • class_content: CSS classes for the content box
  • closing_divs: Whether to include closing divs for the outer box; defaults to yes.

예제

{{collapsible box
 | title = Box title
 | content = {{lorem ipsum}}
}}

Box title

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

예제

{{collapsible box
 | title = Box title
 | content = {{lorem ipsum}}
 | style_outer = border: 1px solid blue;
 | style_content = border: 1px solid red;
}}

Box title

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

예제

{{collapsible box
 | content = {{lorem ipsum}}
 | style_outer = border: 1px solid blue;
 | style_content = border: 1px solid red;
}}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

See also

편집