Difference between revisions of "Template:Addiction"

From blackwiki
Jump to navigation Jump to search
blackwiki>KLBot2
m (Bot: Migrating 7 interwiki links, now provided by Wikidata on d:Q8094302)
blackwiki>777sms
Line 2: Line 2:
 
|name  = Addiction
 
|name  = Addiction
 
|title = [[Addiction]]
 
|title = [[Addiction]]
|state = {{{state|autocollapse}}}
 
|groupstyle = background:LemonChiffon
 
 
|listclass = hlist
 
|listclass = hlist
  
|group1 = [[Substance dependence|Drugs]]
+
|group1 = [[Substance dependence|Drugs]]
|list1   =
+
|list1 =
 
*[[Alcoholism|Alcohol]]
 
*[[Alcoholism|Alcohol]]
 
*[[Nicotine]]
 
*[[Nicotine]]
Line 13: Line 11:
 
*[[Opioid dependence|Opioids]]
 
*[[Opioid dependence|Opioids]]
  
|group2 = [[Compulsive overeating|Food]]
+
|group2 = [[Compulsive overeating|Food]]
|list2   =
+
|list2 =
 
*[[Sugar addiction|Sugar]]
 
*[[Sugar addiction|Sugar]]
  
|group3 = [[Behavioral addiction|Behavioral]]
+
|group3 = [[Behavioral addiction|Behavioral]]
|list3   =
+
|list3 =
 
*[[Compulsive talking|Communicating (especially talking)]]
 
*[[Compulsive talking|Communicating (especially talking)]]
 
*[[Exercise addiction|Exercise]]
 
*[[Exercise addiction|Exercise]]
Line 28: Line 26:
 
*[[Workaholic|Work]]
 
*[[Workaholic|Work]]
  
|group4 = Other addictions
+
|group4 = Other addictions
|list4   =
+
|list4 =
 
*[[Computer addiction|Computer]]
 
*[[Computer addiction|Computer]]
 
*[[Internet addiction disorder|Internet]]
 
*[[Internet addiction disorder|Internet]]
Line 39: Line 37:
 
[[Category:Psychology navigational boxes|{{PAGENAME}}]]
 
[[Category:Psychology navigational boxes|{{PAGENAME}}]]
 
[[Category:Addiction| ]]
 
[[Category:Addiction| ]]
 
 
</noinclude>
 
</noinclude>

Revision as of 20:19, 14 May 2013

Initial visibility: currently defaults to autocollapse

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

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