Difference between revisions of "Template:Collapsible option/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(template name, added nobase test, simplified heading-size tests)
imported>Sardanaphalus
(template update, headings, clear)
Line 1: Line 1:
{{TOC left|top=0}}{{Testcases notice}}{{clear}}
+
{{Testcases notice |toc=on}}
  
 
== Sandbox version ==
 
== Sandbox version ==
Line 10: Line 10:
  
  
===''statename=optional''===
+
{{clear}}
 +
 
 +
===''statename''=optional===
 
<div style="background:lemonchiffon;">
 
<div style="background:lemonchiffon;">
 
{{Collapsible option/sandbox |statename=optional}}
 
{{Collapsible option/sandbox |statename=optional}}
Line 16: Line 18:
  
  
===''default=collapsed''===
+
{{clear}}
 +
 
 +
===''default''=collapsed===
 
<div style="background:lemonchiffon;">
 
<div style="background:lemonchiffon;">
 
{{Collapsible option/sandbox |default=collapsed}}
 
{{Collapsible option/sandbox |default=collapsed}}
Line 22: Line 26:
  
  
===''statename=optional'' and ''default=collapsed''===
+
{{clear}}
 +
 
 +
===''statename''=optional ''default''=collapsed===
 
<div style="background:lemonchiffon;">
 
<div style="background:lemonchiffon;">
 
{{Collapsible option/sandbox |statename=optional |default=collapsed}}
 
{{Collapsible option/sandbox |statename=optional |default=collapsed}}
Line 28: Line 34:
  
  
===''nobase=on''===
+
{{clear}}
 +
 
 +
===''nobase''=on===
 
<div style="background:lemonchiffon;">
 
<div style="background:lemonchiffon;">
 
{{Collapsible option/sandbox |nobase=on}}
 
{{Collapsible option/sandbox |nobase=on}}
 
</div>
 
</div>
 +
  
  

Revision as of 10:05, 26 October 2014

Sandbox version

Backgrounds added here, i.e. not part of the template itself.

No parameters

Initial visibility: currently defaults to autocollapse

To set the template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Collapsible option|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Collapsible option|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Collapsible option|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter is not set, the template's initial visibility is taken from the |default= parameter in this Collapsible option template. For the template on this page, that currently evaluates to autocollapse.


statename=optional

Initial visibility: currently defaults to autocollapse

To set the template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Collapsible option|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Collapsible option|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Collapsible option|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter is not set, the template's initial visibility is taken from the |default= parameter in this Collapsible option template. For the template on this page, that currently evaluates to autocollapse.


default=collapsed

Initial visibility: currently defaults to collapsed

To set the template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Collapsible option|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Collapsible option|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Collapsible option|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter is not set, the template's initial visibility is taken from the |default= parameter in this Collapsible option template. For the template on this page, that currently evaluates to collapsed.


statename=optional default=collapsed

Initial visibility: currently defaults to collapsed

To set the template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Collapsible option|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Collapsible option|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Collapsible option|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter is not set, the template's initial visibility is taken from the |default= parameter in this Collapsible option template. For the template on this page, that currently evaluates to collapsed.


nobase=on

Initial visibility: currently defaults to autocollapse

To set the template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Collapsible option/testcases|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Collapsible option/testcases|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Collapsible option/testcases|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter is not set, the template's initial visibility is taken from the |default= parameter in this Collapsible option template. For the template on this page, that currently evaluates to autocollapse.


Heading size comparison

Script error: No such module "aligned table".