Template:Drug: Difference between revisions

From WikiMSK

(Created page with "{{infobox|title={{{title|{{PAGENAME}}|}}}|id=drug| {{#if:{{{image|}}} |{{Row/image | {{{image}}} }} }} {{#if:{{{name|}}}...")
 
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 2: Line 2:


{{#if:{{{image|}}}    |{{Row/image    | {{{image}}}              }}                                  }}
{{#if:{{{image|}}}    |{{Row/image    | {{{image}}}              }}                                  }}
{{#if:{{{caption|}}}    |{{Row/caption    | {{{caption}}}              }}                                  }}
{{#if:{{{name|}}}      |{{row/kv| Name| {{{name}}}              }} {{info/name}}                    }}
{{#if:{{{name|}}}      |{{row/kv| Name| {{{name}}}              }} {{info/name}}                    }}
{{#if:{{{synonym|}}}  |{{row/kv| Synonym| {{{synonym}}}          }} {{info/synonym}}                }}
{{#if:{{{other names|}}}  |{{row/kv| Other names| {{{other names}}}          }} {{info/other names}}                }}
{{#if:{{{formulations|}}}  |{{row/kv| Formulations| {{{formulations}}}          }} {{info/formulations}}                }}
{{#if:{{{class|}}}  |{{row/kv| Drug class| {{{class}}}        }} {{info/class}}                }}
{{#if:{{{dose|}}}  |{{row/kv| Daily dose| {{{dose}}}          }} {{info/dose}}                }}
{{#if:{{{dose|}}}  |{{row/kv| Daily dose| {{{dose}}}          }} {{info/dose}}                }}
{{#if:{{{maxdose|}}}  |{{row/kv| Maximum dose| {{{maxdose}}}          }} {{info/maxdose}}                }}
{{#if:{{{onset|}}}  |{{row/kv| Onset of action | {{{onset}}}          }} {{info/onset}}                }}
{{#if:{{{onset|}}}  |{{row/kv| Onset of action | {{{onset}}}          }} {{info/onset}}                }}
{{#if:{{{elimination|}}}  |{{row/kv| Elimination| {{{elimination}}}        }} {{info/elimination}}                }}
{{#if:{{{duration|}}}  |{{row/kv| Duration of action | {{{duration}}}          }} {{info/duration}}                }}
{{#if:{{{metabolism|}}}  |{{row/kv| Metabolism| {{{metabolism}}}        }} {{info/metabolism}}                }}
{{#if:{{{half life|}}}  |{{row/kv| Half life| {{{half life}}}        }} {{info/half life}}                }}
{{#if:{{{indications|}}}  |{{row/kv| Indication| {{{indications}}}        }} {{info/indications}}                }}
{{#if:{{{indications|}}}  |{{row/kv| Indication| {{{indications}}}        }} {{info/indications}}                }}
{{#if:{{{contraindications|}}}  |{{row/kv| Contraindications| {{{contraindications}}}        }} {{info/contraindications}}                }}
{{#if:{{{contraindications|}}}  |{{row/kv| Contraindications| {{{contraindications}}}        }} {{info/contraindications}}                }}
Line 13: Line 19:
{{#if:{{{chemical structure|}}}  |{{row/kv| Chemical structure| {{{chemical structure}}}        }} {{info/chemical structure}}                }}
{{#if:{{{chemical structure|}}}  |{{row/kv| Chemical structure| {{{chemical structure}}}        }} {{info/chemical structure}}                }}
{{#if:{{{drugbank ID|}}}  |{{row/kv| DrugBank ID| {{{drugbank ID}}}        }} {{info/drugbank ID}}                }}
{{#if:{{{drugbank ID|}}}  |{{row/kv| DrugBank ID| {{{drugbank ID}}}        }} {{info/drugbank ID}}                }}
{{#if:{{{NZF ID|}}}  |{{row/kv| NZ Formulary ID| {{{NZF ID}}}        }} {{info/NZF ID}}                }}
}}
}}
<noinclude>
<noinclude>


The ''{{t|muscle}}'' infobox template allows you to describe muscular structures.
The ''{{t|drug}}'' infobox template allows you to describe drugs.


=== Template ===
=== Template ===
<pre class=mw-code>
<pre class=mw-code>
{{muscle
{{drug
|image=
|image=
|caption=
|name=
|name=
|synonym=
|other names=
|formulations=
|class=
|dose=
|dose=
|maxdose=
|onset=
|onset=
|elimination=
|duration=
|metabolism=
|half life=
|indications=
|indications=
|antagonists=
|antagonists=
Line 34: Line 47:
|chemical structure=
|chemical structure=
|drugbank ID=
|drugbank ID=
|NZF ID=
}}
}}
</pre>
</pre>
Line 44: Line 58:
{
{
"params": {
"params": {
"title": {},
"image": {},
"image": {},
"name": {},
"other names": {},
"synonym": {},
"class": {
"label": "Drug Class"
},
"dose": {
"dose": {
"label": "Daily dose",
"label": "Daily dose",
Line 55: Line 70:
"label": "Onset of action"
"label": "Onset of action"
},
},
"elimination": {},
"duration": {
"label": "Duration of action"
},
"metabolism": {},
"half life": {},
"indications": {},
"indications": {},
"indication": {},
"indication": {},
Line 66: Line 85:
"description": "drugbank.com URL",
"description": "drugbank.com URL",
"type": "url"
"type": "url"
}
},
"NZF ID": {
"label": "NZ Formulary ID",
"description": "NZ Formulary URL",
"example": "https://nzf.org.nz/nzf_2439"
},
"maxdose": {
"label": "Maximum Dose"
},
"formulations": {
"label": "Formulations"
},
"caption": {}
},
},
"description": "Adds a drug infobox"
"description": "Adds a drug infobox",
"paramOrder": [
"image",
"caption",
"other names",
"formulations",
"class",
"dose",
"maxdose",
"onset",
"duration",
"metabolism",
"half life",
"indications",
"indication",
"contraindications",
"side effects",
"interactions",
"chemical structure",
"drugbank ID",
"NZF ID"
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 20:49, 19 July 2021

Drug


The {{drug}} infobox template allows you to describe drugs.

Template

{{drug
|image=
|caption=
|name=
|other names=
|formulations=
|class=
|dose=
|maxdose=
|onset=
|duration=
|metabolism=
|half life=
|indications=
|antagonists=
|contraindications=
|side effects=
|interactions=
|chemical structure=
|drugbank ID=
|NZF ID=
}}

Articles using Template

Adds a drug infobox

Template parameters

ParameterDescriptionTypeStatus
imageimage

no description

Unknownoptional
captioncaption

no description

Unknownoptional
other namesother names

no description

Unknownoptional
Formulationsformulations

no description

Unknownoptional
Drug Classclass

no description

Unknownoptional
Daily dosedose

no description

Example
500mg twice daily
Unknownoptional
Maximum Dosemaxdose

no description

Unknownoptional
Onset of actiononset

no description

Unknownoptional
Duration of actionduration

no description

Unknownoptional
metabolismmetabolism

no description

Unknownoptional
half lifehalf life

no description

Unknownoptional
indicationsindications

no description

Unknownoptional
indicationindication

no description

Unknownoptional
contraindicationscontraindications

no description

Unknownoptional
side effectsside effects

no description

Unknownoptional
interactionsinteractions

no description

Unknownoptional
chemical structurechemical structure

no description

Unknownoptional
DrugBank URLdrugbank ID

drugbank.com URL

URLoptional
NZ Formulary IDNZF ID

NZ Formulary URL

Example
https://nzf.org.nz/nzf_2439
Unknownoptional