Template:Collapsible test case/testcases
| 42px | This is the template test cases page for the sandbox of Template:Collapsible test case. Script error: No such module "Purge". 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 with these links: |
Contents
- 1 Default format with default title and headings
- 2 Default format with custom title and default headings
- 3 Default format with default title and custom headings
- 4 Default format with custom title and headings
- 5 Rows format with default title and headings
- 6 Rows format with custom title and headings
- 7 Columns format with default title and headings
- 8 Columns format with custom title and headings
- 9 Inline format with default title
- 10 Inline format with custom title
- 11 See also
Default format with default title and headings
{{Collapsible test case |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{tmbox}} | ||||
|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}}
{{ombox}}
{{ombox/sandbox}} Error: expandTemplate: template "ombox/sandbox" does not exist |
- Sandbox template {{Collapsible test case/sandbox}}
| {{tmbox}} | ||||
|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}}
{{ombox}}
{{ombox/sandbox}} Error: expandTemplate: template "ombox/sandbox" does not exist |
Default format with custom title and default headings
{{Collapsible test case |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| _title | ||||
|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}}
{{ombox}}
{{ombox/sandbox}} Error: expandTemplate: template "ombox/sandbox" does not exist |
- Sandbox template {{Collapsible test case/sandbox}}
| _title | ||||
|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}}
{{ombox}}
{{ombox/sandbox}} Error: expandTemplate: template "ombox/sandbox" does not exist |
Default format with default title and custom headings
Note: In default format, the following parameter values are not displayed: _caption, _rowheader, _heading0, _before, _after
{{Collapsible test case |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_caption=''_caption'' |_rowheader=''_rowheader'' |_heading0=''_heading0'' |_heading1=''_heading1'' |_heading2=''_heading2'' |_heading3=''_heading3'' |_before=''_before'' |_after=''_after'' |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| _heading1 | ||||
|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
_heading1
_heading2
_heading3 Error: expandTemplate: template "ombox/sandbox" does not exist |
- Sandbox template {{Collapsible test case/sandbox}}
| _heading1 | ||||
|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
_heading1
_heading2
_heading3 Error: expandTemplate: template "ombox/sandbox" does not exist |
Default format with custom title and headings
{{Collapsible test case |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |_caption=''_caption'' |_rowheader=''_rowheader'' |_heading0=''_heading0'' |_heading1=''_heading1'' |_heading2=''_heading2'' |_heading3=''_heading3'' |_before=''_before'' |_after=''_after'' |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| _title | ||||
|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
_heading1
_heading2
_heading3 Error: expandTemplate: template "ombox/sandbox" does not exist |
- Sandbox template {{Collapsible test case/sandbox}}
| _title | ||||
|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
_heading1
_heading2
_heading3 Error: expandTemplate: template "ombox/sandbox" does not exist |
Rows format with default title and headings
{{Collapsible test case |_format=rows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{tmbox}} | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{tmbox}} | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
|
Rows format with custom title and headings
Note: In rows format, the following parameter values are not displayed: _rowheader, _heading0, _before, _after
{{Collapsible test case |_format=rows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |_caption=''_caption'' |_rowheader=''_rowheader'' |_heading0=''_heading0'' |_heading1=''_heading1'' |_heading2=''_heading2'' |_heading3=''_heading3'' |_before=''_before'' |_after=''_after'' |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| _title | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| _title | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
|
Columns format with default title and headings
{{Collapsible test case |_format=columns |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{tmbox}} | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{tmbox}} | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
|
Columns format with custom title and headings
{{Collapsible test case |_format=columns |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |_caption=''_caption'' |_rowheader=''_rowheader'' |_heading0=''_heading0'' |_heading1=''_heading1'' |_heading2=''_heading2'' |_heading3=''_heading3'' |_before=<div style="border: 1px solid grey">''_before'' |_after=''_after''</div> |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| _title | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| _title | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
|
Inline format with default title
The default title of the collapsible box is the name of _template1. The inline format does not currently display headings (default or custom) for each template inside the box. The names of _template1/2/3 are shown in the code (when _showcode=yes), unlike the default, rows, or table formats where only the name of _template1 is shown in the code.
{{Collapsible test case |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_caption=''_caption'' |_rowheader=''_rowheader'' |_heading0=''_heading0'' |_heading1=''_heading1'' |_heading2=''_heading2'' |_heading3=''_heading3'' |_before=''_before'' |_after=''_after'' |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| _heading1 |
|---|
- Sandbox template {{Collapsible test case/sandbox}}
| _heading1 |
|---|
Inline format with custom title
A custom title for the collapsible box can be assigned via _title. The inline format does not currently display headings (default or custom) for each template inside the box. The names of _template1/2/3 are shown in the code (when _showcode=yes), unlike the default, rows, or table formats where only the name of _template1 is shown in the code.
{{Collapsible test case |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| _title |
|---|
- Sandbox template {{Collapsible test case/sandbox}}
| _title |
|---|