Jump to content

Template:MedTemplate: Difference between revisions

From Pharmacopedia
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><table class="wikitable" style="float:right; clear:right; max-width:28em; margin:0 0 1em 1em; font-size:92%;">
<includeonly>{{#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|}}}
}}<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 36: Line 51:
{{{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>
Edit medicine entries via the form at [[Special:FormEdit/Medicine]].
{{#cargo_declare:_table=Medicines
| generic=String
| brand=String
| structure=File
| classes=List (,) of String
| mechanism=String
| uses=String
| formula=String
| routes=List (,) of String
| onset=String
| duration=String
| halflife=String
| bioavailability=String
| pregnancy=String
| legal=String
}}
 
== Usage ==
 
Medicine entry template. Fill in fields below; empty fields are auto-omitted from both the infobox and the body.
 
<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>
 
This template also populates the '''Medicines''' Cargo table — see [[Special:CargoTables/Medicines]].


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

Revision as of 07:24, 11 May 2026

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

Usage

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

{{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        = 
}}

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