Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MedTemplate: Difference between revisions

Template page
some restructuring
No edit summary
Line 4: Line 4:
<tr><th colspan="2" style="background:#2563eb; color:#fff; padding:0.4em; text-align:left;">Summary</th></tr>
<tr><th colspan="2" style="background:#2563eb; color:#fff; padding:0.4em; text-align:left;">Summary</th></tr>
{{#if:{{{brand|}}}|<tr><th style="text-align:left; width:9em;">Brand name(s)</th><td>{{{brand}}}</td></tr>}}
{{#if:{{{brand|}}}|<tr><th style="text-align:left; width:9em;">Brand name(s)</th><td>{{{brand}}}</td></tr>}}
{{#if:{{{class|}}}|<tr><th style="text-align:left;">Class</th><td>{{{class}}}</td></tr>}}
{{#if:{{{classes|}}}|<tr><th style="text-align:left;">Classes</th><td>{{{classes}}}</td></tr>}}
{{#if:{{{mechanism|}}}|<tr><th style="text-align:left;">Mechanism</th><td>{{{mechanism}}}</td></tr>}}
{{#if:{{{mechanism|}}}|<tr><th style="text-align:left;">Mechanism</th><td>{{{mechanism}}}</td></tr>}}
{{#if:{{{uses|}}}|<tr><th style="text-align:left;">Common uses</th><td>{{{uses}}}</td></tr>}}
{{#if:{{{uses|}}}|<tr><th style="text-align:left;">Common uses</th><td>{{{uses}}}</td></tr>}}
Line 20: Line 20:
  | Has generic name    = {{{generic|}}}
  | Has generic name    = {{{generic|}}}
  | Has brand name      = {{{brand|}}}
  | Has brand name      = {{{brand|}}}
  | Has class           = {{{class|}}}
  | Has classes           = {{{classes|}}}
  | Has mechanism      = {{{mechanism|}}}
  | Has mechanism      = {{{mechanism|}}}
  | Has formula        = {{{formula|}}}
  | Has formula        = {{{formula|}}}
Line 55: Line 55:
| brand            =  
| brand            =  
| structure        =  
| structure        =  
| class            =  
| classes          =  
| mechanism        =  
| mechanism        =  
| uses              =  
| uses              =  
Line 92: Line 92:
     "structure":        { "label": "Structure image",  "description": "Filename only, no 'File:' prefix.", "type": "wiki-file-name" },
     "structure":        { "label": "Structure image",  "description": "Filename only, no 'File:' prefix.", "type": "wiki-file-name" },
     "structuresize":    { "label": "Structure size",    "type": "string", "default": "240px" },
     "structuresize":    { "label": "Structure size",    "type": "string", "default": "240px" },
     "class":             { "label": "Class",             "type": "string" },
     "classes":           { "label": "Classes",          "description": "Comma-separated if more than one (e.g. NSAID, Antiplatelet).", "type": "string" },
     "mechanism":        { "label": "Mechanism (1 line)","description": "Expand in 'Pharmacodynamics' body section.", "type": "string" },
     "mechanism":        { "label": "Mechanism (1 line)","description": "Expand in 'Pharmacodynamics' body section.", "type": "string" },
     "uses":              { "label": "Common uses",      "type": "string" },
     "uses":              { "label": "Common uses",      "type": "string" },