Difference between revisions of "Template:Drug use"

From blackwiki
Jump to navigation Jump to search
imported>TonyTheTiger
(adding {{collapsible option}} and/or {{{state}}})
imported>Götz
(minor fixes; condense; rm decorative image (by itself wastes vertical space))
Line 3: Line 3:
 
|title = [[Recreational drug use]]
 
|title = [[Recreational drug use]]
 
|listclass = hlist
 
|listclass = hlist
|image = [[File:Pyschoactive Drugs.jpg|110px]]
 
 
|state = {{{state<includeonly>|collapsed</includeonly>}}}
 
|state = {{{state<includeonly>|collapsed</includeonly>}}}
  
   |group1 = Major recreational drugs
+
   |group1 = Major<br/> recreational<br/> drugs
 
   |list1  = {{Navbox subgroup
 
   |list1  = {{Navbox subgroup
 
     |group1 = [[Template:Euphoriant|Euphoriant]]s
 
     |group1 = [[Template:Euphoriant|Euphoriant]]s
Line 102: Line 101:
 
   |  list2 = {{Navbox subgroup
 
   |  list2 = {{Navbox subgroup
 
     | evenodd = swap
 
     | evenodd = swap
     | group1 = [[Cannabis (drug)|Cannabis/Marijuana]]
+
     | group1 = [[Cannabis (drug)|Cannabis<br/> (Marijuana)]]
 
     |  list1 =  
 
     |  list1 =  
 
* [[420 (cannabis culture)|420]]
 
* [[420 (cannabis culture)|420]]
Line 138: Line 137:
 
* [[Whoonga]]  
 
* [[Whoonga]]  
 
   }}
 
   }}
   | group3 = Drug production and trade
+
   | group3 = Drug<br/> production<br/> and trade
 
   |  list3 = {{Navbox subgroup
 
   |  list3 = {{Navbox subgroup
 
     | evenodd = swap
 
     | evenodd = swap
     | group1 = Drug production
+
     | group1 = Drug<br/> production
 
     |  list1 =  
 
     |  list1 =  
 
* [[Drug precursors]]
 
* [[Drug precursors]]
Line 151: Line 150:
 
*[[Illegal drug trade in Colombia]]
 
*[[Illegal drug trade in Colombia]]
 
   }}
 
   }}
   | group4 = Problems with drug use
+
   | group4 = Problems with<br/> drug use
 
   |  list4 =  
 
   |  list4 =  
 
* [[Substance abuse|Abuse]]
 
* [[Substance abuse|Abuse]]
Line 168: Line 167:
 
* [[Passive smoking]] (of tobacco or other substances)
 
* [[Passive smoking]] (of tobacco or other substances)
  
   | group5 = Legality of drug use
+
   | group5 = Legality of<br/> drug use
 
   |  list5 = {{Navbox subgroup
 
   |  list5 = {{Navbox subgroup
 
     | evenodd = swap
 
     | evenodd = swap
Line 226: Line 225:
 
*[[Zero tolerance]]  
 
*[[Zero tolerance]]  
 
   }}
 
   }}
     |group6 = Lists of countries by...
+
     |group6 = Lists of<br/> countries by...
 
     |list6 =  
 
     |list6 =  
 
*[[List of countries by alcohol consumption|Alcohol consumption]]
 
*[[List of countries by alcohol consumption|Alcohol consumption]]

Revision as of 05:04, 11 March 2013

Initial visibility: currently defaults to autocollapse

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

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

it:Template:Droghe