Template:Collapsible test case/testcases

From blackwiki
< Template:Collapsible test case
Revision as of 22:04, 13 August 2017 by imported>Zyxw (add tests with _showheader=no)
Jump to navigation Jump to search

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 default title and _showheader=no

{{Collapsible test case |_showheader=no |_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}}

Error: expandTemplate: template "ombox/sandbox" does not exist

Sandbox template {{Collapsible test case/sandbox}}
{{tmbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}

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}}
{{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

Rows format with default title and _showheader=no

{{Collapsible test case |_format=rows |_showheader=no |_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}}
Error: expandTemplate: template "ombox/sandbox" does not exist
Sandbox template {{Collapsible test case/sandbox}}
{{tmbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
Error: expandTemplate: template "ombox/sandbox" does not exist

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}}
_caption
_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}}
_caption
_heading1
_heading2
_heading3
Error: expandTemplate: template "ombox/sandbox" does not exist

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}}
Side by side comparison
{{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}}
Side by side comparison
{{tmbox}}{{ombox}}{{ombox/sandbox}}
Error: expandTemplate: template "ombox/sandbox" does not exist

Columns format with default title and _showheader=no

{{Collapsible test case |_format=columns |_showheader=no |_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}}
Error: expandTemplate: template "ombox/sandbox" does not exist
Sandbox template {{Collapsible test case/sandbox}}
{{tmbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
Error: expandTemplate: template "ombox/sandbox" does not exist

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}}
_caption
_heading0_heading1_heading2_heading3
_rowheader
_before_after
_before_after
_beforeError: expandTemplate: template "ombox/sandbox" does not exist_after
Sandbox template {{Collapsible test case/sandbox}}
_title
{{tmbox|text=Lorem ipsum dolor sit amet}}
_caption
_heading0_heading1_heading2_heading3
_rowheader
_before_after
_before_after
_beforeError: expandTemplate: template "ombox/sandbox" does not exist_after

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
  • {{tmbox|text=Lorem ipsum dolor sit amet}}
  • {{ombox|text=Lorem ipsum dolor sit amet}}
  • {{ombox/sandbox|text=Lorem ipsum dolor sit amet}}Error: expandTemplate: template "ombox/sandbox" does not exist
Sandbox template {{Collapsible test case/sandbox}}
_heading1
  • {{tmbox|text=Lorem ipsum dolor sit amet}}
  • {{ombox|text=Lorem ipsum dolor sit amet}}
  • {{ombox/sandbox|text=Lorem ipsum dolor sit amet}}Error: expandTemplate: template "ombox/sandbox" does not exist

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
  • {{tmbox|text=Lorem ipsum dolor sit amet}}
  • {{ombox|text=Lorem ipsum dolor sit amet}}
  • {{ombox/sandbox|text=Lorem ipsum dolor sit amet}}Error: expandTemplate: template "ombox/sandbox" does not exist
Sandbox template {{Collapsible test case/sandbox}}
_title
  • {{tmbox|text=Lorem ipsum dolor sit amet}}
  • {{ombox|text=Lorem ipsum dolor sit amet}}
  • {{ombox/sandbox|text=Lorem ipsum dolor sit amet}}Error: expandTemplate: template "ombox/sandbox" does not exist

See also