Template:MedTemplate
Usage docs and TemplateData go here — keep what you already have, or copy the TemplateData block from the earlier message if you want VisualEditor integration.
Usage
{{MedTemplate
| generic =
| brand =
| structure =
| class =
| mechanism =
| uses =
| formula =
| mass =
| cas =
| atc =
| routes =
| onset =
| duration =
| halflife =
| bioavailability =
| pregnancy =
| legal =
| intro =
| pharmacology =
| pharmacokinetics =
| indications =
| dosing =
| effects =
| adverse =
| contraindications =
| interactions =
| pregnancy_details =
| monitoring =
| counseling =
| anecdotes =
| seealso =
| references =
}}
Three groups of fields:
- Infobox (right column): short, label-style values — name, brand, class, formula, half-life, etc.
- Body sections: prose; renders as full-width
== Section ==headings only when filled. - Auto-omitted rows/sections: any empty parameter is skipped (no empty boxes or stray headings).
Full page template for a medicine entry. Renders a tri-section infobox (Summary / Chemistry / Pharmacology) plus auto-suppressed body sections.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Generic name(s) | generic | Comma-separated. Defaults to page name. | String | optional |
| Brand name(s) | brand | no description | String | optional |
| Structure image | structure | Filename only, no 'File:' prefix. | File | optional |
| Structure size | structuresize | Defaults to 240px.
| String | optional |
| Class | class | Pharmacological class, e.g. SSRI. | String | optional |
| Mechanism (1 line) | mechanism | One-line summary for infobox; expand in 'Pharmacology' body section. | String | optional |
| Common uses | uses | no description | String | optional |
| Chemical formula | formula | no description | String | optional |
| Molar mass | mass | no description | String | optional |
| CAS number | cas | no description | String | optional |
| ATC code | atc | no description | String | optional |
| Routes of administration | routes | no description | String | optional |
| Onset | onset | no description | String | optional |
| Duration | duration | no description | String | optional |
| Half-life | halflife | no description | String | optional |
| Bioavailability | bioavailability | no description | String | optional |
| Pregnancy (short) | pregnancy | Short tag for infobox, e.g. 'Category C'. Detailed prose goes in 'pregnancy_details'. | String | optional |
| Legal status | legal | e.g. 'Rx-only', 'Schedule IV'. | String | optional |
| Intro paragraph | intro | Free wikitext above the first heading. | Content | optional |
| Pharmacology | pharmacology | no description | Content | optional |
| Pharmacokinetics | pharmacokinetics | ADME — absorption, distribution, metabolism, excretion. | Content | optional |
| Indications | indications | no description | Content | optional |
| Dosing and titration | dosing | no description | Content | optional |
| Effects | effects | Therapeutic + common adverse effects. | Content | optional |
| Adverse effects | adverse | Serious / less common adverse effects, warnings. | Content | optional |
| Contraindications | contraindications | no description | Content | optional |
| Interactions | interactions | Medicine-medicine, medicine-food, etc. | Content | optional |
| Pregnancy & lactation (body section) | pregnancy_details | no description | Content | optional |
| Monitoring | monitoring | Labs, vitals, or signs to watch. | Content | optional |
| Patient counseling | counseling | no description | Content | optional |
| Personal experience | anecdotes | no description | Content | optional |
| See also | seealso | no description | Content | optional |
| References | references | no description | Content | optional |