Jump to content

Template:MedInfo: Difference between revisions

From Pharmacopedia
No edit summary
Terminology: medicine → med (shorter form per user preference)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="float:right; clear:right; max-width:26em; margin:0 0 1em 1em; font-size:92%;"
<includeonly>{| class="wikitable" style="float:right; clear:right; max-width:26em; margin:0 0 1em 1em; font-size:92%;"
|+ style="font-size:115%;" | '''{{{PAGENAME}}}'''
|+ style="font-size:115%;" |'{{{PAGENAME}}}
! colspan="2" style="background:#eef;" | "Medication Information"
! colspan="2" style="background:#eef;" | "Med Information"
|-
|-
! style="width:9em; text-align:left;" | Generic name(s)
! style="width:9em; text-align:left;" | Generic name(s)
Line 41: Line 41:
<templatedata>
<templatedata>
{
{
   "description": "Infobox + sections for a medication entry. Short factual fields appear in a right-aligned infobox; longer prose fields render as full-width sections below.",
   "description": "Infobox + sections for a med entry. Short factual fields appear in a right-aligned infobox; longer prose fields render as full-width sections below.",
   "params": {
   "params": {
     "generic":  { "label": "Generic name(s)",  "description": "Comma-separated if more than one. Defaults to the page name.", "type": "string" },
     "generic":  { "label": "Generic name(s)",  "description": "Comma-separated if more than one. Defaults to the page name.", "type": "string" },
     "brand":    { "label": "Brand name(s)",    "description": "Comma-separated.", "type": "string" },
     "brand":    { "label": "Brand name(s)",    "description": "Comma-separated.", "type": "string" },
     "class":    { "label": "Classification(s)","description": "Drug class(es), e.g. SSRI, NSAID.", "type": "string" },
     "class":    { "label": "Classification(s)","description": "Med class(es), e.g. SSRI, NSAID.", "type": "string" },
     "uses":      { "label": "Common uses",      "type": "string" },
     "uses":      { "label": "Common uses",      "type": "string" },
     "effects":  { "label": "Effects",          "description": "Therapeutic and side effects.", "type": "string" },
     "effects":  { "label": "Effects",          "description": "Therapeutic and side effects.", "type": "string" },

Latest revision as of 02:42, 16 May 2026

Usage

{{MedInfo
| generic   = 
| brand     = 
| class     = 
| uses      = 
| effects   = 
| titration = 
| anecdotes = 
}}

Infobox + sections for a med entry. Short factual fields appear in a right-aligned infobox; longer prose fields render as full-width sections below.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Generic name(s)generic

Comma-separated if more than one. Defaults to the page name.

Stringoptional
Brand name(s)brand

Comma-separated.

Stringoptional
Classification(s)class

Med class(es), e.g. SSRI, NSAID.

Stringoptional
Common usesuses

no description

Stringoptional
Effectseffects

Therapeutic and side effects.

Stringoptional
Titration strategiestitration

Wikitext; renders as a full-width section.

Contentoptional
Personal anecdotesanecdotes

Wikitext; renders as a full-width section. Auto-includes a 'not medical advice' disclaimer.

Contentoptional