Template:Infobox drug: Difference between revisions
From WikiMD's Wellness Encyclopedia
Replaced content with "<includeonly> {| class="infobox" style="width: 22em; font-size: 90%;" |+ '''{{{name|{{PAGENAME}}}}}''' |- ! colspan="2" style="background: #EFEFEF; text-align: center;" |..." Tag: Replaced |
No edit summary |
||
| Line 6: | Line 6: | ||
|- | |- | ||
| '''Image''' | | '''Image''' | ||
| {{{image| | | {{#if: {{{image|}}} | [[File:{{{image}}}|{{{width|250px}}}|alt={{{alt|}}}]] | <!-- No image provided --> }} | ||
| | |||
| | |||
| {{{ | |||
|- | |- | ||
{{#if: {{{caption|}}} | | |||
| '''Caption''' | | '''Caption''' | ||
| {{{caption|}}} | | {{{caption|}}} | ||
|- | |- }} | ||
{{#if: {{{synonyms|}}} | | |||
| '''Synonyms''' | | '''Synonyms''' | ||
| {{{synonyms|}}} | | {{{synonyms|}}} | ||
|- | |- }} | ||
! colspan="2" style="background: #EFEFEF; text-align: center;" | Identifiers | |||
| | {{#if: {{{CAS_number|}}} | | ||
| '''CAS Number''' | | '''CAS Number''' | ||
| {{{CAS_number|}}} | | {{{CAS_number|}}} | ||
|- | |- }} | ||
| | {{#if: {{{ATC_prefix|}}}{{{ATC_suffix|}}} | | ||
| '''ATC Code''' | |||
| | | {{{ATC_prefix|}}} {{{ATC_suffix|}}} | ||
| '''ATC | |- }} | ||
| {{{ATC_suffix|}}} | {{#if: {{{PubChem|}}} | | ||
|- | |||
| '''PubChem''' | | '''PubChem''' | ||
| {{{PubChem|}}} | | {{{PubChem|}}} | ||
|- | |- }} | ||
{{#if: {{{DrugBank|}}} | | |||
| '''DrugBank''' | | '''DrugBank''' | ||
| {{{DrugBank|}}} | | {{{DrugBank|}}} | ||
|- | |- }} | ||
{{#if: {{{ChemSpiderID|}}} | | |||
| '''ChemSpider ID''' | | '''ChemSpider ID''' | ||
| {{{ChemSpiderID|}}} | | {{{ChemSpiderID|}}} | ||
|- | |- }} | ||
{{#if: {{{UNII|}}} | | |||
| '''UNII''' | | '''UNII''' | ||
| {{{UNII|}}} | | {{{UNII|}}} | ||
|- | |- }} | ||
{{#if: {{{KEGG|}}} | | |||
| '''KEGG''' | | '''KEGG''' | ||
| {{{KEGG|}}} | | {{{KEGG|}}} | ||
|- | |- }} | ||
{{#if: {{{ChEBI|}}} | | |||
| '''ChEBI''' | | '''ChEBI''' | ||
| {{{ChEBI|}}} | | {{{ChEBI|}}} | ||
|- | |- }} | ||
{{#if: {{{ChEMBL|}}} | | |||
| '''ChEMBL''' | | '''ChEMBL''' | ||
| {{{ChEMBL|}}} | | {{{ChEMBL|}}} | ||
|- | |- }} | ||
{{#if: {{{IUPAC_name|}}} | | |||
| '''IUPAC Name''' | | '''IUPAC Name''' | ||
| {{{IUPAC_name|}}} | | {{{IUPAC_name|}}} | ||
|- | |- }} | ||
! colspan="2" style="background: #EFEFEF; text-align: center;" | Chemical Data | |||
| | {{#if: {{{C|}}} | | ||
| '''C''' | | '''C''' | ||
| {{{C|}}} | | {{{C|}}} | ||
|- | |- }} | ||
{{#if: {{{H|}}} | | |||
| '''H''' | | '''H''' | ||
| {{{H|}}} | | {{{H|}}} | ||
|- | |- }} | ||
{{#if: {{{N|}}} | | |||
| '''N''' | | '''N''' | ||
| {{{N|}}} | | {{{N|}}} | ||
|- | |- }} | ||
{{#if: {{{O|}}} | | |||
| '''O''' | | '''O''' | ||
| {{{O|}}} | | {{{O|}}} | ||
|- | |- }} | ||
{{#if: {{{molecular_weight|}}} | | |||
| '''Molecular Weight''' | | '''Molecular Weight''' | ||
| {{{molecular_weight|}}} | | {{{molecular_weight|}}} | ||
|- }} | |||
|} | |} | ||
</includeonly><noinclude> | </includeonly> | ||
<noinclude> | |||
== Usage == | == Usage == | ||
This template is used to provide an infobox for drugs or chemical compounds in articles. Below is an example of how to use the template. | This template is used to provide an infobox for drugs or chemical compounds in articles. Below is an example of how to use the template. | ||
| Line 77: | Line 89: | ||
{{Infobox drug | {{Infobox drug | ||
| name = Glypromate | | name = Glypromate | ||
| image = | | image = Glypromate_structure.jpg | ||
| width = 250 | | width = 250 | ||
| caption = | | caption = Structure of Glypromate | ||
| synonyms = Glycyl-L-prolyl-L-glutamic acid | | synonyms = Glycyl-L-prolyl-L-glutamic acid | ||
| CAS_number = 123456-78-9 | | CAS_number = 123456-78-9 | ||
| ATC_prefix = | | ATC_prefix = N/A | ||
| ATC_suffix = | | ATC_suffix = | ||
| PubChem = 123456 | | PubChem = 123456 | ||
| DrugBank = DB12345 | | DrugBank = DB12345 | ||
| ChemSpiderID = 123456 | | ChemSpiderID = 123456 | ||
| UNII = | | UNII = ABC12345X | ||
| KEGG = | | KEGG = D12345 | ||
| ChEBI = | | ChEBI = 12345 | ||
| ChEMBL = | | ChEMBL = CHEMBL12345 | ||
| IUPAC_name = (2S)-2-[[2-[[2-aminoacetyl]amino]propanoyl]amino]pentanedioic acid | | IUPAC_name = (2S)-2-[[2-[[2-aminoacetyl]amino]propanoyl]amino]pentanedioic acid | ||
| C=10 | | C = 10 | ||
| H=17 | | H = 17 | ||
| N=3 | | N = 3 | ||
| O=6 | | O = 6 | ||
| molecular_weight = 275.26 g/mol | | molecular_weight = 275.26 g/mol | ||
}} | }} | ||
| Line 103: | Line 115: | ||
* `name` – The name of the drug or compound. | * `name` – The name of the drug or compound. | ||
* `image` – Path to an image file. | * `image` – Path to an image file. | ||
* `width` – Optional width of the image. | * `width` – Optional width of the image (default: 250px). | ||
* `caption` – Caption below the image. | * `caption` – Caption below the image. | ||
* `synonyms` – Alternate names of the drug. | * `synonyms` – Alternate names of the drug. | ||
Revision as of 17:16, 18 December 2024
Usage
This template is used to provide an infobox for drugs or chemical compounds in articles. Below is an example of how to use the template.
Example
{{Infobox drug
| name = Glypromate
| image = Glypromate_structure.jpg
| width = 250
| caption = Structure of Glypromate
| synonyms = Glycyl-L-prolyl-L-glutamic acid
| CAS_number = 123456-78-9
| ATC_prefix = N/A
| ATC_suffix =
| PubChem = 123456
| DrugBank = DB12345
| ChemSpiderID = 123456
| UNII = ABC12345X
| KEGG = D12345
| ChEBI = 12345
| ChEMBL = CHEMBL12345
| IUPAC_name = (2S)-2-[[2-[[2-aminoacetyl]amino]propanoyl]amino]pentanedioic acid
| C = 10
| H = 17
| N = 3
| O = 6
| molecular_weight = 275.26 g/mol
}}Parameters
- `name` – The name of the drug or compound.
- `image` – Path to an image file.
- `width` – Optional width of the image (default: 250px).
- `caption` – Caption below the image.
- `synonyms` – Alternate names of the drug.
- `CAS_number` – CAS Registry Number.
- `ATC_prefix`, `ATC_suffix` – ATC classification details.
- `PubChem`, `DrugBank`, `ChemSpiderID`, `UNII`, `KEGG`, `ChEBI`, `ChEMBL` – Identifiers from chemical databases.
- `IUPAC_name` – IUPAC name of the compound.
- `C`, `H`, `N`, `O` – Chemical formula details.
- `molecular_weight` – Molecular weight of the compound.