Difference between revisions of "Template:Lego"

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
(use doc template)
imported>MSGJ
(white on blue does not work ...)
Line 138: Line 138:
  
 
| below  =  
 
| below  =  
* {{Icon|Category}} ''<font color=white>[[:Category:Lego|Category]]</font>''
+
* {{Icon|Category}} ''[[:Category:Lego|Category]]''
* {{Icon|Portal}} ''<font color=white>[[Portal:Lego|Portal]]</font>''
+
* {{Icon|Portal}} ''[[Portal:Lego|Portal]]''
* {{Icon|WikiProject}} ''<font color=white>[[Wikipedia:WikiProject Lego|WikiProject]]</font>''
+
* {{Icon|WikiProject}} ''[[Wikipedia:WikiProject Lego|WikiProject]]''
* {{Icon|Book}} ''<font color=white>[[Book:Lego|Book]]</font>''
+
* {{Icon|Book}} ''[[Book:Lego|Book]]''
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 20:06, 1 September 2013

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

Usage

Initial visibility: currently defaults to autocollapse

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

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