Difference between revisions of "Template:Drug use"

From blackwiki
Jump to navigation Jump to search
imported>Sizeofint
(→‎Harm assessment: rm scare quotes)
imported>Frietjes
(navbox subgroup syntax update)
Line 7: Line 7:
  
 
|group1 = Major<br /> recreational<br /> drugs
 
|group1 = Major<br /> recreational<br /> drugs
|list1  = {{Navbox subgroup
+
|list1  = {{Navbox|subgroup
 
|groupstyle = text-align:center;
 
|groupstyle = text-align:center;
  
Line 101: Line 101:
  
 
|group5 = [[Hallucinogen]]s
 
|group5 = [[Hallucinogen]]s
|list5  = {{Navbox subgroup
+
|list5  = {{Navbox|subgroup
 
|groupstyle = text-align:center;
 
|groupstyle = text-align:center;
 
  |group1 = [[Psychedelic drug|Psychedelics]]
 
  |group1 = [[Psychedelic drug|Psychedelics]]
Line 171: Line 171:
  
 
| group2 = [[Drug culture]]
 
| group2 = [[Drug culture]]
| list2 = {{Navbox subgroup
+
| list2 = {{Navbox|subgroup
 
| groupstyle = text-align:center;
 
| groupstyle = text-align:center;
    | evenodd = swap
 
 
     | group1 = [[Cannabis culture]]
 
     | group1 = [[Cannabis culture]]
 
     |  list1 =
 
     |  list1 =
Line 250: Line 249:
 
}}
 
}}
 
   | group3 = Drug<br /> production<br /> and trade
 
   | group3 = Drug<br /> production<br /> and trade
   | list3 = {{Navbox subgroup
+
   | list3 = {{Navbox|subgroup
 
   | groupstyle = text-align:center;   
 
   | groupstyle = text-align:center;   
 
   | group1 = Drug<br /> production
 
   | group1 = Drug<br /> production
Line 271: Line 270:
 
}}
 
}}
 
   | group4 = Issues with<br /> drug use
 
   | group4 = Issues with<br /> drug use
  | evenodd = swap
 
 
   |  list4 =
 
   |  list4 =
 
* [[Substance abuse|Abuse]]
 
* [[Substance abuse|Abuse]]
Line 293: Line 291:
  
 
  | group5 = Legality of<br /> drug use
 
  | group5 = Legality of<br /> drug use
  | list5 = {{Navbox subgroup
+
  | list5 = {{Navbox|subgroup
 
  | groupstyle = text-align:center;  
 
  | groupstyle = text-align:center;  
  | evenodd = swap
 
 
     | group1 = International
 
     | group1 = International
 
     |  list1 =
 
     |  list1 =

Revision as of 15:20, 2 September 2017

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.