Difference between revisions of "Template:CCPLeaders"

From blackwiki
Jump to navigation Jump to search
imported>JJMC89
imported>Zanhe
(use default colors)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
 
|name  = CCPLeaders
 
|name  = CCPLeaders
|title = [[List of general secretaries and chairmen of the Communist Party of China|<span style="color:#FFDE00;<!--CPC flag's yellow-->">General Secretaries and Chairmen</span>]] of the [[Communist Party of China|<span style="color:#FFDE00;<!--CPC flag's yellow-->">Communist Party of China</span>]]
+
|title = [[List of general secretaries and chairmen of the Communist Party of China|General Secretaries and Chairmen of the Communist Party of China]]
 
|state = {{{state|autocollapse}}}
 
|state = {{{state|autocollapse}}}
 
|listclass = hlist
 
|listclass = hlist
|titlestyle = background:#DE2910; color:#FFDE00; <!--CPC flag's red and yellow, respectively-->
+
|group1 = [[Chairman of the Communist Party of China|Chairmen]]
|image = [[Image:Flag of the Chinese Communist Party.svg|100px]]
 
|groupstyle = background:#DE2910; color:#FFDE00; <!--ditto-->
 
|group1 = [[Chairman of the Communist Party of China|<span style="color:#FFDE00;<!--CPC flag's yellow-->">Chairmen</span>]]
 
 
|list1 =  
 
|list1 =  
 
* [[Chen Duxiu]]
 
* [[Chen Duxiu]]
Line 14: Line 11:
 
* [[Hu Yaobang]]
 
* [[Hu Yaobang]]
  
|group2 = [[General Secretary of the Communist Party of China|<span style="color:#FFDE00;<!--CPC flag's yellow-->">General Secretaries</span>]]
+
|group2 = [[General Secretary of the Communist Party of China|General Secretaries]]
 
|list2  =  
 
|list2  =  
 
* [[Chen Duxiu]]
 
* [[Chen Duxiu]]
Line 29: Line 26:
 
{{collapsible option}}
 
{{collapsible option}}
 
[[Category:China political leader navigational boxes]]
 
[[Category:China political leader navigational boxes]]
 
 
</noinclude>
 
</noinclude>

Revision as of 06:56, 13 November 2017

Initial visibility: currently defaults to autocollapse

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

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