Template:MedTemplate: Difference between revisions
Appearance
MDElliottMD (talk | contribs) WCAG S1: MedTemplate section labels are now real <h2>/<h3> headings |
MDElliottMD (talk | contribs) MedTemplate: add optional history rendered param (History H2 after intro), per home-claude |
||
| Line 19: | Line 19: | ||
}}<div class="med-grid"><div class="med-main">{{#if:{{{intro|}}}| | }}<div class="med-grid"><div class="med-main">{{#if:{{{intro|}}}| | ||
{{{intro}}} | {{{intro}}} | ||
}}<div class="med-sec-head" id="Experience"><h2 class="sec-title">Experience</h2></div> | }}{{#if:{{{history|}}}|<div class="med-sec-head" id="History"><h2 class="sec-title">History</h2></div> | ||
{{{history}}}}}<div class="med-sec-head" id="Experience"><h2 class="sec-title">Experience</h2></div> | |||
<pharmaExperience/> | <pharmaExperience/> | ||
<div class="med-sec-head" id="Problems"><h2 class="sec-title">Problems</h2></div> | <div class="med-sec-head" id="Problems"><h2 class="sec-title">Problems</h2></div> | ||
| Line 108: | Line 109: | ||
| mechanism = | | mechanism = | ||
| intro = | | intro = | ||
| history = | |||
| indications = | | indications = | ||
| dosing = | | dosing = | ||
Revision as of 00:56, 21 May 2026
This template defines the table "Medicines". View table.
Usage
Medicine entry template. Fill in fields below; empty fields are auto-omitted.
The problems parameter still uses the historical name in template wikitext to preserve compatibility with every existing medicine page; the rendered H2 heading on the page now reads "Problems" (see Special:Problems for the repository and Pharmacopedia:Citation needed adjacent context).
{{MedTemplate
| generic =
| brand =
| structure =
| classes =
| uses =
| starting_dose =
| preparations =
| fda_max =
| pill_id =
| routes =
| onset =
| duration =
| halflife =
| bioavailability =
| pregnancy =
| legal =
| mechanism =
| intro =
| history =
| indications =
| dosing =
| effects =
| pk_absorption =
| pk_distribution =
| pk_metabolism =
| pk_elimination =
| pharmacodynamics =
| interactions =
| pregnancy_details =
| monitoring =
| counseling =
| anecdotes =
| seealso =
| references =
}}
Notes:
- The
problemsparameter feeds the "Problems" H2 section on the rendered page. Content typically consists of<problem ref="..."/>tags (formerly<problem ref="..."/>). UseSuggestProblemor the per-page+ Add a problemlink to propose new entries. - 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.