Difference between revisions of "Template:Battle class destroyer"

From blackwiki
Jump to navigation Jump to search
imported>Shem1805
(Sclass -> Sclass2)
imported>Derekbridges
(fix formatting; add ships)
Line 1: Line 1:
 
{{military navigation
 
{{military navigation
|style=wide
+
| name      = Battle class destroyer
|raw_name=Battle class destroyer
+
| title     = {{sclass2-|Battle|destroyer|1}}s
|title={{sclass2-|Battle|destroyer|1}}
+
| state    = {{{state|autocollapse}}}
|bodyclass=hlist
+
| style    = wide
 +
| bodyclass = hlist
  
|group1={{navy|United Kingdom|size=30x15px}}
+
| group1     = {{align|left|{{navy|United Kingdom}}}}
|list1={{Navbox subgroup
+
| list1     = {{Navbox subgroup
|groupstyle={{WPMILHIST Infobox style|nav_box_label}}
+
| groupstyle = {{WPMILHIST Infobox style|nav_box_label}}
  
|group1=1942 group
+
| group1 = {{align|left|1942 group}}
|list1=
+
| list1 =
 
* {{HMS|Armada|D14|2}}
 
* {{HMS|Armada|D14|2}}
 
* {{HMS|Barfleur|D80|2}}
 
* {{HMS|Barfleur|D80|2}}
Line 28: Line 29:
 
* {{HMS|Vigo|D31|2}}
 
* {{HMS|Vigo|D31|2}}
  
|group2=1943 group
+
| group2     = {{align|left|1943 group}}
|list2=
+
| list2      = {{Navbox subgroup
 +
| groupstyle = {{WPMILHIST Infobox style|nav_box_label}}
 +
 
 +
| group2 = {{align|left|Completed}}
 +
| list2 =
 
* {{HMS|Agincourt|D86|2}}
 
* {{HMS|Agincourt|D86|2}}
 
* {{HMS|Aisne|D22|2}}
 
* {{HMS|Aisne|D22|2}}
Line 36: Line 41:
 
* {{HMS|Corunna|D97|2}}
 
* {{HMS|Corunna|D97|2}}
 
* {{HMS|Dunkirk|D09|2}}
 
* {{HMS|Dunkirk|D09|2}}
* {{HMS|Jutland|D62|2}}
+
* [[HMS Jutland (D62)|''Malplaquet'']]<!-- {{HMS|Malplaquet|I16|2}} --> / {{HMS|Jutland|D62|2}}
 
* {{HMS|Matapan|D43|2}}
 
* {{HMS|Matapan|D43|2}}
 +
 +
| group3 = {{align|left|Cancelled}}
 +
| list3  =
 +
* ''Albuera''<!-- {{HMS|Albuera||2}} -->
 +
* ''Belleisle''<!-- {{HMS|Belleisle||2}} -->
 +
* {{HMS|Jutland||2}}
 +
* ''Mons''<!-- {{HMS|Mons||2}} -->
 +
* {{HMS|Namur||2}}
 +
* ''Navarino''<!-- {{HMS|Navarino||2}} -->
 +
* ''Omdurman''<!-- {{HMS|Omdurman||2}} -->
 +
* ''Oudenarde''<!-- {{HMS|Oudenarde||2}} -->
 +
* {{HMS|Poictiers||2}}
 +
* ''River Plate''<!-- {{HMS|River Plate||2}} -->
 +
* {{HMS|San Domingo||2}}
 +
* ''Somme''<!-- {{HMS|Somme||2}} -->
 +
* ''St. Lucia''<!-- {{HMS|St. Lucia||2}} -->
 +
* ''Talavera''<!-- {{HMS|Talavera||2}} -->
 +
* ''Trincomalee''<!-- {{HMS|Trincomalee||2}} -->
 +
* [[HMS Danae (I06)|''Vimiera'']]<!-- {{HMS|Vimiera||2}} -->
 +
* {{HMS|Waterloo||2}}
 +
* [[HMS Delight (D119)|''Ypres'']]<!-- {{HMS|Ypres||2}} -->
 +
}}
 
}}
 
}}
  
|group2={{navy|Australia|size=30x15px}}
+
| group4 = {{align|left|{{navy|Australia}}}}
|list2=
+
| list4  =
 
* {{HMAS|Anzac|D59|2}}
 
* {{HMAS|Anzac|D59|2}}
 
* {{HMAS|Tobruk|D37|2}}
 
* {{HMAS|Tobruk|D37|2}}
  
|list3={{Navbox|child
+
| list5 = {{Navbox|child
|title=Other operators
+
| title = Other operators
|titlestyle={{WPMILHIST Infobox style|nav_box_wide_header}}
+
| state = {{#ifeq:{{{state|{{{1|<noinclude>others</noinclude>}}}}}}|others|uncollapsed|collapsed}}
|groupstyle={{WPMILHIST Infobox style|nav_box_label}}
+
| titlestyle = {{WPMILHIST Infobox style|nav_box_wide_header}}
|state={{#ifeq:{{{state|{{{1|<noinclude>others</noinclude>}}}}}}|others|uncollapsed|collapsed}}
+
| groupstyle = {{WPMILHIST Infobox style|nav_box_label}}
  
|group1={{navy|Iran|1964|name=Imperial Iranian Navy|size=30x15px}}
+
| group1 = {{align|left|{{navy|Iran|1964|name=Imperial Iranian Navy}}}}
|list1= [[HMS Sluys (D60)|''Artemiz'']]
+
| list1 =
 +
* [[HMS Sluys (D60)|''Artemiz'']]<!-- {{ship|Iranian destroyer|Artemiz|DDG-5|2}} --> / [[HMS Sluys (D60)|''Damavand'']]<!-- {{ship|Iranian destroyer|Damavand|51|2}} --> (ex-''Sluys'')
  
|group2={{navy|Pakistan|size=30x15px}}
+
| group2 = {{align|left|{{navy|Pakistan}}}}
|list2=
+
| list2 =
* [[HMS Gabbard (D47)|''Gabr'']]
+
* [[HMS Gabbard (D47)|''Badr'']]<!-- {{ship|PNS|Badr|D161|2}} --> / [[HMS Gabbard (D47)|''Indus'']]<!-- {{ship|MSS|Indus||2}}} --> (ex-''Gabbard'')
* [[HMS Cadiz (D79)|''Khaibar'']]
+
* [[HMS Cadiz (D79)|''Khaibar'']]<!-- {{ship|PNS|Khaibar|D163|2}} --> (ex-''Cadiz'')
 
}}
 
}}
  
|below=
+
| list7 =
 
* Preceded by: [[C-class destroyer (1943)|C class]]
 
* Preceded by: [[C-class destroyer (1943)|C class]]
 
* Followed by: {{sclass-|Weapon|destroyer|4}}
 
* Followed by: {{sclass-|Weapon|destroyer|4}}
  
 +
| below =
 
* [[List of destroyer classes of the Royal Navy|List of destroyers of the Royal Navy]]
 
* [[List of destroyer classes of the Royal Navy|List of destroyers of the Royal Navy]]
* [[List of major warship classes of the Royal Australian Navy]]
+
* [[:Category:Destroyers of the Royal Australian Navy|List of destroyers of the Royal Australian Navy]]
 +
 
 
}}<noinclude>
 
}}<noinclude>
{{collapsible option|statename=optional}}
+
{{collapsible option}}
 
[[Category:Battle-class destroyers|~]]
 
[[Category:Battle-class destroyers|~]]
 
[[Category:United Kingdom destroyer templates]]
 
[[Category:United Kingdom destroyer templates]]
 
[[Category:Australia military ship templates]]
 
[[Category:Australia military ship templates]]
 
+
[[Category:Iran military ship templates]]
 +
[[Category:Pakistan military ship templates]]
 
</noinclude>
 
</noinclude>

Revision as of 04:36, 30 October 2014

Initial visibility: currently defaults to autocollapse

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

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