Difference between revisions of "Template:Castle class opv"

From blackwiki
Jump to navigation Jump to search
imported>TonyTheTiger
(adding {{collapsible option}} and/or {{{state}}})
imported>Llammakey
(updated template)
 
Line 2: Line 2:
 
|name    = Castle class opv
 
|name    = Castle class opv
 
|state  = {{{state|}}}
 
|state  = {{{state|}}}
|title  = [[Castle class patrol vessel]]
+
|title  = {{sclass2-|Castle|patrol vessel|1}}
 
|listclass = hlist
 
|listclass = hlist
 +
|group1 = {{navy|United Kingdom|size=30x15px}}
 
|list1  =  
 
|list1  =  
* [[HMS Leeds Castle (P258)|''Leeds Castle'']]
+
* {{HMS|Leeds Castle|P258|2}}
* [[HMS Dumbarton Castle (P265)|''Dumbarton Castle'']]
+
* {{HMS|Dumbarton Castle|P265|2}}
 +
|group2= {{navy|Bangladesh|size=30x15px}}
 +
|list2 =
 +
* {{ship|BNS|Dhaleshwari||2}} (ex-''Leeds Castle'')
 +
* {{ship|BNS|Bijoy||2}} (ex-''Dumbarton Castle'')
 
|below  = <!--Preceded by:
 
|below  = <!--Preceded by:
 
* Followed by:<br>!-->[[Current Royal Navy ships#Patrol vessels|List of patrol vessels of the Royal Navy]]
 
* Followed by:<br>!-->[[Current Royal Navy ships#Patrol vessels|List of patrol vessels of the Royal Navy]]

Latest revision as of 11:00, 30 October 2017

Initial visibility: currently defaults to autocollapse

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

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