Template:Collapse top/testcases
![]() | This is the template test cases page for the sandbox of Template:Collapse top. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Test expand= (16 January 2015)
[edit]|expand=
options:y, yes, expand, expanded, uncollapse, uncollapsed, show
(and A=a)- but do not expand when:
|expand=
<blank>, <omitted>, no, collapse, collapsed, hide, anyothertext, whateveriliketowrite
uncollapse
[edit]{{Collapse top/sandbox|heading=Eat at Joe's|expand=y}}
Eat at Joe's
|
---|
Lorem ipsum dolor sit amet, consectetur adipiscing 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.
|
{{Collapse top/sandbox|heading=Eat at Joe's|expand=foo}}
Eat at Joe's
|
---|
Lorem ipsum dolor sit amet, consectetur adipiscing 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. |
{{Collapse top/sandbox|heading=Eat at Joe's|collapse=no}}
Eat at Joe's
|
---|
Lorem ipsum dolor sit amet, consectetur adipiscing 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. |
{{Collapse top/sandbox|heading=Eat at Joe's|collapse=whateveriliketowrite}}
Eat at Joe's
|
---|
Lorem ipsum dolor sit amet, consectetur adipiscing 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. |
blank/omitted
[edit]- {{Collapse top/sandbox|heading=Eat at Joe's|expand=}}
Eat at Joe's
|
---|
Lorem ipsum dolor sit amet, consectetur adipiscing 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. |
- {{Collapse top/sandbox|heading=Eat at Joe's|collapse=}}
Eat at Joe's
|
---|
Lorem ipsum dolor sit amet, consectetur adipiscing 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. |
- {{Collapse top/sandbox|heading=Eat at Joe's}}
Eat at Joe's
|
---|
Lorem ipsum dolor sit amet, consectetur adipiscing 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. |
New features per February 3, 2012 editprotected
[edit]Tests left-alignment of title, new red-bold code, and heading alias of title:
Eat at Joe's
|
---|
Code: {{Template:Collapse top/sandbox|heading=Eat at Joe's|expand=y}} |
Boring flamewar
|
---|
The following is a closed discussion. Please do not modify it. |
Code: {{Template:Collapse top/sandbox|Boring flamewar|warning=y|expand=y}} |
Danger
|
---|
Code: {{Template:Collapse top/sandbox|Danger|expand=y}} |
Danger
|
---|
Will Robinson |
Code: {{Template:Collapse top/sandbox|Danger|Will Robinson|expand=y}} |
No, eat at Jane's instead
|
---|
Code: {{Template:Collapse top/sandbox|heading=No, eat at Jane's instead|width=50%|indent=280px|expand=y}} |
Test of 2020-07-16 addition of |align=left
[edit]No, eat at Jane's instead
|
---|
Code: {{Template:Collapse top/sandbox|heading=No, eat at Jane's instead|align=left}} |
No, eat at Jane's instead
|
---|
Code: {{Template:Collapse top/sandbox|heading=No, eat at Jane's instead|align=ChickenNuggetBatman}} This silly one demonstrates that the parameter does left-alignment regardless of input, just like |
Outer Collapse top/sandbox
|
---|
Text |
Inner Collapse top/sandbox
|
---|
Text |
Outer Collapse top/sandbox
|
---|
Text |
Inner Collapse top/sandbox
| ||
---|---|---|
Text
|
fc=black Collapse top/sandbox
| ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Yesno
[edit]{{Collapse top |title=Heading (warning=no) |warning=no}}text {{cob}}
{{Collapse top}}
Heading (warning=no)
|
---|
The following is a closed discussion. Please do not modify it. |
text |
Heading (warning=no)
|
---|
The following is a closed discussion. Please do not modify it. |
text |
{{Collapse top |title=Heading (warning=yes) |warning=yes}}text {{cob}}
{{Collapse top}}
Heading (warning=yes)
|
---|
The following is a closed discussion. Please do not modify it. |
text |
Heading (warning=yes)
|
---|
The following is a closed discussion. Please do not modify it. |
text |
{{Collapse top |title=Heading (left=no) |left=no}}text {{cob}}
{{Collapse top}}
Heading (left=no)
|
---|
text |
Heading (left=no)
|
---|
text |
{{Collapse top |title=Heading (left=yes) |left=yes}}text {{cob}}
{{Collapse top}}
Heading (left=yes)
|
---|
text |
Heading (left=yes)
|
---|
text |
test
[edit]Main
[edit]Extended content
|
---|
Extended content
|
---|
Sandbox
[edit]Extended content
|
---|
Extended content
|
---|