Difference between revisions of "Template:Benson class destroyer"

From blackwiki
Jump to navigation Jump to search
imported>TonyTheTiger
(adding {{collapsible option}} and/or {{{state}}})
imported>Derekbridges
(fix formatting)
Line 2: Line 2:
 
| name      = Benson class destroyer
 
| name      = Benson class destroyer
 
| title    = {{sclass-|Benson|destroyer|1}}s
 
| title    = {{sclass-|Benson|destroyer|1}}s
 +
| state    = {{{state|autocollapse}}}
 +
| style    = wide
 
| bodyclass = hlist
 
| bodyclass = hlist
| state    = {{{state<includeonly>|</includeonly>}}}
 
| style    = wide
 
  
| group1 = {{navy|United States|size=30x15px}}
+
| group1 = {{align|left|{{navy|United States|1912}}}}
 
| list1  =
 
| list1  =
 
* {{USS|Benson|DD-421|2}}
 
* {{USS|Benson|DD-421|2}}
Line 39: Line 39:
 
* {{USS|Ordronaux|DD-617|2}}
 
* {{USS|Ordronaux|DD-617|2}}
  
| list3      = {{Navbox|child
+
| group2 = {{align|left|{{navy|Republic of China}}}}
| title      = Other operators
 
| bodyclass  = hlist
 
| titlestyle = {{WPMILHIST Infobox style|nav_box_wide_header}}
 
| groupstyle = {{WPMILHIST Infobox style|nav_box_label}}
 
| state      = {{#ifeq:{{{1<noinclude>|others</noinclude>}}}|others|uncollapsed|collapsed}}
 
 
 
| group1 = {{navy|Republic of China|size=30x15px}}
 
| list1  =
 
* [[USS Hilary P. Jones (DD-427)|''Han Yang'']]
 
* [[USS Benson (DD-421)|''Lo Yang'']]
 
 
 
| group2 = {{navy|Italy|name=''Marina Militare''|size=30x15px}}<!-- name in italics because it's in foreign language -->
 
 
| list2  =
 
| list2  =
* [[USS Woodworth (DD-460)|''Artigliere'']]
+
* [[USS Benson (DD-421)|''Lo Yang'']]<!-- [[ROCS Lo Yang (DD-14) (Benson class)|''Lo Yang'']] --> (ex-''Benson'')
 +
* [[USS Hilary P. Jones (DD-427)|''Han Yang'']]<!-- [[ROCS Han Yang (DD-15) (Benson class)|''Han Yang'']] --> (ex-''Hilary P. Jones'')
  
}}
+
| group3 = {{align|left|{{navy|Italy|name=''Marina Militare''}}}}
 +
| list3  =
 +
* [[USS Woodworth (DD-460)|''Artigliere'']]<!-- {{ship|Italian destroyer|Artigliere|D553}} --> (ex-''Woodworth'')
  
| below =
+
| list4 =
 
* Preceded by: {{sclass-|Sims|destroyer|4}}
 
* Preceded by: {{sclass-|Sims|destroyer|4}}
 
* Followed by: {{sclass-|Gleaves|destroyer|4}}
 
* Followed by: {{sclass-|Gleaves|destroyer|4}}
  
 +
| below =
 
* [[List of destroyers of the United States Navy]]
 
* [[List of destroyers of the United States Navy]]
* [[List of destroyer classes of the United States Navy]]
+
 
 
}}<noinclude>
 
}}<noinclude>
 
{{collapsible option}}
 
{{collapsible option}}
Line 69: Line 61:
 
[[Category:Republic of China military ship templates]]
 
[[Category:Republic of China military ship templates]]
 
[[Category:Italy military ship templates]]
 
[[Category:Italy military ship templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 03:25, 22 October 2014

Initial visibility: currently defaults to autocollapse

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

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