Difference between revisions of "Template:Airports in Bosnia and Herzegovina"

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 Bosnia and Herzegovina
+
| name  = Airports in Bosnia and Herzegovina
|title  = {{flagicon|Bosnia and Herzegovina}} [[List of airports in Bosnia and Herzegovina|Airports]] in [[Bosnia and Herzegovina]]
+
| state  = {{#if: {{{state|}}} | {{{state}}} | autocollapse }}
|listclass = hlist
+
| title  = {{flagicon|Bosnia and Herzegovina}} [[List of airports in Bosnia and Herzegovina|Airports]] in [[Bosnia and Herzegovina]]
|liststyle = text-align:center;
+
| image  = [[File:Coat of arms of Bosnia and Herzegovina.svg|25px|Coat of arms of Bosnia and Herzegovina]]
|image  = [[File:Coat of arms of Bosnia and Herzegovina.svg|25px|Coat of arms of Bosnia and Herzegovina]]
+
| liststyle = text-align:center;
 +
| listclass = hlist
  
|group1 = International
+
| group1 = International
|list1  =  
+
| list1  =  
 
* [[Banja Luka International Airport]]
 
* [[Banja Luka International Airport]]
 
* [[Mostar International Airport]]
 
* [[Mostar International Airport]]
Line 13: Line 14:
 
* [[Tuzla International Airport]]
 
* [[Tuzla International Airport]]
  
|group2 = Domestic
+
| group2 = Domestic
|list2  =  
+
| list2  =  
 
* [[Banja Luka Zalužani Airport|Banja Luka Zalužani]]
 
* [[Banja Luka Zalužani Airport|Banja Luka Zalužani]]
 
* [[Bihać Golubić Airport|Bihać Golubić]]
 
* [[Bihać Golubić Airport|Bihać Golubić]]
Line 33: Line 34:
 
* [[Visoko Sport Airfield|Visoko Sport]]       
 
* [[Visoko Sport Airfield|Visoko Sport]]       
  
|group3 = Military
+
| group3 = Military
|list3  =  
+
| list3  =  
 
* [[Sarajevo Military Airport|Sarajevo Military]]
 
* [[Sarajevo Military Airport|Sarajevo Military]]
 
* [[Tuzla Air Base|Tuzla]]
 
* [[Tuzla Air Base|Tuzla]]
 
* [[Željava Air Base|Željava]]
 
* [[Željava Air Base|Željava]]
 
}}<noinclude>
 
}}<noinclude>
 +
<br />{{collapsible option}}
 +
 
[[Category:Bosnia and Herzegovina templates]]
 
[[Category:Bosnia and Herzegovina templates]]
 
[[Category:Airport templates|Bosnia]]
 
[[Category:Airport templates|Bosnia]]
 
</noinclude>
 
</noinclude>

Revision as of 18:08, 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 Bosnia and Herzegovina|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Airports in Bosnia and Herzegovina|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Airports in Bosnia and Herzegovina|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.