#default = template }} is permanently protected to prevent vandalism

Template:Collapsible option: Difference between revisions

From LPFM Wiki
Jump to navigation Jump to search
en>Bsherr
m (adding comment)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 11:36, 28 July 2022

Initial visibility: currently defaults to {{#switch:|collapsed=collapsed|expanded=expanded|autocollapse|#default=autocollapse}}

To set this template's initial visibility, the |{{SAFESUBST:#if:state|state=}} parameter may be used:

  • |{{SAFESUBST:#if:state|state=}}collapsed: {{{{#if:| |BASE}}PAGENAME|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |{{SAFESUBST:#if:state|state=}}expanded: {{{{#if: | |BASE}}PAGENAME|state=expanded}} to show the template expanded, i.e., fully visible
  • |{{SAFESUBST:#if:state|state=}}autocollapse: {{{{#if: | |BASE}}PAGENAME|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{Template:Collapsible option}}, a {{Template:Collapsible option}}, 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 |{{SAFESUBST:#if:state|state=}} parameter in the template on this page is not set, the template's initial visibility is taken from the |{{SAFESUBST:#if:default|default=}} parameter in the Collapsible option template. For the template on this page, that currently evaluates to {{#switch:|collapsed=collapsed|expanded=expanded|autocollapse|#default=autocollapse}}.{{#if:|

|{{SAFESUBST:#if:align|align=}}Template:Var is also available; where Template:Var can be either right or left. The default is Template:Kbd.

}}{{#if:|:|{{SAFESUBST:#if:title-background|title-background=}}Template:Var is also available; where Template:Var can be either Template:Kbd or a Template:Kbd. The default is Template:Kbd, and {Template:Kbd defaults to the default navbox color. }}{{#if:|

|{{SAFESUBST:#if:width|width=}}Template:Var is also available; where Template:Var can be either Template:Kbd or Template:Kbd. The default is Template:Kbd.

}}{{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Template
   | template
   | other
   }}
 }}

| template = {{#if: |{{#switch:Lua error in Module:Effective_protection_level at line 46: attempt to index field 'TitleBlacklist' (a nil value). |*= |autoconfirmed=[[Category:{{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Module
   | module
   | other
   }}
 }}

| module = Modules subject to page protection | other | #default = Semi-protected templates }}|Collapsible option]] |sysop=[[Category:{{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Module
   | module
   | other
   }}
 }}

| module = Modules subject to page protection | other | #default = Fully protected templates }}|Collapsible option]] }}

      | {{#if: |Template:Pp-move }}
  }} 

| other | #default = }}

Template documentation