Difference between revisions of "Template:Dependence treatment"

From blackwiki
Jump to navigation Jump to search
imported>Tom (LT)
m (per Template_talk:Medicine_navs#Background_colours, remove unnecessary and confusing background colours using AWB)
imported>NSH002
(tidy up)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
| name = Antiaddictives
+
| name = Antiaddictives
| title = [[Substance dependence#Anti-addictive drugs|Antiaddictive]]s ([[ATC code N07#N07B|N07B]])
+
| title = [[Substance dependence#Anti-addictive drugs|Antiaddictive]]s ([[ATC code N07#N07B|N07B]])
| state = {{{state|autocollapse}}}
+
| state = {{{state<includeonly>|autocollapse</includeonly>}}}
|listclass = hlist
+
| listclass = hlist
  
| group1 = [[Nicotine dependence]]
+
| group1 = [[Nicotine dependence]]
| list1 =
+
| list1 =
 
* [[Bupropion]]
 
* [[Bupropion]]
 
* [[Varenicline]]
 
* [[Varenicline]]
Line 14: Line 14:
 
* ''[[Adrenergic agonist|AA]]'' ([[Clonidine]])
 
* ''[[Adrenergic agonist|AA]]'' ([[Clonidine]])
  
| group2 = [[Alcohol dependence]]
+
| group2 = [[Alcohol dependence]]
| list2 =
+
| list2 =
 
* ''[[Acetaldehyde dehydrogenase|AD inhibitor]]'' ([[Disulfiram]]
 
* ''[[Acetaldehyde dehydrogenase|AD inhibitor]]'' ([[Disulfiram]]
 
* [[Calcium carbimide]])
 
* [[Calcium carbimide]])
Line 25: Line 25:
 
* [[Baclofen]]
 
* [[Baclofen]]
  
| group3 = [[Opioid dependence]]
+
| group3 = [[Opioid dependence]]
| list3 =
+
| list3 =
 
* [[Buprenorphine]]
 
* [[Buprenorphine]]
 
* [[Methadone]]
 
* [[Methadone]]
Line 33: Line 33:
 
* [[Dihydroetorphine]]
 
* [[Dihydroetorphine]]
 
* [[Morphine|Morphine (extended-release)]]
 
* [[Morphine|Morphine (extended-release)]]
* [[Hydromorphone|Hydromorphone (extended-release)]]  
+
* [[Hydromorphone|Hydromorphone (extended-release)]]
 
* ''[[Adrenergic agonist|AA]]'' ([[Clonidine]]
 
* ''[[Adrenergic agonist|AA]]'' ([[Clonidine]]
 
* [[Lofexidine]])
 
* [[Lofexidine]])
 
* [[Ibogaine]]
 
* [[Ibogaine]]
  
| group4 = [[Benzodiazepine dependence]]
+
| group4 = [[Benzodiazepine dependence]]
| list4 =
+
| list4 =
 
* ''[[Adrenergic agonist|AA]]'' ([[Clonidine]])
 
* ''[[Adrenergic agonist|AA]]'' ([[Clonidine]])
 
* ''[[Benzodiazepine]]s'' ([[Diazepam]]
 
* ''[[Benzodiazepine]]s'' ([[Diazepam]]
Line 47: Line 47:
 
* ''[[Barbiturate]]s'' ([[Phenobarbital]])
 
* ''[[Barbiturate]]s'' ([[Phenobarbital]])
  
| group5 = [[Amphetamine dependence]]
+
| group5 = [[Amphetamine dependence]]
| list5 =
+
| list5 =
 
* [[Amphetamine]]
 
* [[Amphetamine]]
 
* [[Bupropion]]
 
* [[Bupropion]]
 
* [[Topiramate]]
 
* [[Topiramate]]
  
| group6 = [[Cocaine dependence]]
+
| group6 = [[Cocaine dependence]]
| list6 =
+
| list6 =
 
* [[Bupropion]]
 
* [[Bupropion]]
 
* [[Topiramate]]
 
* [[Topiramate]]
  
| belowstyle = background: transparent; padding: 0px;
+
| belowstyle = background: transparent; padding: 0px;
| below = {{Central nervous system navs}}
+
| below = {{Central nervous system navs}}
  
 
}}<noinclude>
 
}}<noinclude>
 
{{collapsible option}}
 
{{collapsible option}}
[[Category:Drugs acting on the nervous system]]
+
[[Category:Drug templates by ATC]]
[[Category:Drug_templates by ATC]]
 
 
</noinclude>
 
</noinclude>

Revision as of 12:03, 2 April 2015

Initial visibility: currently defaults to autocollapse

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

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