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
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox" style="width: 22em; font-size: 90%;"
{| class="infobox" style="width: 22em; font-size: 90%;"
|+ '''{{{name|{{PAGENAME}}}}}'''
! colspan="2" style="background:#ddd; text-align: center;" | {{{drug_name|{{PAGENAME}}}}}
|-
|-
! colspan="2" style="background: #EFEFEF; text-align: center;" | Drug Information
| colspan="2" style="text-align:center;" | [[File:{{{image|}}}|frameless|220px|alt={{{alt|}}}|{{{caption|}}}]]
|-
|-
| '''Image'''
! [[International Nonproprietary Name|INN]]
| {{{image|<!-- No image provided -->}}}
| {{{INN|}}}
|-
|-
| '''Width'''
! [[Drug class]]
| {{{width|}}}
| {{{class|}}}
|-
|-
| '''Caption'''
! [[Routes of administration]]
| {{{caption|}}}
| {{{routes_of_administration|}}}
|-
|-
| '''Synonyms'''
! [[Pregnancy category]]
| {{{synonyms|}}}
| {{{pregnancy_category|}}}
|-
|-
| colspan="2" style="background: #EFEFEF; text-align: center;" | Identifiers
! [[Bioavailability]]
| {{{bioavailability|}}}
|-
|-
| '''CAS Number'''
! [[Metabolism]]
| {{{CAS_number|}}}
| {{{metabolism|}}}
|-
! [[Biological half-life|Elimination half-life]]
| {{{elimination_half-life|}}}
|-
|-
| '''ATC Prefix'''
! [[Excretion]]
| {{{ATC_prefix|}}}
| {{{excretion|}}}
|-
|-
| '''ATC Suffix'''
! [[Legal status]]
| {{{ATC_suffix|}}}
| {{{legal_status|}}}
|-
|-
| '''PubChem'''
! [[CAS Registry Number|CAS Number]]
| {{{CAS_number|}}}
|-
! [[PubChem]]
| {{{PubChem|}}}
| {{{PubChem|}}}
|-
|-
| '''DrugBank'''
! [[DrugBank]]
| {{{DrugBank|}}}
| {{{DrugBank|}}}
|-
|-
| '''ChemSpider ID'''
! [[ChemSpider]]
| {{{ChemSpiderID|}}}
| {{{ChemSpiderID|}}}
|-
|-
| '''UNII'''
! [[KEGG]]
| {{{UNII|}}}
|-
| '''KEGG'''
| {{{KEGG|}}}
| {{{KEGG|}}}
|-
| '''ChEBI'''
| {{{ChEBI|}}}
|-
| '''ChEMBL'''
| {{{ChEMBL|}}}
|-
| '''IUPAC Name'''
| {{{IUPAC_name|}}}
|-
| colspan="2" style="background: #EFEFEF; text-align: center;" | Chemical Data
|-
| '''C'''
| {{{C|}}}
|-
| '''H'''
| {{{H|}}}
|-
| '''N'''
| {{{N|}}}
|-
| '''O'''
| {{{O|}}}
|-
| '''Molecular Weight'''
| {{{molecular_weight|}}}
|}
|}
</includeonly><noinclude>
</includeonly><noinclude>
== Usage ==
== Documentation ==
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 provides a basic infobox for drugs. Include relevant parameters for display.
 
=== Parameters ===
* '''drug_name''' - Name of the drug.
* '''image''' - Image file name.
* '''caption''' - Caption for the image.
* '''INN''' - International Nonproprietary Name.
* '''class''' - Drug class.
* '''routes_of_administration''' - Methods of administration.
* '''pregnancy_category''' - Pregnancy safety category.
* '''bioavailability''' - Bioavailability of the drug.
* '''metabolism''' - Metabolism details.
* '''elimination_half-life''' - Half-life of the drug.
* '''excretion''' - Excretion pathways.
* '''legal_status''' - Legal status.
* '''CAS_number''' - CAS Registry Number.
* '''PubChem''' - PubChem Compound ID.
* '''DrugBank''' - DrugBank ID.
* '''ChemSpiderID''' - ChemSpider ID.
* '''KEGG''' - KEGG identifier.


== Example ==
=== Example Usage ===
<syntaxhighlight lang="mediawiki">
<code>
{{Infobox drug
{{Infobox drug
| name = Glypromate
| drug_name = Paracetamol
| image = <!-- Image of Glypromate structure -->
| image = Paracetamol-3D.png
| width = 250
| caption = Structure of paracetamol
| caption =  
| INN = Paracetamol
| synonyms = Glycyl-L-prolyl-L-glutamic acid
| class = Analgesic
| CAS_number = 123456-78-9
| routes_of_administration = Oral
| ATC_prefix =  
| pregnancy_category = A
| ATC_suffix =  
| bioavailability = 90%
| PubChem = 123456
| metabolism = Liver
| DrugBank = DB12345
| elimination_half-life = 1-4 hours
| ChemSpiderID = 123456
| excretion = Renal
| UNII =  
| legal_status = OTC
| KEGG =  
| CAS_number = 103-90-2
| ChEBI =
| PubChem = 1983
| ChEMBL =  
| DrugBank = DB00316
| IUPAC_name = (2S)-2-[[2-[[2-aminoacetyl]amino]propanoyl]amino]pentanedioic acid
| ChemSpiderID = 1915
| C=10
| KEGG = D00114
| H=17
| N=3
| O=6
| molecular_weight = 275.26 g/mol
}}
}}
</syntaxhighlight>
</code>
 
== Parameters ==
* `name` – The name of the drug or compound.
* `image` – Path to an image file.
* `width` – Optional width of the image.
* `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>
</noinclude>

Latest revision as of 19:27, 29 April 2025

Documentation[edit]

This template provides a basic infobox for drugs. Include relevant parameters for display.

Parameters[edit]

  • drug_name - Name of the drug.
  • image - Image file name.
  • caption - Caption for the image.
  • INN - International Nonproprietary Name.
  • class - Drug class.
  • routes_of_administration - Methods of administration.
  • pregnancy_category - Pregnancy safety category.
  • bioavailability - Bioavailability of the drug.
  • metabolism - Metabolism details.
  • elimination_half-life - Half-life of the drug.
  • excretion - Excretion pathways.
  • legal_status - Legal status.
  • CAS_number - CAS Registry Number.
  • PubChem - PubChem Compound ID.
  • DrugBank - DrugBank ID.
  • ChemSpiderID - ChemSpider ID.
  • KEGG - KEGG identifier.

Example Usage[edit]

Paracetamol
INN Paracetamol
Drug class Analgesic
Routes of administration Oral
Pregnancy category A
Bioavailability 90%
Metabolism Liver
Elimination half-life 1-4 hours
Excretion Renal
Legal status OTC
CAS Number 103-90-2
PubChem 1983
DrugBank DB00316
ChemSpider 1915
KEGG D00114