Jump to content

Template:MedTemplate: Difference between revisions

From Pharmacopedia
Rename 'Indications' H2 to 'Problems' (Phase 2 of indications-to-problems rebuild); 'indications' template parameter retained for back-compat
Flip '+ Add a problem' link target from SuggestIndication to SuggestProblem (Phase 3 of indications-to-problems rebuild)
Line 47: Line 47:
{{#if:{{{indications|}}}|{{{indications}}}|<p style="opacity:0.7; font-style:italic;">No problems yet — be the first to suggest one.</p>}}
{{#if:{{{indications|}}}|{{{indications}}}|<p style="opacity:0.7; font-style:italic;">No problems yet — be the first to suggest one.</p>}}


<span class="pcp-problem-suggest-wrap">[[Special:SuggestIndication/{{FULLPAGENAME}}|+ Add a problem]]</span><h2 id="Titration">Titration strategies</h2>
<span class="pcp-problem-suggest-wrap">[[Special:SuggestProblem/{{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 107: Line 107:
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).
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 [[Special:Problems]] for the repository and [[Pharmacopedia:Citation needed]] adjacent context).


<pre>
<pre>
Line 148: Line 148:


Notes:
Notes:
* ''The'' <code>indications</code> ''parameter feeds the "Problems" H2 section on the rendered page. Content typically consists of'' <code>&lt;problem ref="..."/&gt;</code> ''tags (formerly'' <code>&lt;indication ref="..."/&gt;</code>'').''
* ''The'' <code>indications</code> ''parameter feeds the "Problems" H2 section on the rendered page. Content typically consists of'' <code>&lt;problem ref="..."/&gt;</code> ''tags (formerly'' <code>&lt;indication ref="..."/&gt;</code>'').'' ''Use'' <code>[[Special:SuggestProblem|SuggestProblem]]</code> ''or the per-page'' <code>+ Add a problem</code> ''link to propose new entries.''
* ''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:30, 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 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             =
| indications       =
| dosing            =
| effects           =
| pk_absorption     =
| pk_distribution   =
| pk_metabolism     =
| pk_elimination    =
| pharmacodynamics  =
| interactions      =
| pregnancy_details =
| monitoring        =
| counseling        =
| anecdotes         =
| seealso           =
| references        =
}}

Notes:

  • The indications parameter feeds the "Problems" H2 section on the rendered page. Content typically consists of <problem ref="..."/> tags (formerly <indication ref="..."/>). Use SuggestProblem or the per-page + Add a problem link to propose new entries.
  • 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.