Difference between revisions of "Template:Components of opium"

From blackwiki
Jump to navigation Jump to search
imported>Ronhjones
(use listclass = hlist in navbox as per WP:HLIST)
imported>Marcocapelle
(more specific categorisation)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
|name  = Opium components
+
|name  = Components of opium
 
|title = [[Opium]] components
 
|title = [[Opium]] components
 +
|state = {{{state|autocollapse}}}
 
|listclass = hlist
 
|listclass = hlist
 
+
|groupstyle = line-height:1.2em;
|group1 =  
 
  
 
|group1 = [[Alkaloid]]s
 
|group1 = [[Alkaloid]]s
Line 14: Line 14:
 
* [[Coptisine]]
 
* [[Coptisine]]
 
* [[Coreximine]]
 
* [[Coreximine]]
* [[Cycloartenol]]
 
 
* [[Cycloartenone]]
 
* [[Cycloartenone]]
 
* [[Cyclolaudenol]]
 
* [[Cyclolaudenol]]
Line 40: Line 39:
 
* [[Stepholidine]]
 
* [[Stepholidine]]
  
|group2 = {{line-height|1.2em|[[Morphine]] group<br/>([[Phenanthrene]]s. Includes [[Template:Opioids|opioids]])}}
+
|group2 = [[Morphine]] group<br/>([[Phenanthrene]]s. Includes [[Template:Opioids|opioids]])
 
|list2  =  
 
|list2  =  
 
* [[Codeine]]
 
* [[Codeine]]
Line 107: Line 106:
 
|list9  =  
 
|list9  =  
 
* [[Meconic acid]]
 
* [[Meconic acid]]
 +
* [[Cycloartenol]]
 
}}<noinclude>
 
}}<noinclude>
 
+
{{collapsible option}}
[[Category:Drug templates]]
+
[[Category:Psychoactive drug templates]]
 +
[[Category:Components]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:32, 12 September 2020

Initial visibility: currently defaults to autocollapse

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

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