Difference between revisions of "Template:Collapsible test case/testcases"
imported>Zyxw (add tests of _prefix parameter) |
imported>Zyxw (add tests of "_titlecode" parameter) |
||
| Line 25: | Line 25: | ||
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ||
{{{{BASEPAGENAME}}/sandbox |_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}} | {{{{BASEPAGENAME}}/sandbox |_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}} | ||
| + | |||
| + | == Default format with _titlecode=yes == | ||
| + | |||
| + | <kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd> | ||
| + | ; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}} | ||
| + | {{{{BASEPAGENAME}} |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}} | ||
| + | ; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ||
| + | {{{{BASEPAGENAME}}/sandbox |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}} | ||
== Default format with _output=nowiki == | == Default format with _output=nowiki == | ||
| Line 79: | Line 87: | ||
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ||
{{{{BASEPAGENAME}}/sandbox |_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}} | {{{{BASEPAGENAME}}/sandbox |_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}} | ||
| + | |||
| + | == Columns format with _titlecode=yes == | ||
| + | |||
| + | <kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=columns |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd> | ||
| + | ; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}} | ||
| + | {{{{BASEPAGENAME}} |_format=columns |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}} | ||
| + | ; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ||
| + | {{{{BASEPAGENAME}}/sandbox |_format=columns |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}} | ||
== Columns format with _output=nowiki == | == Columns format with _output=nowiki == | ||
| Line 126: | Line 142: | ||
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ||
{{{{BASEPAGENAME}}/sandbox |_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}} | {{{{BASEPAGENAME}}/sandbox |_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}} | ||
| + | |||
| + | == Rows format with _titlecode=yes == | ||
| + | |||
| + | <kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=rows |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd> | ||
| + | ; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}} | ||
| + | {{{{BASEPAGENAME}} |_format=rows |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}} | ||
| + | ; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ||
| + | {{{{BASEPAGENAME}}/sandbox |_format=rows |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}} | ||
== Rows format with _output=nowiki == | == Rows format with _output=nowiki == | ||
| Line 174: | Line 198: | ||
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ||
{{{{BASEPAGENAME}}/sandbox |_format=tablerows |_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}} | {{{{BASEPAGENAME}}/sandbox |_format=tablerows |_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}} | ||
| + | |||
| + | == Tablerows format with _titlecode=yes == | ||
| + | |||
| + | <kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=tablerows |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd> | ||
| + | ; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}} | ||
| + | {{{{BASEPAGENAME}} |_format=tablerows |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}} | ||
| + | ; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ||
| + | {{{{BASEPAGENAME}}/sandbox |_format=tablerows |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}} | ||
== Tablerows format with _output=nowiki == | == Tablerows format with _output=nowiki == | ||
| Line 232: | Line 264: | ||
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ||
{{{{BASEPAGENAME}}/sandbox |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |_heading1=''heading1'' |text=Lorem ipsum dolor sit amet}} | {{{{BASEPAGENAME}}/sandbox |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |_heading1=''heading1'' |text=Lorem ipsum dolor sit amet}} | ||
| + | |||
| + | == Inline format with _titlecode=yes == | ||
| + | |||
| + | <kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=inline |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd> | ||
| + | ; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}} | ||
| + | {{{{BASEPAGENAME}} |_format=inline |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}} | ||
| + | ; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}} | ||
| + | {{{{BASEPAGENAME}}/sandbox |_format=inline |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}} | ||
== Inline format with _addline == | == Inline format with _addline == | ||
| Line 277: | Line 317: | ||
* [[Template:Test case/testcases]] | * [[Template:Test case/testcases]] | ||
* [[Template:Test case nowiki/testcases]] | * [[Template:Test case nowiki/testcases]] | ||
| + | * [[Template:Nowiki template demo/testcases]] | ||
| + | * [[Module:Template test case/testcases]] | ||
Latest revision as of 03:16, 10 April 2019
| 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
- 2 Default format with _showheader=no
- 3 Default format with _title and custom headings
- 4 Default format with _titlecode=yes
- 5 Default format with _output=nowiki
- 6 Default format with _output=nowiki+
- 7 Columns format
- 8 Columns format with _showcaption=no
- 9 Columns format with _showheader=no
- 10 Columns format with _title and custom headings
- 11 Columns format with _titlecode=yes
- 12 Columns format with _output=nowiki
- 13 Columns format with _output=nowiki+
- 14 Rows format
- 15 Rows format with _showheader=no
- 16 Rows format with _title and custom headings
- 17 Rows format with _titlecode=yes
- 18 Rows format with _output=nowiki
- 19 Rows format with _output=nowiki+
- 20 Tablerows format
- 21 Tablerows format with _showheader=no
- 22 Tablerows format with _title and custom headings
- 23 Tablerows format with _titlecode=yes
- 24 Tablerows format with _output=nowiki
- 25 Tablerows format with _output=nowiki+
- 26 Inline format
- 27 Inline format with _showcode=yes
- 28 Inline format with _heading1
- 29 Inline format with _title
- 30 Inline format with _titlecode=yes
- 31 Inline format with _addline
- 32 Inline format with _output=nowiki
- 33 Inline format with _output=nowiki+
- 34 Inline format with _prefix=#
- 35 Inline format with _prefix=:
- 36 See also
Default format
{{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 _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 _title and custom headings
The following parameter values are not displayed: _caption, _rowheader, _heading0, _before, _after.
{{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 |
Default format with _titlecode=yes
{{Collapsible test case |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox|text=Lorem ipsum dolor sit amet}} | ||
|---|---|---|
|
{{ombox}}
{{ombox/sandbox}} Error: expandTemplate: template "ombox/sandbox" does not exist |
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox|text=Lorem ipsum dolor sit amet}} | ||
|---|---|---|
|
{{ombox}}
{{ombox/sandbox}} Error: expandTemplate: template "ombox/sandbox" does not exist |
Default format with _output=nowiki
{{Collapsible test case |_output=nowiki |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox}} |
|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
{{ombox}} <table class="plainlinks plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:OOjs UI icon information-progressive.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table> {{ombox/sandbox}} <strong class="error">Error: expandTemplate: template "ombox/sandbox" does not exist</strong> |
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox}} |
|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
{{ombox}} <table class="plainlinks plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:OOjs UI icon information-progressive.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table> {{ombox/sandbox}} <strong class="error">Error: expandTemplate: template "ombox/sandbox" does not exist</strong> |
Default format with _output=nowiki+
{{Collapsible test case |_output=nowiki+ |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox}} | ||
|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
{{ombox}}
<table class="plainlinks plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:OOjs UI icon information-progressive.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table> {{ombox/sandbox}} Error: expandTemplate: template "ombox/sandbox" does not exist<strong class="error">Error: expandTemplate: template "ombox/sandbox" does not exist</strong> |
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox}} | ||
|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
{{ombox}}
<table class="plainlinks plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:OOjs UI icon information-progressive.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table> {{ombox/sandbox}} Error: expandTemplate: template "ombox/sandbox" does not exist<strong class="error">Error: expandTemplate: template "ombox/sandbox" does not exist</strong> |
{{Collapsible test case |_output=nowiki+ |_showcode=yes |_template=Height |m=1.51}}
- Main template {{Collapsible test case}}
| {{Height}} |
|---|
{{Height|m=1.51}}
{{Height}} 1.51 m (4 ft 11 1⁄2 in)1.51 m (4 ft <span class="frac nowrap">11<span class="visualhide"> </span><sup>1</sup>⁄<sub>2</sub></span> in) {{Height/sandbox}} 1.51 m (4 ft 11 1⁄2 in)1.51 m (4 ft <span class="frac nowrap">11<span class="visualhide"> </span><sup>1</sup>⁄<sub>2</sub></span> in) |
- Sandbox template {{Collapsible test case/sandbox}}
| {{Height}} |
|---|
{{Height|m=1.51}}
{{Height}} 1.51 m (4 ft 11 1⁄2 in)1.51 m (4 ft <span class="frac nowrap">11<span class="visualhide"> </span><sup>1</sup>⁄<sub>2</sub></span> in) {{Height/sandbox}} 1.51 m (4 ft 11 1⁄2 in)1.51 m (4 ft <span class="frac nowrap">11<span class="visualhide"> </span><sup>1</sup>⁄<sub>2</sub></span> in) |
Columns format
{{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 _showcaption=no
{{Collapsible test case |_format=columns |_showcaption=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}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{tmbox}} | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
|
Columns format with _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}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{tmbox}} | |||||||
|---|---|---|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
|
Columns format with _title and custom 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}}
|
Columns format with _titlecode=yes
{{Collapsible test case |_format=columns |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox|text=Lorem ipsum dolor sit amet}} | ||||||
|---|---|---|---|---|---|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox|text=Lorem ipsum dolor sit amet}} | ||||||
|---|---|---|---|---|---|---|
|
Columns format with _output=nowiki
{{Collapsible test case |_format=columns |_output=nowiki |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox}} | ||||
|---|---|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox}} | ||||
|---|---|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
|
Columns format with _output=nowiki+
{{Collapsible test case |_format=columns |_output=nowiki+ |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox}} | ||||||
|---|---|---|---|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox}} | ||||||
|---|---|---|---|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
|
{{Collapsible test case |_format=columns |_output=nowiki+ |_showcode=yes |_template=Height |m=1.51}}
- Main template {{Collapsible test case}}
| {{Height}} | ||||
|---|---|---|---|---|
{{Height|m=1.51}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{Height}} | ||||
|---|---|---|---|---|
{{Height|m=1.51}}
|
Rows format
{{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 _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}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{tmbox}} | |||||||
|---|---|---|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
|
Rows format with _title and custom headings
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}}
|
Rows format with _titlecode=yes
{{Collapsible test case |_format=rows |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox|text=Lorem ipsum dolor sit amet}} | ||||||
|---|---|---|---|---|---|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox|text=Lorem ipsum dolor sit amet}} | ||||||
|---|---|---|---|---|---|---|
|
Rows format with _output=nowiki
{{Collapsible test case |_format=rows |_output=nowiki |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox}} | ||||
|---|---|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox}} | ||||
|---|---|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
|
Rows format with _output=nowiki+
{{Collapsible test case |_format=rows |_output=nowiki+ |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox}} | ||||||
|---|---|---|---|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox}} | ||||||
|---|---|---|---|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
|
{{Collapsible test case |_format=rows |_output=nowiki+ |_showcode=yes |_template=Height |m=1.51}}
- Main template {{Collapsible test case}}
| {{Height}} | ||||
|---|---|---|---|---|
{{Height|m=1.51}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{Height}} | ||||
|---|---|---|---|---|
{{Height|m=1.51}}
|
Tablerows format
{{Collapsible test case |_format=tablerows |_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}}
|
Tablerows format with _showheader=no
The output here is the same as in rows format with _showheader=no.
{{Collapsible test case |_format=tablerows |_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}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{tmbox}} | |||||||
|---|---|---|---|---|---|---|---|
{{tmbox|text=Lorem ipsum dolor sit amet}}
|
Tablerows format with _title and custom headings
The following parameter values are not displayed: _rowheader, _heading0, _before, _after.
{{Collapsible test case |_format=tablerows |_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}}
|
Tablerows format with _titlecode=yes
{{Collapsible test case |_format=tablerows |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox|text=Lorem ipsum dolor sit amet}} | ||||||||
|---|---|---|---|---|---|---|---|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox|text=Lorem ipsum dolor sit amet}} | ||||||||
|---|---|---|---|---|---|---|---|---|
|
Tablerows format with _output=nowiki
{{Collapsible test case |_format=tablerows |_output=nowiki |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox}} | ||||||
|---|---|---|---|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox}} | ||||||
|---|---|---|---|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
|
Tablerows format with _output=nowiki+
{{Collapsible test case |_format=tablerows |_output=nowiki+ |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox}} | ||||||||
|---|---|---|---|---|---|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox}} | ||||||||
|---|---|---|---|---|---|---|---|---|
{{ombox|text=Lorem ipsum dolor sit amet}}
|
{{Collapsible test case |_format=tablerows |_output=nowiki+ |_showcode=yes |_template=Height |m=1.51}}
- Main template {{Collapsible test case}}
| {{Height}} | ||||||
|---|---|---|---|---|---|---|
{{Height|m=1.51}}
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{Height}} | ||||||
|---|---|---|---|---|---|---|
{{Height|m=1.51}}
|
Inline format
The default title of the collapsible box is the name of _template1.
{{Collapsible test case |_format=inline |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{tmbox}} | ||||
|---|---|---|---|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{tmbox}} | ||||
|---|---|---|---|---|
|
Inline format with _showcode=yes
The names of _template1/2/3 are shown in the code, unlike the default, column, rows, or tablerows formats where only the name of _template1 is shown in the code. The inline format does not currently display headings (default or custom).
{{Collapsible test case |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_caption=''_caption'' |_rowheader=''_rowheader'' |_heading0=''_heading0'' |_heading1= |_heading2=''_heading2'' |_heading3=''_heading3'' |_before=''_before'' |_after=''_after'' |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{tmbox}} | ||||
|---|---|---|---|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{tmbox}} | ||||
|---|---|---|---|---|
|
Inline format with _heading1
If _heading1 is defined, that will be used in place of the default title.
{{Collapsible test case |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_heading1=''_heading1'' |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| _heading1 | ||||
|---|---|---|---|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| _heading1 | ||||
|---|---|---|---|---|
|
Inline format with _title
A custom title for the collapsible box can be assigned via _title. As shown, this overrides _heading1.
{{Collapsible test case |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |_heading1=''heading1'' |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| _title | ||||
|---|---|---|---|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| _title | ||||
|---|---|---|---|---|
|
Inline format with _titlecode=yes
{{Collapsible test case |_format=inline |_titlecode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}
- Main template {{Collapsible test case}}
| {{ombox|text=Lorem ipsum dolor sit amet}} | ||
|---|---|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{ombox|text=Lorem ipsum dolor sit amet}} | ||
|---|---|---|
|
Inline format with _addline
The contents of the _addline parameter will be displayed next to an additional bullet at the end of the list.
{{Collapsible test case |_format=inline |_showcode=yes |_template1=Height |m=1.51 |_addline=<code><nowiki>{{Cvt|1.51|m|frac=2}}</nowiki></code> → {{Cvt|1.51|m|frac=2}} }}
- Main template {{Collapsible test case}}
| {{Height}} |
|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{Height}} |
|---|
|
Inline format with _output=nowiki
{{Collapsible test case |_format=inline |_output=nowiki |_showcode=yes |_template=Height |m=1.51}}
- Main template {{Collapsible test case}}
| {{Height}} |
|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{Height}} |
|---|
|
Inline format with _output=nowiki+
{{Collapsible test case |_format=inline |_output=nowiki+ |_showcode=yes |_template=Height |m=1.51}}
- Main template {{Collapsible test case}}
| {{Height}} |
|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{Height}} |
|---|
|
Inline format with _prefix=#
{{Collapsible test case |_format=inline |_prefix=# |_showcode=yes |_template=Height |m=1.51}}
- Main template {{Collapsible test case}}
| {{Height}} |
|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{Height}} |
|---|
|
Inline format with _prefix=:
{{Collapsible test case |_format=inline |_prefix=: |_showcode=yes |_template=Height |m=1.51}}
- Main template {{Collapsible test case}}
| {{Height}} |
|---|
|
- Sandbox template {{Collapsible test case/sandbox}}
| {{Height}} |
|---|
|