Difference between revisions of "Template:Islands of Hong Kong"

From blackwiki
Jump to navigation Jump to search
imported>Zdtrlik
m
imported>TonyTheTiger
(adding {{collapsible option}} and/or {{{state}}})
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
 
|name = Islands of Hong Kong
 
|name = Islands of Hong Kong
|state = autocollapse
+
|state = {{{state|autocollapse}}}
 
|title = {{flagicon|Hong Kong|size=25px}} Major [[List of islands and peninsulas of Hong Kong#Islands|islands of]] [[Hong Kong]]
 
|title = {{flagicon|Hong Kong|size=25px}} Major [[List of islands and peninsulas of Hong Kong#Islands|islands of]] [[Hong Kong]]
 
|listclass = hlist
 
|listclass = hlist
Line 49: Line 49:
 
* [[Yuen Chau Tsai]]
 
* [[Yuen Chau Tsai]]
 
}}[[Category:{{{1|}}} islands of Hong Kong]]<noinclude>
 
}}[[Category:{{{1|}}} islands of Hong Kong]]<noinclude>
 +
{{collapsible option}}
  
 
[[Category:Hong Kong geography templates|{{PAGENAME}}]]
 
[[Category:Hong Kong geography templates|{{PAGENAME}}]]

Revision as of 02:28, 22 February 2013

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{Islands of Hong Kong|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Islands of Hong Kong|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Islands of Hong Kong|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. pt:Predefinição:Ilhas de Hong Kong zh:Template:香港島嶼