Difference between revisions of "Template:Infobox drug mechanism"

From blackwiki
Jump to navigation Jump to search
imported>Boghog
m (typo)
imported>Boghog
(another attempt)
Line 1: Line 1:
 
{{Template for discussion/dated|page=Infobox drug mechanism|link=Wikipedia:Templates for discussion/Log/2013 October 1#Template:Infobox drug mechanism|help=off}}
 
{{Template for discussion/dated|page=Infobox drug mechanism|link=Wikipedia:Templates for discussion/Log/2013 October 1#Template:Infobox drug mechanism|help=off}}
{{ infobox; {{#switch:{{{align|}}}
+
{{ infobox
 +
| abovestyle = {{#if:{{{Background|}}}|background-color:{{{Background|}}} }}
 +
| above      = {{{Name|<includeonly>{{PAGENAME}}</includeonly>}}}
 +
| aboveclass = navbox-title
 +
| bodystyle = {{#switch:{{{align|}}}
 
  | left = float:left; clear:left; margin: 0.5em 1em 0.5em 0;
 
  | left = float:left; clear:left; margin: 0.5em 1em 0.5em 0;
 
  | center = float:none; margin:auto
 
  | center = float:none; margin:auto
 
  | none = float:none; margin: 0.5em 0 0.5em 0;
 
  | none = float:none; margin: 0.5em 0 0.5em 0;
 
  | right | #default =
 
  | right | #default =
  }}"
+
  }}
| abovestyle = {{#if:{{{Background|}}}|background-color:{{{Background|}}} }}
 
| above      = {{{Name|<includeonly>{{PAGENAME}}</includeonly>}}}
 
| aboveclass = navbox-title
 
 
| subheader  = <includeonly>''Drug mechanism''</includeonly>
 
| subheader  = <includeonly>''Drug mechanism''</includeonly>
 
| image      = {{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|{{px|{{{Width|upright=1.06}}}}}|alt={{{Alt|}}}]]}}
 
| image      = {{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|{{px|{{{Width|upright=1.06}}}}}|alt={{{Alt|}}}]]}}

Revision as of 03:39, 6 October 2013

Template:Template for discussion/dated

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Template:Wikidata property

Use this template freely in the mechanism section of any drug article.

Usage

Don't worry about trying to fill in all the fields – even if you can only get one or two, that still can be useful.

While editing an article about a drug class, copy and paste the following text at the top of the page:

{{{Name}}}
Drug class
[[File:{{{Image}}}|frameless|alt={{{Alt}}}|upright=1.25|{{{Alt}}}]]
{{{Caption}}}
Class identifiers
Use{{{Use}}}
ATC code[[ATC_code_{{{ATC_prefix}}}|{{{ATC_prefix}}}]]
Biological target{{{Biological_target}}}
[[d:Template:Wikidata |In Wikidata]]
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox drug class
| Name              = <!-- omit to use page name -->
| Image             = 
| Alt               = 
| Caption           = 
| Use               = 
| MOA_text          = 
| Biological_target = 
| ATC_prefix        = 
| ATC_suffix        = 
| PDB_ligand        = 
| PDB_complex       = 
}}