Jump to content

Template:MedTemplate: Difference between revisions

From Pharmacopedia
Wrap Pill ID content in click-to-expand <details>; fix leading-bullet parsing
Pill ID: replace <details> with mw-collapsible (sanitizer-friendly)
Line 10: Line 10:
{{#if:{{{preparations|}}}|<tr><th style="text-align:left;">Preparations</th><td>{{{preparations}}}</td></tr>}}
{{#if:{{{preparations|}}}|<tr><th style="text-align:left;">Preparations</th><td>{{{preparations}}}</td></tr>}}
{{#if:{{{fda_max|}}}|<tr><th style="text-align:left;">US FDA Max</th><td>{{{fda_max}}}</td></tr>}}
{{#if:{{{fda_max|}}}|<tr><th style="text-align:left;">US FDA Max</th><td>{{{fda_max}}}</td></tr>}}
{{#if:{{{pill_id|}}}|<tr><th style="text-align:left; vertical-align:top;">Pill ID</th><td><div class="pcp-pill-id"><details><summary>Show pill identifiers</summary>
{{#if:{{{pill_id|}}}|<tr><th style="text-align:left; vertical-align:top;">Pill ID</th><td><div class="pcp-pill-id"><div class="mw-collapsible mw-collapsed" data-expandtext="Show pill identifiers" data-collapsetext="Hide pill identifiers">
{{{pill_id}}}
{{{pill_id}}}
</details></div></td></tr>}}
</div></div></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>}}

Revision as of 21:19, 15 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           = 
| uses              = 
| starting_dose     = 
| preparations      = 
| fda_max           = 
| pill_id           = 
| routes            = 
| onset             = 
| duration          = 
| halflife          = 
| bioavailability   = 
| pregnancy         = 
| legal             = 
| mechanism         = 
| intro             = 
| indications       = 
| dosing            = 
| effects           = 
| pk_absorption     = 
| pk_distribution   = 
| pk_metabolism     = 
| pk_elimination    = 
| pharmacodynamics  =  
| interactions      = 
| pregnancy_details = 
| monitoring        = 
| counseling        = 
| anecdotes         = 
| seealso           = 
| references        = 
}}

Notes:

  • The adverse parameter is deprecated — its content is still rendered, but new pages should combine therapeutic and adverse effects into the single effects parameter.
  • The formula parameter is deprecated and no longer rendered. It can be removed from existing pages.
  • The single pharmacokinetics parameter is deprecated; new pages should use pk_absorption, pk_distribution, pk_metabolism, and pk_elimination.

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