Difference between revisions of "Template:Ham class minesweeper"

From blackwiki
Jump to navigation Jump to search
imported>Jdaloner
m ("{{Navbox with collapsible sections" --> "{{Navbox with collapsible groups")
imported>Frietjes
(navbox subgroup syntax update)
 
Line 1: Line 1:
{{Navbox with collapsible groups
+
{{Military navigation
 
|name      = Ham class minesweeper
 
|name      = Ham class minesweeper
|titlestyle = background:lightsteelblue;
+
|style      = wide
 
|title      = {{sclass2-|Ham|minesweeper|1}}s
 
|title      = {{sclass2-|Ham|minesweeper|1}}s
 
|state      = {{{state|autocollapse}}}
 
|state      = {{{state|autocollapse}}}
 
|listclass = hlist
 
|listclass = hlist
|selected  = {{{1|}}}
 
|groupstyle = background:lightsteelblue;
 
  
|abbr1 = UK
 
 
|list1 =
 
|list1 =
  {{Navbox subgroup
+
  {{military navigation|border=subgroup
   |groupstyle = {{WPMILHIST Infobox style|nav_box_label}}; text-align:left;
+
   |style = wide
 
   |group1 = {{navy|United Kingdom|size=30x15px}}
 
   |group1 = {{navy|United Kingdom|size=30x15px}}
 
   |list1  =  
 
   |list1  =  
Line 109: Line 106:
 
  }}
 
  }}
  
|group2 = Other operators
 
|abbr2  = other
 
 
|list2  =
 
|list2  =
  {{Navbox subgroup
+
  {{military navigation|border=subgroup
   |groupstyle = {{WPMILHIST Infobox style|nav_box_label}}; text-align:left;
+
   |title = Other operators
 +
  |state = {{#ifeq:{{{1|}}}|other|expanded}}
 +
  |style = wide
 +
 
 
   |group1 = {{navy|Australia|size=30x15px}}
 
   |group1 = {{navy|Australia|size=30x15px}}
 
   |list1  =  
 
   |list1  =  
Line 160: Line 158:
 
  }}
 
  }}
  
|belowstyle = {{WPMILHIST Infobox style|nav_box_label}}
 
 
|below = [[List of mine countermeasure vessels of the Royal Navy|List of mine-countermeasure vessels of the Royal Navy]]
 
|below = [[List of mine countermeasure vessels of the Royal Navy|List of mine-countermeasure vessels of the Royal Navy]]
 
}}<noinclude>
 
}}<noinclude>

Latest revision as of 14:55, 2 September 2017

Initial visibility: currently defaults to autocollapse

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

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