Difference between revisions of "Template:Collapsible test case/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
imported>Zyxw
(add tests, misc formatting)
Line 1: Line 1:
 
{{Testcases notice <!--|toc=on-->}}
 
{{Testcases notice <!--|toc=on-->}}
  
== Default format with default title and headings ==
+
== Default format ==
  
 
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
Line 9: Line 9:
 
{{{{BASEPAGENAME}}/sandbox |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 
{{{{BASEPAGENAME}}/sandbox |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
  
== Default format with default title and _showheader=no ==
+
== Default format with _output=nowiki ==
 +
 
 +
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 +
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 +
{{{{BASEPAGENAME}} |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 +
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}}
 +
{{{{BASEPAGENAME}}/sandbox |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 +
 
 +
== Default format with _showheader=no ==
  
 
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
Line 17: Line 25:
 
{{{{BASEPAGENAME}}/sandbox |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 
{{{{BASEPAGENAME}}/sandbox |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
  
== Default format with custom title and default headings ==
+
== Default format with _title and custom headings ==
 +
The following parameter values are not displayed: _caption, _rowheader, _heading0, _before, _after.
 +
 
 +
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_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}}</nowiki></kbd>
 +
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 +
{{{{BASEPAGENAME}} |_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}}
 +
; 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}}
 +
 
 +
== Columns format ==
 +
 
 +
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=columns |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 +
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 +
{{{{BASEPAGENAME}} |_format=columns |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 +
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}}
 +
{{{{BASEPAGENAME}}/sandbox |_format=columns |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 +
 
 +
== Columns format with _output=nowiki ==
  
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
+
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=columns |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
{{{{BASEPAGENAME}} |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |text=Lorem ipsum dolor sit amet}}
+
{{{{BASEPAGENAME}} |_format=columns |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 
; 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'' |text=Lorem ipsum dolor sit amet}}
+
{{{{BASEPAGENAME}}/sandbox |_format=columns |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
  
== Default format with default title and custom headings ==
+
== Columns format with _showheader=no ==
Note: In default format, the following parameter values are not displayed: _caption, _rowheader, _heading0, _before, _after
 
  
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_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}}</nowiki></kbd>
+
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=columns |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
{{{{BASEPAGENAME}} |_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}}
+
{{{{BASEPAGENAME}} |_format=columns |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}}
 
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}}
{{{{BASEPAGENAME}}/sandbox |_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}}
+
{{{{BASEPAGENAME}}/sandbox |_format=columns |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
  
== Default format with custom title and headings ==
+
== Columns format with _title and custom headings ==
  
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_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}}</nowiki></kbd>
+
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_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}}</nowiki></kbd>
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
{{{{BASEPAGENAME}} |_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}} |_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}}
 
; 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 |_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}}
  
== Rows format with default title and headings ==
+
== Rows format ==
  
 
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=rows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=rows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
Line 50: Line 74:
 
{{{{BASEPAGENAME}}/sandbox |_format=rows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 
{{{{BASEPAGENAME}}/sandbox |_format=rows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
  
== Rows format with default title and _showheader=no ==
+
== Rows format with _output=nowiki ==
 +
 
 +
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=rows |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 +
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 +
{{{{BASEPAGENAME}} |_format=rows |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 +
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}}
 +
{{{{BASEPAGENAME}}/sandbox |_format=rows |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 +
 
 +
== Rows format with _showheader=no ==
  
 
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=rows |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=rows |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
Line 58: Line 90:
 
{{{{BASEPAGENAME}}/sandbox |_format=rows |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 
{{{{BASEPAGENAME}}/sandbox |_format=rows |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
  
== Rows format with custom title and headings ==
+
== Rows format with _title and custom headings ==
Note: In rows format, the following parameter values are not displayed: _rowheader, _heading0, _before, _after
+
The following parameter values are not displayed: _rowheader, _heading0, _before, _after.
  
 
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_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}}</nowiki></kbd>
 
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_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}}</nowiki></kbd>
Line 67: Line 99:
 
{{{{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}}
  
== Columns format with default title and headings ==
+
== Tablerows format ==
 +
 
 +
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=tablerows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 +
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 +
{{{{BASEPAGENAME}} |_format=tablerows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 +
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}}
 +
{{{{BASEPAGENAME}}/sandbox |_format=tablerows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 +
 
 +
== Tablerows format with _output=nowiki ==
 +
 
 +
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=tablerows |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 +
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 +
{{{{BASEPAGENAME}} |_format=tablerows |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 +
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}}
 +
{{{{BASEPAGENAME}}/sandbox |_format=tablerows |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 +
 
 +
== Tablerows format with _showheader=no ==
 +
The output here is the same as in rows format with _showheader=no.
 +
 
 +
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=tablerows |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 +
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 +
{{{{BASEPAGENAME}} |_format=tablerows |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 +
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}}
 +
{{{{BASEPAGENAME}}/sandbox |_format=tablerows |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 +
 
 +
== Tablerows format with _title and custom headings ==
 +
The following parameter values are not displayed: _rowheader, _heading0, _before, _after.
 +
 
 +
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_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}}</nowiki></kbd>
 +
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 +
{{{{BASEPAGENAME}} |_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}}
 +
; 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}}
  
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=columns |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
+
== Inline format ==
 +
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 (if _heading1 is defined that will be used as the title, see next test case). 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.
 +
 
 +
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_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}}</nowiki></kbd>
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
{{{{BASEPAGENAME}} |_format=columns |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
+
{{{{BASEPAGENAME}} |_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}}
 
; 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 |text=Lorem ipsum dolor sit amet}}
+
{{{{BASEPAGENAME}}/sandbox |_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}}
  
== Columns format with default title and _showheader=no ==
+
== Inline format with _output=nowiki ==
  
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=columns |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
+
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=inline |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
{{{{BASEPAGENAME}} |_format=columns |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
+
{{{{BASEPAGENAME}} |_format=inline |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
 
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}}
 
; Sandbox template <nowiki>{{</nowiki>{{BASEPAGENAME}}/sandbox}}
{{{{BASEPAGENAME}}/sandbox |_format=columns |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
+
{{{{BASEPAGENAME}}/sandbox |_format=inline |_output=nowiki |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}
  
== Columns format with custom title and headings ==
+
== Inline format with _heading1 ==
 +
If _heading1 is defined, that will be used in place of the default title.
  
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_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}}</nowiki></kbd>
+
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_heading1=''_heading1'' |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
{{{{BASEPAGENAME}} |_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}} |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_heading1=''_heading1'' |text=Lorem ipsum dolor sit amet}}
 
; 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=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_heading1=''_heading1'' |text=Lorem ipsum dolor sit amet}}
  
== Inline format with default title ==
+
== Inline format with _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.
+
A custom title for the collapsible box can be assigned via _title. As shown, this overrides _heading1.
  
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_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}}</nowiki></kbd>
+
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |_heading1=''heading1'' |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
{{{{BASEPAGENAME}} |_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}}
+
{{{{BASEPAGENAME}} |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |_heading1=''heading1'' |text=Lorem ipsum dolor sit amet}}
 
; 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 |_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=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |_heading1=''heading1'' |text=Lorem ipsum dolor sit amet}}
  
== Inline format with custom title==
+
== Inline format with _addline ==
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.
+
The contents of the _addline parameter will be displayed next to an additional bullet at the end of the list.
  
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |text=Lorem ipsum dolor sit amet}}</nowiki></kbd>
+
<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |_format=inline |_showcode=yes |_template1=Height |m=1.51 |_addline=<code>&lt;nowiki>{{Cvt|1.51|m|frac=2}}&lt;/nowiki></code> → {{Cvt|1.51|m|frac=2}} }}</nowiki></kbd>
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
 
; Main template <nowiki>{{</nowiki>{{BASEPAGENAME}}}}
{{{{BASEPAGENAME}} |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_title=''_title'' |text=Lorem ipsum dolor sit amet}}
+
{{{{BASEPAGENAME}} |_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}} }}
 
; 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'' |text=Lorem ipsum dolor sit amet}}
+
{{{{BASEPAGENAME}}/sandbox |_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}} }}
  
 
== See also ==
 
== See also ==
 
* [[Template:Test case/testcases]]
 
* [[Template:Test case/testcases]]
 
* [[Template:Test case nowiki/testcases]]
 
* [[Template:Test case nowiki/testcases]]

Revision as of 06:51, 10 August 2018

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 _output=nowiki

{{Collapsible test case |_output=nowiki |_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}}

<table class="plainlinks plainlinks tmbox tmbox-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}}

<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}}
{{tmbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}

{{tmbox}}

<table class="plainlinks plainlinks tmbox tmbox-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}}

<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 _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

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}}
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 _output=nowiki

{{Collapsible test case |_format=columns |_output=nowiki |_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}}
<table class="plainlinks plainlinks tmbox tmbox-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> <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> <strong class="error">Error: expandTemplate: template "ombox/sandbox" does not exist</strong>
Sandbox template {{Collapsible test case/sandbox}}
{{tmbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
Side by side comparison
{{tmbox}}{{ombox}}{{ombox/sandbox}}
<table class="plainlinks plainlinks tmbox tmbox-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> <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> <strong class="error">Error: expandTemplate: template "ombox/sandbox" does not exist</strong>

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

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}}
{{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 _output=nowiki

{{Collapsible test case |_format=rows |_output=nowiki |_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}}
<table class="plainlinks plainlinks tmbox tmbox-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}}
<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}}
{{tmbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}}
<table class="plainlinks plainlinks tmbox tmbox-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}}
<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>

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

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

Tablerows format with _output=nowiki

{{Collapsible test case |_format=tablerows |_output=nowiki |_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}} <table class="plainlinks plainlinks tmbox tmbox-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}} <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}}
{{tmbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}} <table class="plainlinks plainlinks tmbox tmbox-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}} <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>

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

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

Inline format

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 (if _heading1 is defined that will be used as the title, see next test case). 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= |_heading2=''_heading2'' |_heading3=''_heading3'' |_before=''_before'' |_after=''_after'' |text=Lorem ipsum dolor sit amet}}

Main template {{Collapsible test case}}
{{tmbox}}
  • {{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}}
{{tmbox}}
  • {{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 _output=nowiki

{{Collapsible test case |_format=inline |_output=nowiki |_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}} → <table class="plainlinks plainlinks tmbox tmbox-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|text=Lorem ipsum dolor sit amet}} → <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|text=Lorem ipsum dolor sit amet}} → <strong class="error">Error: expandTemplate: template "ombox/sandbox" does not exist</strong>
Sandbox template {{Collapsible test case/sandbox}}
{{tmbox}}
  • {{tmbox|text=Lorem ipsum dolor sit amet}} → <table class="plainlinks plainlinks tmbox tmbox-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|text=Lorem ipsum dolor sit amet}} → <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|text=Lorem ipsum dolor sit amet}} → <strong class="error">Error: expandTemplate: template "ombox/sandbox" does not exist</strong>

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
  • {{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 _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
  • {{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

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}}
  • {{Height|m=1.51}} → 1.51 m (4 ft 11 12 in)
  • {{Height/sandbox|m=1.51}} → 1.51 m (4 ft 11 12 in)
  • {{Cvt|1.51|m|frac=2}} → 1.51 m (4 ft 11 12 in)
Sandbox template {{Collapsible test case/sandbox}}
{{Height}}
  • {{Height|m=1.51}} → 1.51 m (4 ft 11 12 in)
  • {{Height/sandbox|m=1.51}} → 1.51 m (4 ft 11 12 in)
  • {{Cvt|1.51|m|frac=2}} → 1.51 m (4 ft 11 12 in)

See also