Difference between revisions of "Template:Facebook navbox"

From blackwiki
Jump to navigation Jump to search
imported>Edenc1
m (Reverted 1 edit by 98.164.212.173 (talk). (TW))
imported>Off2riorob
(add - collapse option)
Line 2: Line 2:
 
| name  = Facebook navbox
 
| name  = Facebook navbox
 
| title = [[Facebook|<font color="white">Facebook</font>]]
 
| title = [[Facebook|<font color="white">Facebook</font>]]
 +
| state = {{{state<includeonly>|autocollapse</includeonly>}}}
 
| titlestyle = background:#3b5998; color:white   
 
| titlestyle = background:#3b5998; color:white   
 
| groupstyle = background:#3b5998; color:white;
 
| groupstyle = background:#3b5998; color:white;

Revision as of 09:42, 28 January 2011

Template documentation[view] [edit] [history] [purge]

Initial visibility: currently defaults to collapsed

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

  • |state=collapsed: {{Facebook navbox|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Facebook navbox|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Facebook navbox|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 collapsed.

See also