Template:PlantMedTemplate: Difference between revisions
Template page
More actions
MDElliottMD (talk | contribs) Create Template:PlantMedTemplate: sibling of MedTemplate, structured for whole-plant entities. Plant-identity fields (binomial, family, common_names, native_range, cultivars, parts_used, cultivation) + plant-specific narrative H2 sections (Botany, Traditional uses, Preparations, Active constituents, Prohibition history). Per-preparation PK lives in Preparations section rather than infobox. interactionsummary field per the pharmacogenomics design. Same H2 anchor convention as MedTemplate. |
parser-claude: move interactionsummary inside the Interactions H2 section; was rendering at top of page body. Bug routed via home-claude 2026-05-26 (Lavender, Lemon balm). |
||
| (One intermediate revision by one other user not shown) | |||
| Line 18: | Line 18: | ||
| legal = short status | | legal = short status | ||
| interactionsummary = pharmacogenomic + DDI summary chip | | interactionsummary = pharmacogenomic + DDI summary chip | ||
| intro = paragraph | | intro = bold-lead history-first paragraph; reaches a person or place inside it | ||
| traditional_uses = full History and traditional use H2 content (THE SPINE; 40-55% of page; prohibition history folds in here as the closing arc, no separate section) | |||
| traditional_uses = | | traditional_geography = optional geography subsection (woven into traditional_uses preferred) | ||
| traditional_geography = | | botany = Botany and identification H2 content | ||
| | | constituents = full Active constituents H2 content | ||
| | | preparations = full Preparations H2 content (cultural-historical level only; NO how-to) | ||
| indications = problems treated (legacy parameter name; renders under Problems H2) | | indications = problems treated (legacy parameter name; renders under Problems H2) | ||
| dosing = titration / dosing | | dosing = titration / dosing | ||
| effects = effects content | | effects = effects content | ||
| pharmacokinetics = PK content | | pharmacokinetics = PK content (scoped-minimal on plant pages; PGx pass deepens later) | ||
| pharmacodynamics = PD content | | pharmacodynamics = PD content (scoped-minimal on plant pages; PGx pass deepens later) | ||
| interactions = usually <pharmaInteractions/> | | interactions = usually <pharmaInteractions/> | ||
| pregnancy_details = expanded | | pregnancy_details = expanded | ||
| monitoring = if applicable | | monitoring = if applicable | ||
| counseling = patient counseling | | counseling = patient counseling | ||
| anecdotes = anecdote content | | anecdotes = anecdote content (Pendell quotes spread through traditional_uses ideally; one can sit here if it's about the experience) | ||
| seealso = list of related pages | | seealso = list of related pages | ||
| references = usually <references/> | | references = usually <references/> | ||
| Line 40: | Line 39: | ||
</pre> | </pre> | ||
Sibling of [[Template:MedTemplate]], structured for whole-plant entities (botanical medicines) rather than single molecules. Use for Cannabis, Opium poppy, Peyote, | Sibling of [[Template:MedTemplate]], structured for whole-plant entities (botanical medicines) rather than single molecules. Use for Cannabis, Opium poppy, Coca, Peyote, San Pedro cactus, Psilocybin mushrooms, Salvia divinorum, Iboga, Khat, Datura, Mandrake, Henbane, Kava, Betel, Nutmeg, Tobacco, Coffee, Tea, Yerba mate, Guarana, etc. (sub-spec owed for preparations and animal sources like Ayahuasca and Bufo alvarius). | ||
Section order is canonical per the plant-medicine-page spec (set 2026-05-18 by web-claude editorial directive): History and traditional use BEFORE Botany, prohibition folded INTO history as its closing arc rather than a separate section. | |||
The indications parameter name is preserved for back-compat with MedTemplate even though the rendered heading is Problems. | The indications parameter name is preserved for back-compat with MedTemplate even though the rendered heading is Problems. | ||
| Line 70: | Line 64: | ||
{{#if:{{{constituents_summary|}}}|<tr><th style="text-align:left;">Active constituents</th><td>{{{constituents_summary}}}</td></tr>}} | {{#if:{{{constituents_summary|}}}|<tr><th style="text-align:left;">Active constituents</th><td>{{{constituents_summary}}}</td></tr>}} | ||
{{#if:{{{mechanism|}}}|<tr><th style="text-align:left;">Mechanism (summary)</th><td>{{{mechanism}}}</td></tr>}} | {{#if:{{{mechanism|}}}|<tr><th style="text-align:left;">Mechanism (summary)</th><td>{{{mechanism}}}</td></tr>}} | ||
</table> | </table>{{#if:{{{intro|}}}| | ||
{{{intro}}} | {{{intro}}} | ||
}}{{#if:{{{ | }}{{#if:{{{traditional_uses|}}}|<h2 id="History">History and traditional use</h2> | ||
{{{traditional_uses}}} | {{{traditional_uses}}} | ||
}}{{#if:{{{traditional_geography|}}}|<h3 id="Geography">Geography and peoples</h3> | }}{{#if:{{{traditional_geography|}}}|<h3 id="Geography">Geography and peoples</h3> | ||
{{{traditional_geography}}} | {{{traditional_geography}}} | ||
}}{{#if:{{{botany|}}}|<h2 id="Botany">Botany and identification</h2> | |||
{{{botany}}} | |||
}}{{#if:{{{constituents|}}}|<h2 id="Constituents">Active constituents</h2> | |||
{{{constituents}}} | |||
}}{{#if:{{{preparations|}}}|<h2 id="Preparations">Preparations</h2> | }}{{#if:{{{preparations|}}}|<h2 id="Preparations">Preparations</h2> | ||
{{{preparations}}} | {{{preparations}}} | ||
}}{{#if:{{{ | }}{{#if:{{{pharmacokinetics|}}}|<h2 id="Pharmacokinetics">Pharmacokinetics</h2> | ||
{{{ | {{{pharmacokinetics}}} | ||
}}{{#if:{{{pharmacodynamics|}}}|<h2 id="Pharmacodynamics">Pharmacodynamics</h2> | |||
{{{pharmacodynamics}}} | |||
}}<h2 id="Experience">Experience</h2> | }}<h2 id="Experience">Experience</h2> | ||
<pharmaExperience/> | <pharmaExperience/> | ||
| Line 97: | Line 94: | ||
<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> | ||
{{#if:{{{ | {{#if:{{{interactions|}}}{{{interactionsummary|}}}|<h2 id="Interactions">Interactions</h2> | ||
{{{ | {{#if:{{{interactionsummary|}}}|<div class="pcp-pgx-summary">{{{interactionsummary}}}</div> | ||
}}{{#if:{{{interactions|}}}|{{{interactions}}} | |||
}}}}{{#if:{{{pregnancy_details|}}}|<h2 id="Pregnancy">Pregnancy and lactation</h2> | |||
{{{ | |||
}}{{#if:{{{ | |||
{{{ | |||
}}{{#if:{{{pregnancy_details|}}}|<h2 id="Pregnancy">Pregnancy and lactation</h2> | |||
{{{pregnancy_details}}} | {{{pregnancy_details}}} | ||
}}{{#if:{{{monitoring|}}}|<h2 id="Monitoring">Monitoring</h2> | }}{{#if:{{{monitoring|}}}|<h2 id="Monitoring">Monitoring</h2> | ||