Difference between revisions of "Template:Genocide navbox"

From blackwiki
Jump to navigation Jump to search
imported>Sextus Caedicius
m (template was located at linked article, but the article wasn't in the template itself)
imported>Cobaltcigs
(cleanup)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
 
|name      = Genocide navbox
 
|name      = Genocide navbox
|title      = [[Genocide|{{color|white|Genocide<br/>}}]]
+
|title      = [[Genocide]]
|titlestyle = background:#000000;border-bottom:5px solid whitesmoke;
 
 
|listclass = hlist
 
|listclass = hlist
 
|state = {{{state<includeonly>|autocollapse</includeonly>}}}
 
|state = {{{state<includeonly>|autocollapse</includeonly>}}}
 +
|nowrapitems = yes
  
 
|group1 = [[Genocides in history|Genocides]]<br>([[List of genocides by death toll|list by death toll]])
 
|group1 = [[Genocides in history|Genocides]]<br>([[List of genocides by death toll|list by death toll]])

Revision as of 10:02, 17 September 2020

Initial visibility: currently defaults to autocollapse

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

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