Jump to content

Template:MedTemplate: Difference between revisions

From Pharmacopedia
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#cargo_store:_table=Medicines
<includeonly><table class="wikitable" style="float:right; clear:right; max-width:28em; margin:0 0 1em 1em; font-size:92%;">
| generic={{{generic|}}}
| brand={{{brand|}}}
| structure={{{structure|}}}
| classes={{{classes|}}}
| mechanism={{{mechanism|}}}
| uses={{{uses|}}}
| formula={{{formula|}}}
| routes={{{routes|}}}
| onset={{{onset|}}}
| duration={{{duration|}}}
| halflife={{{halflife|}}}
| bioavailability={{{bioavailability|}}}
| pregnancy={{{pregnancy|}}}
| legal={{{legal|}}}
}}<table class="wikitable" style="float:right; clear:right; max-width:28em; margin:0 0 1em 1em; font-size:92%;">
<caption style="font-size:120%; padding:0.4em; font-weight:bold;">{{{generic|{{PAGENAME}}}}}</caption>
<caption style="font-size:120%; padding:0.4em; font-weight:bold;">{{{generic|{{PAGENAME}}}}}</caption>
{{#if:{{{structure|}}}|<tr><td colspan="2" style="padding:0.8em; text-align:center;">[[File:{{{structure}}}|frameless|{{{structuresize|240px}}}|alt=Structure of {{{generic|{{PAGENAME}}}}}]]<br><small>'''Structure'''</small></td></tr>}}
{{#if:{{{structure|}}}|<tr><td colspan="2" style="padding:0.8em; text-align:center;">[[File:{{{structure}}}|frameless|{{{structuresize|240px}}}|alt=Structure of {{{generic|{{PAGENAME}}}}}]]<br><small>'''Structure'''</small></td></tr>}}
Line 32: 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>{{#cargo_store:_table=Medicines
| generic={{{generic|}}}
| brand={{{brand|}}}
| structure={{{structure|}}}
| classes={{{classes|}}}
| mechanism={{{mechanism|}}}
| uses={{{uses|}}}
| formula={{{formula|}}}
| routes={{{routes|}}}
| onset={{{onset|}}}
| duration={{{duration|}}}
| halflife={{{halflife|}}}
| bioavailability={{{bioavailability|}}}
| pregnancy={{{pregnancy|}}}
| legal={{{legal|}}}
}}{{#if:{{{intro|}}}|
{{{intro}}}
{{{intro}}}
}}{{#if:{{{pharmacokinetics|}}}|<h2 id="Pharmacokinetics">Pharmacokinetics</h2>
}}{{#if:{{{pharmacokinetics|}}}|<h2 id="Pharmacokinetics">Pharmacokinetics</h2>
Line 38: Line 38:
{{{pharmacodynamics}}}}}{{#if:{{{indications|}}}|<h2 id="Indications">Indications</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|}}}{{{adverse|}}}|<h2 id="Effects">Effects</h2>
{{{effects}}}}}{{#if:{{{adverse|}}}|<h2 id="Adverse">Adverse effects</h2>
{{{effects|}}}{{#if:{{{adverse|}}}|
{{{adverse}}}}}{{#if:{{{contraindications|}}}|<h2 id="Contraindications">Contraindications</h2>
 
{{{adverse}}}}}}}{{#if:{{{contraindications|}}}|<h2 id="Contraindications">Contraindications</h2>
{{{contraindications}}}}}{{#if:{{{interactions|}}}|<h2 id="Interactions">Interactions</h2>
{{{contraindications}}}}}{{#if:{{{interactions|}}}|<h2 id="Interactions">Interactions</h2>
{{{interactions}}}}}{{#if:{{{pregnancy_details|}}}|<h2 id="Pregnancy">Pregnancy and lactation</h2>
{{{interactions}}}}}{{#if:{{{pregnancy_details|}}}|<h2 id="Pregnancy">Pregnancy and lactation</h2>
Line 70: Line 71:
== Usage ==
== Usage ==


Medicine entry template. Fill in fields below; empty fields are auto-omitted from both the infobox and the body.
Medicine entry template. Fill in fields below; empty fields are auto-omitted.


<pre>
<pre>
Line 94: Line 95:
| dosing            =  
| dosing            =  
| effects          =  
| effects          =  
| adverse          =
| contraindications =  
| contraindications =  
| interactions      =  
| interactions      =  
Line 105: Line 105:
}}
}}
</pre>
</pre>
Note: ''The'' <code>adverse</code> ''parameter is deprecated — its content is still rendered, but new pages should combine therapeutic and adverse effects into the single'' <code>effects</code> ''parameter.''


This template also populates the '''Medicines''' Cargo table — see [[Special:CargoTables/Medicines]].
This template also populates the '''Medicines''' Cargo table — see [[Special:CargoTables/Medicines]].

Revision as of 23:08, 11 May 2026

This template defines the table "Medicines". View table.

Usage

Medicine entry template. Fill in fields below; empty fields are auto-omitted.

{{MedTemplate
| generic           = 
| brand             = 
| structure         = 
| classes           = 
| mechanism         = 
| uses              = 
| formula           = 
| routes            = 
| onset             = 
| duration          = 
| halflife          = 
| bioavailability   = 
| pregnancy         = 
| legal             = 
| intro             = 
| pharmacokinetics  = 
| pharmacodynamics  = 
| indications       = 
| dosing            = 
| effects           = 
| contraindications = 
| interactions      = 
| pregnancy_details = 
| monitoring        = 
| counseling        = 
| anecdotes         = 
| seealso           = 
| references        = 
}}

Note: The adverse parameter is deprecated — its content is still rendered, but new pages should combine therapeutic and adverse effects into the single effects parameter.

This template also populates the Medicines Cargo table — see Special:CargoTables/Medicines.