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

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(template update, headings, clear)
imported>Mr. Stradivarius
m (Reverted edits by 195.147.63.233 (talk) to last version by DePiep)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
* Test anchor from here: [[Template:Collapsible option/testcases#Collapsed state]].
 
{{Testcases notice |toc=on}}
 
{{Testcases notice |toc=on}}
 +
__TOC__
 +
* [[Template:Collapsible option/sandbox]]
 +
Note: Section headers here are ''not'' part of the sandbox code; bold text is.
 +
:{{purge}}
  
== Sandbox version ==
+
==Default==
Backgrounds added here, i.e. not part of the template itself.
+
:<code><nowiki>{{Collapsible option/sandbox}}</nowiki></code> &rarr;
 
 
===''No parameters''===
 
<div style="background:lemonchiffon;">
 
 
{{Collapsible option/sandbox}}
 
{{Collapsible option/sandbox}}
</div>
 
 
 
{{clear}}
 
 
===''statename''=optional===
 
<div style="background:lemonchiffon;">
 
{{Collapsible option/sandbox |statename=optional}}
 
</div>
 
 
 
{{clear}}
 
 
===''default''=collapsed===
 
<div style="background:lemonchiffon;">
 
{{Collapsible option/sandbox |default=collapsed}}
 
</div>
 
 
 
{{clear}}
 
 
===''statename''=optional ''default''=collapsed===
 
<div style="background:lemonchiffon;">
 
{{Collapsible option/sandbox |statename=optional |default=collapsed}}
 
</div>
 
 
 
{{clear}}
 
 
===''nobase''=on===
 
<div style="background:lemonchiffon;">
 
{{Collapsible option/sandbox |nobase=on}}
 
</div>
 
  
 +
==Set title=(blank) ==
 +
:<code><nowiki>{{Collapsible option/sandbox|title=}}</nowiki></code> &rarr;
 +
{{Collapsible option/sandbox|title=}}
  
 +
==Set title=My Title==
 +
:<code><nowiki>{{Collapsible option/sandbox|title=My Title}}</nowiki></code> &rarr;
 +
{{Collapsible option/sandbox|title=My Title}}
  
{{clear}}
+
==Set title=... ==
 +
:<code><nowiki>{{Collapsible option/sandbox|title=;Parameter option {{para|state}}}}</nowiki></code> &rarr;
 +
{{Collapsible option/sandbox|title=;Parameter option {{para|state}}}}
  
== Heading size comparison ==
+
==Set outside section==
 +
:Setting {{para|title|}} to suppress
 +
:the section title (=== ===) is added in the page (not by the template)
 +
:<code><nowiki>{{Collapsible option/sandbox|title=}}</nowiki></code>
 +
===Section header about state===
 +
{{Collapsible option/sandbox|title=}}
  
{{Aligned table
+
==Current live version==
|col1style=padding-right:2.0em;
+
:<code><nowiki>{{Collapsible option}}</nowiki></code> &rarr;
| 110% ("larger") | {{larger|'''How to manage this template's visibility'''}}
+
{{Collapsible option}}
| 115% ("big")    | {{big  |'''How to manage this template's visibility'''}}
 
| 125%            | {{resize|125%|'''How to manage this template's visibility'''}}
 
| 100% {{smaller|(i.e. no resizing)}} | '''How to manage this template's visibility'''
 
}}
 

Latest revision as of 12:12, 20 April 2015

Note: Section headers here are not part of the sandbox code; bold text is.

Script error: No such module "Purge".

Default

{{Collapsible option/sandbox}}

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.

Set title=(blank)

{{Collapsible option/sandbox|title=}}

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.

Set title=My Title

{{Collapsible option/sandbox|title=My Title}}

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.

Set title=...

{{Collapsible option/sandbox|title=;Parameter option {{para|state}}}}

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.

Set outside section

Setting |title= to suppress
the section title (=== ===) is added in the page (not by the template)
{{Collapsible option/sandbox|title=}}

Section header about state

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.

Current live version

{{Collapsible option}}

Initial visibility: currently defaults to autocollapse

To set this 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 in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.