mNo edit summary |
mNo edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <div class="mw-collapsible {{#if:{{{expand|}}}||mw-collapsed}}" style="border:{{{border|1px solid #332f24}}}; margin:{{{margin|1em 0}}}; width:{{{width|100%}}}; padding:0; box-sizing:content-box;"><div style="background:{{{bg-header|#332f24}}}; color:#dfcf99; text-align:{{#if:{{{left|}}}|left|center}}; font-weight:bold; margin:0; padding:{{{padding-header|2px 0}}}; box-sizing:content-box;">{{{1|{{{header|Extended content}}}}}}</div><div class="mw-collapsible-content" style="padding:{{{padding-content|0 1em}}}; background:{{{bg-content|transparent}}}; text-align:left; box-sizing:content-box;"><noinclude> |
||
− | <div style="margin-left:{{{indent|0px}}}"><!-- NOTE: width renders incorrectly if added to main STYLE section --> |
||
− | {| <!-- Template:Collapse top --> class="mw-collapsible {{{{{|safesubst:}}}#if:{{{expand|}}}||mw-collapsed}}" style="background: {{{bg1|transparent}}}; text-align: left; border: {{{border|1px}}} solid {{{b-color|#DFCF99}}}; margin: 0.2em auto auto; width:{{{{{|safesubst:}}}#if:{{{width|}}}|{{{width}}}|100%}}; clear: {{{clear|both}}}; padding: 1px;" |
||
− | |- |
||
− | ! style="background: {{{bg|#{{main other|332F24|332F24}}}}}; font-size:87%; padding:0.2em 0.3em; text-align:{{{{{|safesubst:}}}#if:{{{left|}}}|left|center}}; color: #DFCF99" | <span style="font-size:115%">{{{1|{{{title|{{{reason|{{{header|{{{heading|Extended content}}} }}} }}} }}} }}}</span> |
||
− | {{{{{|safesubst:}}}#if:{{{warning|{{{2|}}}}}} |
||
− | |{{{{{|safesubst:}}}!}}- |
||
− | {{{{{|safesubst:}}}!}} style="text-align:center; font-style:italic;" {{{{{|safesubst:}}}!}} {{{2|The following is a closed debate. {{strongbad|Please do not modify it.}} }}} }} |
||
− | |- |
||
− | | style="border: solid {{{border2|1px #211F18}}}; padding: {{{padding|8px}}}; background: {{{bg2|#211F18}}};" {{{{{|safesubst:}}}!}}<noinclude> |
||
Lorem ipsum |
Lorem ipsum |
||
− | {{ |
+ | {{collapse bottom}} |
− | {{ |
+ | {{documentation}} |
</noinclude> |
</noinclude> |
Revision as of 18:29, 21 November 2016
Extended content
Lorem ipsum
Shortcut
- {{Cot}}
The {{collapse top}}
template (or {{cot}}
), and its paired template {{collapse bottom}}
(or {{cob}}
), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}}
can be used instead.
Usage
Place {{collapse top}}
(or {{cot}}
), and {{collapse bottom}}
(or {{cob}}
), around the text to be collapsed. For example:
{{collapse top|This is the title text|OptionalIDToMakeThatEachColapsibleCollapseAndExpandSeparately}} Sample contents text {{collapse bottom}}
produces:
This is the title text
Sample contents text
The above documentation is transcluded from Template:Collapse top/doc.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.