Difference between revisions of "Template:Boroughs of Bratislava by district"

From blackwiki
Jump to navigation Jump to search
imported>Krumpi
m
imported>Krumpi
(new layout)
Line 5: Line 5:
 
  | listclass  = hlist
 
  | listclass  = hlist
 
  | titlestyle = background:lightblue;
 
  | titlestyle = background:lightblue;
  | col1width  = 25em
+
  | colheaderstyle = background:rgba(173, 216, 230, 0.5)
  | image      = [[File:Bratislava boroughs color map.svg|70px]]
+
  | colstyle = text-align:center;
  
 +
| col1header = [[Bratislava 1|Bratislava I]]
 
  | col1 = {{Navbox|child
 
  | col1 = {{Navbox|child
  | groupstyle = background:lightblue; text-align:center;
+
   | liststyle = padding:0.45em 0; <!--otherwise lists can appear to form continuous whole--> background:transparent;
   | liststyle = padding:0.25em 0; line-height:1.4em; <!--otherwise lists can appear to form continuous whole--> background:transparent;
+
  | list1 =
 +
* [[Old Town, Bratislava|Staré Mesto (Old Town)]]
 +
}}
  
  | group1 = [[Bratislava 1|I]]
+
| col2width = 19em
  | list1 =
+
| col2header = [[Bratislava 2|Bratislava II]]
* [[Old Town, Bratislava|Staré Mesto ''(Old Town)'']]
+
| col2 = {{Navbox|child
 
+
   | liststyle = padding:0.45em 0; background:transparent;
   | group2 = [[Bratislava 2|II]]
+
   | list1 =  
   | list2 =
 
 
* [[Ružinov]]
 
* [[Ružinov]]
 
* [[Vrakuňa]]
 
* [[Vrakuňa]]
 
* [[Podunajské Biskupice]]
 
* [[Podunajské Biskupice]]
 
+
}}
  | group3 = [[Bratislava 3|III]]
+
   | list3 =
+
| col3width = 13em
 +
| col3header = [[Bratislava 3|Bratislava III]]
 +
| col3 = {{Navbox|child
 +
  | liststyle = padding:0.45em 0; background:transparent;
 +
   | list1 =  
 
* [[Nové Mesto, Bratislava|Nové Mesto]]
 
* [[Nové Mesto, Bratislava|Nové Mesto]]
 
* [[Rača, Bratislava|Rača]]
 
* [[Rača, Bratislava|Rača]]
 
* [[Vajnory]]
 
* [[Vajnory]]
 
 
  }}
 
  }}
 
+
  | col2width = 25em
+
  | col4width = 36em
 
+
| col4header = [[Bratislava 4|Bratislava IV]]
  | col2 = {{Navbox|child
+
  | col4 = {{Navbox|child
  | groupstyle = background:lightblue; text-align:center; <!--as above-->
+
   | liststyle = padding:0.45em 0; background:transparent;
   | liststyle = padding:0.45em 0; line-height:1.4em; background:transparent; <!--as above, except wider padding so column heights match-->
+
   | list1 =  
 
 
  | group1 = [[Bratislava 4|IV]]
 
   | list1 =
 
 
* [[Karlova Ves]]
 
* [[Karlova Ves]]
 
* [[Dúbravka, Bratislava|Dúbravka]]
 
* [[Dúbravka, Bratislava|Dúbravka]]
 
* [[Lamač]]
 
* [[Lamač]]
 
 
* [[Devín]]
 
* [[Devín]]
 
* [[Devínska Nová Ves]]
 
* [[Devínska Nová Ves]]
 
* [[Záhorská Bystrica]]
 
* [[Záhorská Bystrica]]
 
+
}}
  | group2 = [[Bratislava 5|V]]
+
   | list2 =
+
| col5width = 18em
 +
| col5header = [[Bratislava 5|Bratislava V]]
 +
| col5 = {{Navbox|child
 +
  | liststyle = padding:0.45em 0; background:transparent;
 +
   | list1 =  
 
* [[Petržalka]]
 
* [[Petržalka]]
 
* [[Jarovce]]
 
* [[Jarovce]]
 
* [[Rusovce]]
 
* [[Rusovce]]
 
* [[Čunovo]]
 
* [[Čunovo]]
 +
}}
 +
}}
  
}}
+
<noinclude>
}}<noinclude>
 
 
{{collapsible option}}
 
{{collapsible option}}
 
[[Category:Slovakia subdivision templates|Bratislava]]
 
[[Category:Slovakia subdivision templates|Bratislava]]
 
</noinclude>
 
</noinclude>

Revision as of 15:06, 15 April 2020


Initial visibility: currently defaults to autocollapse

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

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