Difference between revisions of "Template:Collapse top/testcases"
imported>SMcCandlish (this parameters don't do yes/no tests) |
imported>SMcCandlish (tests) |
||
| Line 2: | Line 2: | ||
:{{para|expand}} options: <code>y, yes, expand, expanded, uncollapse, uncollapsed, show</code> (and A=a) | :{{para|expand}} options: <code>y, yes, expand, expanded, uncollapse, uncollapsed, show</code> (and A=a) | ||
:but do not expand when: | :but do not expand when: | ||
| − | :{{para|expand}} <code><blank>, <omitted>, no, collapse, collapsed, hide, anyothertext, | + | :{{para|expand}} <code><blank>, <omitted>, no, collapse, collapsed, hide, anyothertext, whateveriliketowrite</code> |
===uncollapse=== | ===uncollapse=== | ||
<nowiki>{{Collapse top/sandbox|heading=Eat at Joe's|expand=y}}</nowiki> | <nowiki>{{Collapse top/sandbox|heading=Eat at Joe's|expand=y}}</nowiki> | ||
| Line 16: | Line 16: | ||
<nowiki>{{Collapse top/sandbox|heading=Eat at Joe's|collapse=no}}</nowiki> | <nowiki>{{Collapse top/sandbox|heading=Eat at Joe's|collapse=no}}</nowiki> | ||
{{Collapse top/sandbox|heading=Eat at Joe's|collapse=no}} | {{Collapse top/sandbox|heading=Eat at Joe's|collapse=no}} | ||
| + | {{lorem ipsum}} | ||
| + | {{collapse bottom}} | ||
| + | |||
| + | <nowiki>{{Collapse top/sandbox|heading=Eat at Joe's|collapse=whateveriliketowrite}}</nowiki> | ||
| + | {{Collapse top/sandbox|heading=Eat at Joe's|collapse=whateveriliketowrite}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{collapse bottom}} | {{collapse bottom}} | ||
| Line 59: | Line 64: | ||
{{Template:Collapse top/sandbox|heading=No, eat at Jane's instead|width=50%|indent=280px|expand=y}} | {{Template:Collapse top/sandbox|heading=No, eat at Jane's instead|width=50%|indent=280px|expand=y}} | ||
Code: <nowiki>{{Template:Collapse top/sandbox|heading=No, eat at Jane's instead|width=50%|indent=280px|expand=y}}</nowiki> | Code: <nowiki>{{Template:Collapse top/sandbox|heading=No, eat at Jane's instead|width=50%|indent=280px|expand=y}}</nowiki> | ||
| + | {{collapse bottom}} | ||
| + | |||
| + | == Test of 2020-07-16 addition of {{para|align|left}} == | ||
| + | |||
| + | {{Template:Collapse top/sandbox|heading=No, eat at Jane's instead|align=left}} | ||
| + | Code: <nowiki>{{Template:Collapse top/sandbox|heading=No, eat at Jane's instead|align=left}}</nowiki> | ||
| + | {{collapse bottom}} | ||
| + | |||
| + | {{Template:Collapse top/sandbox|heading=No, eat at Jane's instead|align=ChickenNuggetBatman}} | ||
| + | Code: <nowiki>{{Template:Collapse top/sandbox|heading=No, eat at Jane's instead|align=ChickenNuggetBatman}}</nowiki> | ||
| + | |||
| + | This silly one demonstrates that the parameter does left-alignment regardless of input, just like {{para|left|ChickenNuggetBatman}}. Lack of {{!mxt|center}} and {{!mxt|right}} options is intentional (centring is the default, and right alignment is only useful for RtL languages). | ||
{{collapse bottom}} | {{collapse bottom}} | ||
Latest revision as of 03:54, 17 July 2020
Contents
Test expand= (16 January 2015)
|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
{{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
- {{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
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
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 |
Compare sandbox to {{Collapse}}
Outer Collapse top/sandbox
| ||||||||
|---|---|---|---|---|---|---|---|---|
|
Text
|
fc=black Collapse top/sandbox
| ||
|---|---|---|
|
Outer Collapse
| ||||||||
|---|---|---|---|---|---|---|---|---|
|
Text
|
Collapse
| ||
|---|---|---|
|
Text
|