Template:MedTemplate: Difference between revisions
Template page
More actions
MDElliottMD (talk | contribs) No edit summary |
MDElliottMD (talk | contribs) some restructuring |
||
| Line 5: | Line 5: | ||
{{#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:{{{class|}}}|<tr><th style="text-align:left;">Class</th><td>{{{class}}}</td></tr>}} | ||
{{#if:{{{mechanism|}}}|<tr><th style="text-align:left;"> | {{#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>}} | ||
<tr><th colspan="2" style="background:#16a34a; color:#fff; padding:0.4em; text-align:left;">Chemistry</th></tr> | <tr><th colspan="2" style="background:#16a34a; color:#fff; padding:0.4em; text-align:left;">Chemistry</th></tr> | ||
{{#if:{{{formula|}}}|<tr><th style="text-align:left;">Formula</th><td>{{{formula}}}</td></tr>}} | {{#if:{{{formula|}}}|<tr><th style="text-align:left;">Formula</th><td>{{{formula}}}</td></tr>}} | ||
<tr><th colspan="2" style="background:#7c3aed; color:#fff; padding:0.4em; text-align:left;">Pharmacology</th></tr> | <tr><th colspan="2" style="background:#7c3aed; color:#fff; padding:0.4em; text-align:left;">Pharmacology</th></tr> | ||
{{#if:{{{routes|}}}|<tr><th style="text-align:left;">Routes</th><td>{{{routes}}}</td></tr>}} | {{#if:{{{routes|}}}|<tr><th style="text-align:left;">Routes</th><td>{{{routes}}}</td></tr>}} | ||
| Line 20: | 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>{{#if:{{{intro|}}}| | </table>{{#set: | ||
| Has generic name = {{{generic|}}} | |||
| Has brand name = {{{brand|}}} | |||
| Has class = {{{class|}}} | |||
| Has mechanism = {{{mechanism|}}} | |||
| Has formula = {{{formula|}}} | |||
| Has route = {{{routes|}}} | |||
| Has onset = {{{onset|}}} | |||
| Has duration = {{{duration|}}} | |||
| Has half-life = {{{halflife|}}} | |||
| Has bioavailability = {{{bioavailability|}}} | |||
| Has pregnancy class = {{{pregnancy|}}} | |||
| Has legal status = {{{legal|}}} | |||
}}{{#if:{{{intro|}}}| | |||
{{{intro}}} | {{{intro}}} | ||
}}{{#if:{{{ | }}{{#if:{{{pharmacokinetics|}}}|<h2 id="Pharmacokinetics">Pharmacokinetics</h2> | ||
{{{ | {{{pharmacokinetics}}}}}{{#if:{{{pharmacodynamics|}}}|<h2 id="Pharmacodynamics">Pharmacodynamics</h2> | ||
{{{ | {{{pharmacodynamics}}}}}{{#if:{{{indications|}}}|<h2 id="Indications">Indications</h2> | ||
{{{indications}}}}}{{#if:{{{dosing|}}}|<h2 id="Dosing">Dosing and titration</h2> | {{{indications}}}}}{{#if:{{{dosing|}}}|<h2 id="Dosing">Dosing and titration</h2> | ||
{{{dosing}}}}}{{#if:{{{effects|}}}|<h2 id="Effects">Effects</h2> | {{{dosing}}}}}{{#if:{{{effects|}}}|<h2 id="Effects">Effects</h2> | ||
| Line 38: | Line 48: | ||
{{{anecdotes}}}}}{{#if:{{{seealso|}}}|<h2 id="SeeAlso">See also</h2> | {{{anecdotes}}}}}{{#if:{{{seealso|}}}|<h2 id="SeeAlso">See also</h2> | ||
{{{seealso}}}}}{{#if:{{{references|}}}|<h2 id="References">References</h2> | {{{seealso}}}}}{{#if:{{{references|}}}|<h2 id="References">References</h2> | ||
{{{references}}}}}[[Category: | {{{references}}}}}[[Category:Medicines]]</includeonly><noinclude> | ||
<noinclude> | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
| Line 54: | Line 59: | ||
| uses = | | uses = | ||
| formula = | | formula = | ||
| routes = | | routes = | ||
| onset = | | onset = | ||
| Line 65: | Line 67: | ||
| legal = | | legal = | ||
| intro = | | intro = | ||
| pharmacokinetics = | | pharmacokinetics = | ||
| pharmacodynamics = | |||
| indications = | | indications = | ||
| dosing = | | dosing = | ||
| Line 81: | Line 83: | ||
}} | }} | ||
</pre> | </pre> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Full page template for a medicine entry. | "description": "Full page template for a medicine entry. Tri-section infobox (Summary / Chemistry / Pharmacology) plus auto-suppressed body sections.", | ||
"params": { | "params": { | ||
"generic": { "label": "Generic name(s)", | "generic": { "label": "Generic name(s)", "type": "string" }, | ||
"brand": { "label": "Brand 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" }, | "structure": { "label": "Structure image", "description": "Filename only, no 'File:' prefix.", "type": "wiki-file-name" }, | ||
"structuresize": { "label": "Structure size", | "structuresize": { "label": "Structure size", "type": "string", "default": "240px" }, | ||
"class": { "label": "Class", | "class": { "label": "Class", "type": "string" }, | ||
"mechanism": { "label": " | "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" }, | ||
"formula": { "label": "Chemical formula", "type": "string" }, | "formula": { "label": "Chemical formula", "type": "string" }, | ||
"routes": { "label": "Routes", "type": "string" }, | |||
"routes": { "label": "Routes | |||
"onset": { "label": "Onset", "type": "string" }, | "onset": { "label": "Onset", "type": "string" }, | ||
"duration": { "label": "Duration", "type": "string" }, | "duration": { "label": "Duration", "type": "string" }, | ||
"halflife": { "label": "Half-life", "type": "string" }, | "halflife": { "label": "Half-life", "type": "string" }, | ||
"bioavailability": { "label": "Bioavailability", "type": "string" }, | "bioavailability": { "label": "Bioavailability", "type": "string" }, | ||
"pregnancy": { "label": "Pregnancy (short) | "pregnancy": { "label": "Pregnancy (short)", "type": "string" }, | ||
"legal": { "label": "Legal status", | "legal": { "label": "Legal status", "type": "string" }, | ||
"intro": { "label": "Intro paragraph", | "intro": { "label": "Intro paragraph", "type": "content" }, | ||
"pharmacokinetics": { "label": "Pharmacokinetics", "description": "ADME — absorption, distribution, metabolism, excretion.", "type": "content" }, | "pharmacokinetics": { "label": "Pharmacokinetics", "description": "ADME — absorption, distribution, metabolism, excretion.", "type": "content" }, | ||
"indications": { "label": "Indications", | "pharmacodynamics": { "label": "Pharmacodynamics", "description": "Mechanism of action, receptor binding, downstream effects.", "type": "content" }, | ||
"dosing": { "label": "Dosing | "indications": { "label": "Indications", "type": "content" }, | ||
"effects": { "label": "Effects", | "dosing": { "label": "Dosing & titration","type": "content" }, | ||
"adverse": { "label": "Adverse effects", | "effects": { "label": "Effects", "type": "content" }, | ||
"adverse": { "label": "Adverse effects", "type": "content" }, | |||
"contraindications": { "label": "Contraindications", "type": "content" }, | "contraindications": { "label": "Contraindications", "type": "content" }, | ||
"interactions": { "label": "Interactions", | "interactions": { "label": "Interactions", "type": "content" }, | ||
"pregnancy_details": { "label": "Pregnancy & lactation (body | "pregnancy_details": { "label": "Pregnancy & lactation (body)", "type": "content" }, | ||
"monitoring": { "label": "Monitoring", | "monitoring": { "label": "Monitoring", "type": "content" }, | ||
"counseling": { "label": "Patient counseling","type": "content" }, | "counseling": { "label": "Patient counseling","type": "content" }, | ||
"anecdotes": { "label": "Personal experience", "type": "content" }, | "anecdotes": { "label": "Personal experience", "type": "content" }, | ||
| Line 126: | Line 119: | ||
"references": { "label": "References", "type": "content" } | "references": { "label": "References", "type": "content" } | ||
}, | }, | ||
"format": "block" | "format": "block" | ||
} | } | ||