Template:Drug: Difference between revisions
From WikiMSK
No edit summary |
No edit summary |
||
(3 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:{{{other names|}}} |{{row/kv| Other names| {{{other names}}} }} {{info/other names}} }} | {{#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:{{{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|}}} | {{#if:{{{NZF ID|}}} |{{row/kv| NZ Formulary ID| {{{NZF ID}}} }} {{info/NZF ID}} }} | ||
}} | }} | ||
<noinclude> | <noinclude> | ||
Line 26: | Line 29: | ||
{{drug | {{drug | ||
|image= | |image= | ||
|caption= | |||
|name= | |name= | ||
|other names= | |other names= | ||
|formulations= | |||
|class= | |class= | ||
|dose= | |dose= | ||
|maxdose= | |||
|onset= | |onset= | ||
|duration= | |duration= | ||
Line 41: | Line 47: | ||
|chemical structure= | |chemical structure= | ||
|drugbank ID= | |drugbank ID= | ||
|NZF ID | |NZF ID= | ||
}} | }} | ||
</pre> | </pre> | ||
Line 54: | Line 60: | ||
"image": {}, | "image": {}, | ||
"other names": {}, | "other names": {}, | ||
"class": {}, | "class": { | ||
"label": "Drug Class" | |||
}, | |||
"dose": { | "dose": { | ||
"label": "Daily dose", | "label": "Daily dose", | ||
Line 82: | Line 90: | ||
"description": "NZ Formulary URL", | "description": "NZ Formulary URL", | ||
"example": "https://nzf.org.nz/nzf_2439" | "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
- Paracetamol (transclusion) (← links)
- Lidocaine (transclusion) (← links)
- Carbamazepine (transclusion) (← links)
Adds a drug infobox
Parameter | Description | Type | Status | |
---|---|---|---|---|
image | image | no description | Unknown | optional |
caption | caption | no description | Unknown | optional |
other names | other names | no description | Unknown | optional |
Formulations | formulations | no description | Unknown | optional |
Drug Class | class | no description | Unknown | optional |
Daily dose | dose | no description
| Unknown | optional |
Maximum Dose | maxdose | no description | Unknown | optional |
Onset of action | onset | no description | Unknown | optional |
Duration of action | duration | no description | Unknown | optional |
metabolism | metabolism | no description | Unknown | optional |
half life | half life | no description | Unknown | optional |
indications | indications | no description | Unknown | optional |
indication | indication | no description | Unknown | optional |
contraindications | contraindications | no description | Unknown | optional |
side effects | side effects | no description | Unknown | optional |
interactions | interactions | no description | Unknown | optional |
chemical structure | chemical structure | no description | Unknown | optional |
DrugBank URL | drugbank ID | drugbank.com URL | URL | optional |
NZ Formulary ID | NZF ID | NZ Formulary URL
| Unknown | optional |