Template:Collapsible option/testcases
Jump to navigation
Jump to search
- Test anchor from here: Template:Collapsible option/testcases#Collapsed state.
This is the template test cases page for the sandbox of Template:Collapsible option. 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: |
Note: Section headers here are not part of the sandbox code; bold text is.
Default
{{Collapsible option/sandbox}}
→
Template:Collapsible option/sandbox
Set title=(blank)
{{Collapsible option/sandbox|title=}}
→
Template:Collapsible option/sandbox
Set title=My Title
{{Collapsible option/sandbox|title=My Title}}
→
Template:Collapsible option/sandbox
Set title=...
{{Collapsible option/sandbox|title=;Parameter option {{para|state}}}}
→
Template:Collapsible option/sandbox
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
Template:Collapsible option/sandbox
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}}
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
.