Difference between revisions of "Template:Airports in Belarus"

From blackwiki
Jump to navigation Jump to search
blackwiki>WOSlinker
(use listclass = hlist in navbox as per WP:HLIST)
blackwiki>Zyxw
(add "state" parameter)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
|name = Airports in Belarus
+
| name = Airports in Belarus
|title = {{flagicon|Belarus}} [[List of airports in Belarus|Airports]] in [[Belarus]]
+
| state = {{#if: {{{state|}}} | {{{state}}} | autocollapse }}
|listclass = hlist
+
| title = {{flagicon|Belarus}} [[List of airports in Belarus|Airports]] in [[Belarus]]
|image = [[File:Lentoasema 673 up.svg|20px]]
+
| image = [[File:Lentoasema 673 up.svg|20px]]
|imageleft = [[File:Lentoasema 673 up.svg|20px]]
+
| imageleft = [[File:Lentoasema 673 up.svg|20px]]
|list1=
+
| listclass = hlist
 +
| list1 =
 
* [[Brest Airport|Brest]]
 
* [[Brest Airport|Brest]]
 
* [[Gomel Airport|Gomel]]
 
* [[Gomel Airport|Gomel]]
Line 15: Line 16:
 
* [[Vitebsk Vostochny Airport|Vitebsk]]
 
* [[Vitebsk Vostochny Airport|Vitebsk]]
 
}}<noinclude>
 
}}<noinclude>
 +
<br />{{collapsible option}}
 +
 
[[Category:Airport templates|Belarus]]
 
[[Category:Airport templates|Belarus]]
 
[[Category:Belarus transport templates]]
 
[[Category:Belarus transport templates]]
 
</noinclude>
 
</noinclude>

Revision as of 18:06, 2 July 2012


Initial visibility: currently defaults to autocollapse

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

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