Template:Infobox drug: Difference between revisions

From WikiMD's Wellness Encyclopedia

No edit summary
Blanked the page
Tag: Blanking
Line 1: Line 1:
<includeonly>
{| class="infobox" style="width: 22em; font-size: 90%;"
|+ '''{{{name|{{PAGENAME}}}}}'''
|-
! colspan="2" style="background: #EFEFEF; text-align: center;" | Drug Information
|-
| '''Image'''
| {{#if: {{{image|}}} | [[File:{{{image}}}|{{{width|250px}}}|alt={{{alt|}}}]] | <!-- No image provided --> }}
|-
{{#if: {{{caption|}}} |
| '''Caption'''
| {{{caption|}}}
|- }}
{{#if: {{{synonyms|}}} |
| '''Synonyms'''
| {{{synonyms|}}}
|- }}
! colspan="2" style="background: #EFEFEF; text-align: center;" | Identifiers
{{#if: {{{CAS_number|}}} |
| '''CAS Number'''
| {{{CAS_number|}}}
|- }}
{{#if: {{{ATC_prefix|}}}{{{ATC_suffix|}}} |
| '''ATC Code'''
| {{{ATC_prefix|}}} {{{ATC_suffix|}}}
|- }}
{{#if: {{{PubChem|}}} |
| '''PubChem'''
| {{{PubChem|}}}
|- }}
{{#if: {{{DrugBank|}}} |
| '''DrugBank'''
| {{{DrugBank|}}}
|- }}
{{#if: {{{ChemSpiderID|}}} |
| '''ChemSpider ID'''
| {{{ChemSpiderID|}}}
|- }}
{{#if: {{{UNII|}}} |
| '''UNII'''
| {{{UNII|}}}
|- }}
{{#if: {{{KEGG|}}} |
| '''KEGG'''
| {{{KEGG|}}}
|- }}
{{#if: {{{ChEBI|}}} |
| '''ChEBI'''
| {{{ChEBI|}}}
|- }}
{{#if: {{{ChEMBL|}}} |
| '''ChEMBL'''
| {{{ChEMBL|}}}
|- }}
{{#if: {{{IUPAC_name|}}} |
| '''IUPAC Name'''
| {{{IUPAC_name|}}}
|- }}
! colspan="2" style="background: #EFEFEF; text-align: center;" | Chemical Data
{{#if: {{{C|}}} |
| '''C'''
| {{{C|}}}
|- }}
{{#if: {{{H|}}} |
| '''H'''
| {{{H|}}}
|- }}
{{#if: {{{N|}}} |
| '''N'''
| {{{N|}}}
|- }}
{{#if: {{{O|}}} |
| '''O'''
| {{{O|}}}
|- }}
{{#if: {{{molecular_weight|}}} |
| '''Molecular Weight'''
| {{{molecular_weight|}}}
|- }}
|}
</includeonly>


<noinclude>
== 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 ==
<syntaxhighlight lang="mediawiki">
{{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
}}
</syntaxhighlight>
== 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.
[[Category:Infobox templates]]
[[Category:Drug templates]]
</noinclude>

Revision as of 13:23, 23 December 2024