Template:MedTemplate: Difference between revisions
Appearance
Add Relevant Literature section (auto via pcp_insert_literature_section.php) |
Add Pill ID field under FDA max in Pharmacy section |
||
| 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">{{{pill_id}}}</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>}} | ||
| Line 29: | Line 30: | ||
| preparations={{{preparations|}}} | | preparations={{{preparations|}}} | ||
| fda_max={{{fda_max|}}} | | fda_max={{{fda_max|}}} | ||
| pill_id={{{pill_id|}}} | |||
| routes={{{routes|}}} | | routes={{{routes|}}} | ||
| onset={{{onset|}}} | | onset={{{onset|}}} | ||
| Line 89: | Line 91: | ||
| preparations=String | | preparations=String | ||
| fda_max=String | | fda_max=String | ||
| pill_id=Text | |||
| routes=List (,) of String | | routes=List (,) of String | ||
| onset=String | | onset=String | ||
| Line 112: | Line 115: | ||
| preparations = | | preparations = | ||
| fda_max = | | fda_max = | ||
| pill_id = | |||
| routes = | | routes = | ||
| onset = | | onset = | ||
Revision as of 21:04, 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
adverseparameter is deprecated — its content is still rendered, but new pages should combine therapeutic and adverse effects into the singleeffectsparameter. - The
formulaparameter is deprecated and no longer rendered. It can be removed from existing pages. - The single
pharmacokineticsparameter is deprecated; new pages should usepk_absorption,pk_distribution,pk_metabolism, andpk_elimination.
This template also populates the Medicines Cargo table — see Special:CargoTables/Medicines.