Jump to content

Template:MedTemplate: Difference between revisions

From Pharmacopedia
MedTemplate: add optional history rendered param (History H2 after intro), per home-claude
Remove em-dashes from empty-field placeholders and doc prose (house no-em-dash rule)
Line 23: Line 23:
<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>
{{#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:SuggestProblem/{{FULLPAGENAME}}|+ Add a problem]]</span><div class="med-sec-head" id="Titration"><h2 class="sec-title">Titration strategies</h2></div>
<span class="pcp-problem-suggest-wrap">[[Special:SuggestProblem/{{FULLPAGENAME}}|+ Add a problem]]</span><div class="med-sec-head" id="Titration"><h2 class="sec-title">Titration strategies</h2></div>
{{#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>}}


<span class="pcp-titration-suggest-wrap">[[Special:SuggestTitration/{{FULLPAGENAME}}|+ Add a titration strategy]]</span>
<span class="pcp-titration-suggest-wrap">[[Special:SuggestTitration/{{FULLPAGENAME}}|+ Add a titration strategy]]</span>
Line 33: Line 33:
{{#if:{{{effects|}}}{{{adverse|}}}|{{{effects|}}}{{#if:{{{adverse|}}}|
{{#if:{{{effects|}}}{{{adverse|}}}|{{{effects|}}}{{#if:{{{adverse|}}}|


{{{adverse}}}}}|<p style="opacity:0.7; font-style:italic;">No effects listed yet — be the first to suggest one.</p>}}
{{{adverse}}}}}|<p style="opacity:0.7; font-style:italic;">No effects listed yet. Be the first to suggest one.</p>}}


<span class="pcp-effect-suggest-wrap">[[Special:SuggestEffect/{{FULLPAGENAME}}|+ Add an effect]]</span>
<span class="pcp-effect-suggest-wrap">[[Special:SuggestEffect/{{FULLPAGENAME}}|+ Add an effect]]</span>
Line 53: Line 53:
{{{monitoring}}}}}{{#if:{{{counseling|}}}|<div class="med-sec-head" id="Counseling"><h2 class="sec-title">Patient counseling</h2></div>
{{{monitoring}}}}}{{#if:{{{counseling|}}}|<div class="med-sec-head" id="Counseling"><h2 class="sec-title">Patient counseling</h2></div>
{{{counseling}}}}}<div class="med-sec-head" id="Anecdote"><h2 class="sec-title">Relevant anecdote</h2></div>
{{{counseling}}}}}<div class="med-sec-head" id="Anecdote"><h2 class="sec-title">Relevant anecdote</h2></div>
{{#if:{{{anecdotes|}}}|{{{anecdotes}}}|<p style="opacity:0.7; font-style:italic;">No anecdotes yet — share a relevant one.</p>}}
{{#if:{{{anecdotes|}}}|{{{anecdotes}}}|<p style="opacity:0.7; font-style:italic;">No anecdotes yet. Share a relevant one.</p>}}


<span class="pcp-anecdote-suggest-wrap">[[Special:SuggestAnecdote/{{FULLPAGENAME}}|+ Add an anecdote]]</span>
<span class="pcp-anecdote-suggest-wrap">[[Special:SuggestAnecdote/{{FULLPAGENAME}}|+ Add an anecdote]]</span>
Line 130: Line 130:
Notes:
Notes:
* ''The'' <code>problems</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;problem 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>problems</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;problem 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.''
* ''The single'' <code>pharmacokinetics</code> ''parameter is deprecated; new pages should use'' <code>pk_absorption</code>'','' <code>pk_distribution</code>'','' <code>pk_metabolism</code>'', and'' <code>pk_elimination</code>''.''
* ''The single'' <code>pharmacokinetics</code> ''parameter is deprecated; new pages should use'' <code>pk_absorption</code>'','' <code>pk_distribution</code>'','' <code>pk_metabolism</code>'', and'' <code>pk_elimination</code>''.''


This template also populates the '''Medicines''' Cargo table — see [[Special:CargoTables/Medicines]].
This template also populates the '''Medicines''' Cargo table. See [[Special:CargoTables/Medicines]].


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 06:27, 22 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 problems parameter feeds the "Problems" H2 section on the rendered page. Content typically consists of <problem ref="..."/> tags (formerly <problem 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.