Template:MedTemplate: Difference between revisions
Appearance
Pill ID: replace <details> with mw-collapsible (sanitizer-friendly) |
MDElliottMD (talk | contribs) Rename 'Indications' H2 to 'Problems' (Phase 2 of indications-to-problems rebuild); 'indications' template parameter retained for back-compat |
||
| Line 44: | Line 44: | ||
}}<h2 id="Experience">Experience</h2> | }}<h2 id="Experience">Experience</h2> | ||
<pharmaExperience/> | <pharmaExperience/> | ||
<h2 id=" | <h2 id="Problems">Problems</h2> | ||
{{#if:{{{indications|}}}|{{{indications}}}|<p style="opacity:0.7; font-style:italic;">No | {{#if:{{{indications|}}}|{{{indications}}}|<p style="opacity:0.7; font-style:italic;">No problems yet — be the first to suggest one.</p>}} | ||
<span class="pcp- | <span class="pcp-problem-suggest-wrap">[[Special:SuggestIndication/{{FULLPAGENAME}}|+ Add a problem]]</span><h2 id="Titration">Titration strategies</h2> | ||
{{#if:{{{dosing|}}}|{{{dosing}}}|<p style="opacity:0.7; font-style:italic;">No titration strategies yet — be the first to suggest one.</p>}} | {{#if:{{{dosing|}}}|{{{dosing}}}|<p style="opacity:0.7; font-style:italic;">No titration strategies yet — be the first to suggest one.</p>}} | ||
| Line 106: | Line 106: | ||
Medicine entry template. Fill in fields below; empty fields are auto-omitted. | Medicine entry template. Fill in fields below; empty fields are auto-omitted. | ||
The <code>indications</code> 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 the [[Pharmacopedia:Problems repository]] design note). | |||
<pre> | <pre> | ||
{{MedTemplate | {{MedTemplate | ||
| generic = | | generic = | ||
| brand = | | brand = | ||
| structure = | | structure = | ||
| classes = | | classes = | ||
| uses = | | uses = | ||
| starting_dose = | | starting_dose = | ||
| preparations = | | preparations = | ||
| fda_max = | | fda_max = | ||
| pill_id = | | pill_id = | ||
| routes = | | routes = | ||
| onset = | | onset = | ||
| duration = | | duration = | ||
| halflife = | | halflife = | ||
| bioavailability = | | bioavailability = | ||
| pregnancy = | | pregnancy = | ||
| legal = | | legal = | ||
| mechanism = | | mechanism = | ||
| intro = | | intro = | ||
| indications = | | indications = | ||
| dosing = | | dosing = | ||
| effects = | | effects = | ||
| pk_absorption = | | pk_absorption = | ||
| pk_distribution = | | pk_distribution = | ||
| pk_metabolism = | | pk_metabolism = | ||
| pk_elimination = | | pk_elimination = | ||
| pharmacodynamics = | | pharmacodynamics = | ||
| interactions = | | interactions = | ||
| pregnancy_details = | | pregnancy_details = | ||
| monitoring = | | monitoring = | ||
| counseling = | | counseling = | ||
| anecdotes = | | anecdotes = | ||
| seealso = | | seealso = | ||
| references = | | references = | ||
}} | }} | ||
</pre> | </pre> | ||
Notes: | Notes: | ||
* ''The'' <code>indications</code> ''parameter feeds the "Problems" H2 section on the rendered page. Content typically consists of'' <code><problem ref="..."/></code> ''tags (formerly'' <code><indication ref="..."/></code>'').'' | |||
* ''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.'' | * ''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.'' | ||
* ''The'' <code>formula</code> ''parameter is deprecated and no longer rendered. It can be removed from existing pages.'' | * ''The'' <code>formula</code> ''parameter is deprecated and no longer rendered. It can be removed from existing pages.'' | ||
Revision as of 00:10, 17 May 2026
This template defines the table "Medicines". View table.
Usage
Medicine entry template. Fill in fields below; empty fields are auto-omitted.
The indications 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 the Pharmacopedia:Problems repository design note).
{{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
indicationsparameter feeds the "Problems" H2 section on the rendered page. Content typically consists of<problem ref="..."/>tags (formerly<indication ref="..."/>). - 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.