Template:Drug: Difference between revisions

From WikiMSK

No edit summary
No edit summary
 
(6 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:{{{type|}}}  |{{row/kv| Type| {{{type}}}        }} {{info/type}}                }}
{{#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:{{{duration|}}}  |{{row/kv| Duration of action | {{{duration}}}          }} {{info/duration}}                }}
{{#if:{{{duration|}}}  |{{row/kv| Duration of action | {{{duration}}}          }} {{info/duration}}                }}
Line 16: 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 drugs.
The ''{{t|drug}}'' infobox template allows you to describe drugs.


=== Template ===
=== Template ===
Line 25: Line 29:
{{drug
{{drug
|image=
|image=
|caption=
|name=
|name=
|synonym=
|other names=
|type=
|formulations=
|class=
|dose=
|dose=
|maxdose=
|onset=
|onset=
|duration=
|duration=
Line 40: Line 47:
|chemical structure=
|chemical structure=
|drugbank ID=
|drugbank ID=
|NZF ID=
}}
}}
</pre>
</pre>
Line 51: Line 59:
"params": {
"params": {
"image": {},
"image": {},
"synonym": {},
"other names": {},
"type": {},
"class": {
"label": "Drug Class"
},
"dose": {
"dose": {
"label": "Daily dose",
"label": "Daily dose",
Line 75: 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