Difference between revisions of "Template:Highways of Benin"

From blackwiki
Jump to navigation Jump to search
imported>CapitalR
(clean up, adding text color to titlestyle to fix vde/show/hide link color using AWB)
imported>Unikalinho
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
|name = Highways of Benin
+
|name   = Highways of Benin
|title = [[Image:Flag of Benin.svg|20px|Flag of Benin]] {{color|#FFFFFF|National highways of Benin}}
+
|title   = [[Image:Flag of Benin.svg|20px|Flag of Benin]] National highways of Benin
|state =  
+
|listclass = hlist
 
|image  =
 
|image  =
|titlestyle = background:#000080;color:#FFFFFF;
+
 
|state=open
+
|state   = {{{state|autocollapse}}}
|list1  = [[RNIE 1]] [[RNIE 2]] [[RNIE 3]] [[RNIE 4]] [[RNIE 5]] [[RNIE 6]] [[RNIE 7]]  
+
|list1  =
 +
* [[RNIE 1]]
 +
* [[RNIE 2]]
 +
* [[RNIE 3]]
 +
* [[RNIE 4]]
 +
* [[RNIE 5]]
 +
* [[RNIE 6]]
 +
* [[RNIE 7]]  
  
 
}}<noinclude>
 
}}<noinclude>
[[Category:Benin templates]]
+
{{collapsible option}}
 +
[[Category:Benin navigational boxes]]
 
[[Category:Highway templates by country|Benin]]
 
[[Category:Highway templates by country|Benin]]
 
</noinclude>
 
</noinclude>

Latest revision as of 17:46, 17 December 2017

Initial visibility: currently defaults to autocollapse

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

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