Difference between revisions of "Template:Hastings class sloop"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(use listclass = hlist in navbox as per WP:HLIST)
imported>Andrwsc
(British India → British Raj (same output))
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
 
|name    = Hastings class sloop
 
|name    = Hastings class sloop
|state  =
+
|state  = {{{state|}}}
|title  = [[Hastings class sloop|''Hastings''-class sloop]]
+
|title  = {{sclass-|Hastings|sloop|1}}
 
|listclass = hlist
 
|listclass = hlist
|group1 =
+
 
|list1  = {{Navbox subgroup
+
|group1 = {{navy|UK|size=30px}}
  | groupstyle = width:14em;
+
|list1 =  
  | liststyle = width:auto;
+
* {{HMS|Hastings|L27|2}}
  | group1 = Royal Navy
+
* {{HMS|Folkestone|L22|2}}
  | list1 =
+
* {{HMS|Penzance|L28|2}}
* ''[[HMS Hastings (L27)|Hastings]]''
+
* {{HMS|Scarborough|L25|2}}
* ''[[HMS Folkestone (L22)|Folkstone]]''
+
 
* ''[[HMS Penzance (L28)|Penzance]]''
+
|group2 = {{navy|British Raj|size=30px}}
* ''[[HMS Scarborough (L25)|Scarborough]]''
+
|list2 =  
  | group2 = Royal Indian Navy
+
* {{HMIS|Hindustan|L80|2}}
  | list2 =
+
 
* ''[[HMIS Hindustan (L80)|Hindustan]]''
+
|group3 = {{navy|Pakistan|size=30px}}
  | group3 = Pakistan Navy
+
|list3 =  
  | list3 =
+
* ''[[HMIS Hindustan (L80)|Karsaz]]''
* ''[[HMIS Hindustan (L80)|Karsaz]]'' (ex-''Hindustan'')
+
 
}}
 
 
|belowclass = hlist
 
|belowclass = hlist
 
|below  =  
 
|below  =  
* Preceded by: [[Bridgewater class sloop|''Bridgewater'' class]]
+
* Preceded by: {{sclass-|Bridgewater|sloop|4}}
* Followed by: [[Shoreham class sloop|''Shoreham'' class]]
+
* Followed by: {{sclass-|Shoreham|sloop|4}}
  
 
* [[List of corvette and sloop classes of the Royal Navy]]
 
* [[List of corvette and sloop classes of the Royal Navy]]
 
}}<noinclude>
 
}}<noinclude>
 +
{{collapsible option}}
 +
[[Category:Hastings-class sloops|~]]
 
[[Category:United Kingdom military ship templates]]
 
[[Category:United Kingdom military ship templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 17:37, 6 January 2015

Initial visibility: currently defaults to autocollapse

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

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