Difference between revisions of "Template:Disasters"

From blackwiki
Jump to navigation Jump to search
imported>DocWatson42
(Undid revision 743357943 by 120.56.194.79 (talk) as possible vandalism; reverting to 17:02, 25 August 2016 edit by Ahunt.)
imported>Frietjes
Line 2: Line 2:
 
|name = Disasters
 
|name = Disasters
 
|title = [[Disaster]]s
 
|title = [[Disaster]]s
|listclass = hlist
 
 
|bodyclass = hlist
 
|bodyclass = hlist
|state=collapsed
+
|state=<includeonly>collapsed</includeonly>
|evenstyle = background:#F4F0EC
 
  
 
|group1 = Overview
 
|group1 = Overview
Line 14: Line 12:
  
 
|group2 = Disasters
 
|group2 = Disasters
|list2 = {{Navbox subgroup
+
|list2 = {{Navbox|subgroup
  
 
|group1 = [[List of environmental disasters|Natural]] ([[List of natural disasters by death toll|by death toll]])
 
|group1 = [[List of environmental disasters|Natural]] ([[List of natural disasters by death toll|by death toll]])
Line 29: Line 27:
  
 
|group2 = [[Accident]]s
 
|group2 = [[Accident]]s
|list2 = {{Navbox subgroup
+
|list2 = {{Navbox|subgroup
  
 
|group1 = Transport
 
|group1 = Transport
Line 105: Line 103:
 
{{collapsible option}}
 
{{collapsible option}}
 
[[Category:Science and nature templates]]
 
[[Category:Science and nature templates]]
{{documentation}}
 
 
</noinclude>
 
</noinclude>

Revision as of 21:09, 18 September 2017

Initial visibility: currently defaults to autocollapse

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

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