Difference between revisions of "Template:Alasdair Gray"

From blackwiki
Jump to navigation Jump to search
blackwiki>TonyTheTiger
(adding {{collapsible option}} and/or {{{state}}})
Line 1: Line 1:
{{Template:Navbox
+
{{Navbox
 
|name =Alasdair Gray
 
|name =Alasdair Gray
 
|title = Works by [[Alasdair Gray]]  
 
|title = Works by [[Alasdair Gray]]  
 
|listclass = hlist
 
|listclass = hlist
|state  = uncollapsed
+
|state  = {{{state|uncollapsed}}}
 
|list1 =
 
|list1 =
 
* ''[[Lanark: A Life in Four Books|Lanark]]'' (1981)  
 
* ''[[Lanark: A Life in Four Books|Lanark]]'' (1981)  
Line 15: Line 15:
 
* ''[[Old Men In Love]]'' (2007)
 
* ''[[Old Men In Love]]'' (2007)
 
}}<noinclude>
 
}}<noinclude>
 +
{{collapsible option}}
 
[[Category:Scottish writers templates|Gray, Alasdair]]
 
[[Category:Scottish writers templates|Gray, Alasdair]]
 
</noinclude>
 
</noinclude>

Revision as of 03:53, 30 November 2012

Initial visibility: currently defaults to autocollapse

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

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