Difference between revisions of "Template:Antiglaucoma preparations and miotics"

From blackwiki
Jump to navigation Jump to search
blackwiki>TonyTheTiger
(adding {{collapsible option}} and/or {{{state}}})
blackwiki>Tom (LT)
m (simplify title, and per Template_talk:Medicine_navs#Background_colours, remove unnecessary and confusing background colours using AWB)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
 
| name  = Antiglaucoma preparations and miotics
 
| name  = Antiglaucoma preparations and miotics
| title = [[Ophthalmology|Ophthalmologicals]]: [[glaucoma|antiglaucoma]] preparations and [[miotic]]s ([[ATC code S01#S01E|S01E]])
+
| title = Drugs used for [[glaucoma]] preparations and [[miosis]] ([[ATC code S01#S01E|S01E]])
 
| state = {{{state|autocollapse}}}
 
| state = {{{state|autocollapse}}}
 
|listclass = hlist
 
|listclass = hlist
| groupstyle = background: LemonChiffon
 
| style = text-align:left;
 
 
| group1 = [[Sympathomimetic drug|Sympathomimetics]]
 
| group1 = [[Sympathomimetic drug|Sympathomimetics]]
 
| list1  =
 
| list1  =
Line 16: Line 14:
 
| group2 = [[Parasympathomimetic drug|Parasympathomimetics]]
 
| group2 = [[Parasympathomimetic drug|Parasympathomimetics]]
 
| list2  = {{Navbox subgroup
 
| list2  = {{Navbox subgroup
  | groupstyle = background: LemonChiffon
 
  
 
| group1 = [[muscarinic]]
 
| group1 = [[muscarinic]]

Revision as of 04:17, 15 February 2015

Initial visibility: currently defaults to autocollapse

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

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