Difference between revisions of "Template:Hong Kong ODI Cricket Captains"

From blackwiki
Jump to navigation Jump to search
imported>TonyTheTiger
(adding {{collapsible option}} and/or {{{state}}})
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
 
| name = Hong Kong ODI Cricket Captains
 
| name = Hong Kong ODI Cricket Captains
| title = [[List of Hong Kong cricket captains|<span style="color:#505050;">Hong Kong ODI cricket captains</span>]]
+
| title = [[List of Hong Kong cricket captains|<span style="color:black;">Hong Kong ODI cricket captains</span>]]
| titlestyle = background: #FFFFFF; color: #505050;
+
| titlestyle = background: #DB000D; color: white;
 
| state = {{{state<includeonly>|collapsed</includeonly>}}}
 
| state = {{{state<includeonly>|collapsed</includeonly>}}}
 
|listclass = hlist
 
|listclass = hlist
 
|list1 =  
 
|list1 =  
 
* 2004: [[Rahul Sharma (Hong Kong cricketer)|Sharma]]
 
* 2004: [[Rahul Sharma (Hong Kong cricketer)|Sharma]]
* 2008–: [[Tabarak Dar|Dar]]
+
* 2008: [[Tabarak Dar|Dar]]
 +
* 2014-15: [[Jamie Atkinson|Atkinson]]
 +
* 2015-16 [[Tanwir Afzal|Afzal]]
 +
* 2016-present [[Babar Hayat|Hayat]]
 +
 
 
}}<noinclude>
 
}}<noinclude>
 
{{collapsible option}}
 
{{collapsible option}}
 
[[Category:Cricket captain navigational boxes]]
 
[[Category:Cricket captain navigational boxes]]
 +
[[Category:Hong Kong cricket navigational boxes]]
 
</noinclude>
 
</noinclude>

Latest revision as of 16:07, 5 June 2019

Initial visibility: currently defaults to autocollapse

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

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