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

Template:MedTemplate: Difference between revisions

Template page
No edit summary
No edit summary
Line 17: Line 17:
{{#if:{{{pregnancy|}}}|<tr><th style="text-align:left;">Pregnancy</th><td>{{{pregnancy}}}</td></tr>}}
{{#if:{{{pregnancy|}}}|<tr><th style="text-align:left;">Pregnancy</th><td>{{{pregnancy}}}</td></tr>}}
{{#if:{{{legal|}}}|<tr><th style="text-align:left;">Legal status</th><td>{{{legal}}}</td></tr>}}
{{#if:{{{legal|}}}|<tr><th style="text-align:left;">Legal status</th><td>{{{legal}}}</td></tr>}}
</table>
</table>{{#if:{{{intro|}}}|
{{#if:{{{intro|}}}|
{{{intro}}}
{{{intro}}}
}}{{#if:{{{pharmacokinetics|}}}|<h2 id="Pharmacokinetics">Pharmacokinetics</h2>
}}{{#if:{{{pharmacokinetics|}}}|<h2 id="Pharmacokinetics">Pharmacokinetics</h2>
Line 37: Line 36:
{{{seealso}}}}}{{#if:{{{references|}}}|<h2 id="References">References</h2>
{{{seealso}}}}}{{#if:{{{references|}}}|<h2 id="References">References</h2>
{{{references}}}}}[[Category:Medicines]]</includeonly><noinclude>
{{{references}}}}}[[Category:Medicines]]</includeonly><noinclude>
== Usage ==
Edit medicine entries via the form at [[Special:FormEdit/Medicine]].
<pre>
{{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        =
}}
</pre>
 
<templatedata>
{
  "description": "Full page template for a medicine entry. Tri-section infobox (Summary / Chemistry / Pharmacology) plus auto-suppressed body sections.",
  "params": {
    "generic":          { "label": "Generic name(s)",  "type": "string" },
    "brand":            { "label": "Brand name(s)",    "type": "string" },
    "structure":        { "label": "Structure image",  "description": "Filename only, no 'File:' prefix.", "type": "wiki-file-name" },
    "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" },
    "uses":              { "label": "Common uses",      "type": "string" },
    "formula":          { "label": "Chemical formula",  "type": "string" },
    "routes":            { "label": "Routes",            "type": "string" },
    "onset":            { "label": "Onset",            "type": "string" },
    "duration":          { "label": "Duration",          "type": "string" },
    "halflife":          { "label": "Half-life",        "type": "string" },
    "bioavailability":  { "label": "Bioavailability",  "type": "string" },
    "pregnancy":        { "label": "Pregnancy (short)", "type": "string" },
    "legal":            { "label": "Legal status",      "type": "string" },
    "intro":            { "label": "Intro paragraph",  "type": "content" },
    "pharmacokinetics":  { "label": "Pharmacokinetics",  "description": "ADME — absorption, distribution, metabolism, excretion.", "type": "content" },
    "pharmacodynamics":  { "label": "Pharmacodynamics",  "description": "Mechanism of action, receptor binding, downstream effects.", "type": "content" },
    "indications":      { "label": "Indications",      "type": "content" },
    "dosing":            { "label": "Dosing & titration","type": "content" },
    "effects":          { "label": "Effects",          "type": "content" },
    "adverse":          { "label": "Adverse effects",  "type": "content" },
    "contraindications": { "label": "Contraindications", "type": "content" },
    "interactions":      { "label": "Interactions",      "type": "content" },
    "pregnancy_details": { "label": "Pregnancy & lactation (body)", "type": "content" },
    "monitoring":        { "label": "Monitoring",        "type": "content" },
    "counseling":        { "label": "Patient counseling","type": "content" },
    "anecdotes":        { "label": "Personal experience", "type": "content" },
    "seealso":          { "label": "See also",          "type": "content" },
    "references":        { "label": "References",        "type": "content" }
  },
  "format": "block"
}
</templatedata>


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>