Template:MedTemplate: Difference between revisions
MDElliottMD (talk | contribs) some restructuring |
MDElliottMD (talk | contribs) 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:{{{ | {{#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 | | Has classes = {{{classes|}}} | ||
| Has mechanism = {{{mechanism|}}} | | Has mechanism = {{{mechanism|}}} | ||
| Has formula = {{{formula|}}} | | Has formula = {{{formula|}}} | ||
| Line 55: | Line 55: | ||
| brand = | | brand = | ||
| structure = | | structure = | ||
| | | 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" }, | ||
" | "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" }, | ||
Revision as of 05:12, 11 May 2026
Usage
{{MedTemplate
| generic =
| brand =
| structure =
| classes =
| mechanism =
| uses =
| formula =
| routes =
| onset =
| duration =
| halflife =
| bioavailability =
| pregnancy =
| legal =
| intro =
| pharmacokinetics =
| pharmacodynamics =
| indications =
| dosing =
| effects =
| adverse =
| contraindications =
| interactions =
| pregnancy_details =
| monitoring =
| counseling =
| anecdotes =
| seealso =
| references =
}}
Full page template for a medicine entry. Tri-section infobox (Summary / Chemistry / Pharmacology) plus auto-suppressed body sections.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Generic name(s) | generic | no description | String | optional |
| Brand name(s) | brand | no description | String | optional |
| Structure image | structure | Filename only, no 'File:' prefix. | File | optional |
| Structure size | structuresize | no description
| String | optional |
| Classes | classes | Comma-separated if more than one (e.g. NSAID, Antiplatelet). | String | optional |
| Mechanism (1 line) | mechanism | Expand in 'Pharmacodynamics' body section. | String | optional |
| Common uses | uses | no description | String | optional |
| Chemical formula | formula | no description | String | optional |
| Routes | 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 | no description | String | optional |
| Legal status | legal | no description | String | optional |
| Intro paragraph | intro | no description | Content | optional |
| Pharmacokinetics | pharmacokinetics | ADME — absorption, distribution, metabolism, excretion. | Content | optional |
| Pharmacodynamics | pharmacodynamics | Mechanism of action, receptor binding, downstream effects. | Content | optional |
| Indications | indications | no description | Content | optional |
| Dosing & titration | dosing | no description | Content | optional |
| Effects | effects | no description | Content | optional |
| Adverse effects | adverse | no description | Content | optional |
| Contraindications | contraindications | no description | Content | optional |
| Interactions | interactions | no description | Content | optional |
| Pregnancy & lactation (body) | pregnancy_details | no description | Content | optional |
| Monitoring | monitoring | no description | 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 |