Template:Infobox drug/doc: Difference between revisions

no edit summary
m (1 revision imported: Wikipedia article on Nicotine templates needed)
imported>DePiep
No edit summary
 
Line 1: Line 1:
{{bots|deny=CheMoBot}}
{{bots|deny=CheMoBot}}
{{Documentation subpage}}
{{Documentation subpage}}
{{high-use|7200}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{High-use|demo={{ROOTPAGENAME}}}}
{{Template shortcut|Drugbox}}
{{Template shortcut|Drugbox}}
{{Tracks Wikidata|P628|P2566|cat=E number from Wikidata|section=Input from Wikidata}}
{{Tracks Wikidata|P628|P2566|cat=E number from Wikidata|section=Input from Wikidata}}
Line 7: Line 8:


'''{{tl|Infobox drug}}''' or {{tlf|Drugbox}} is the infobox for drugs, both medical and recreational. It can be used for single chemicals (most common), and for [[#Combination products]], [[#Monoclonal antibody drugs]] and [[#Vaccines]].
'''{{tl|Infobox drug}}''' or {{tlf|Drugbox}} is the infobox for drugs, both medical and recreational. It can be used for single chemicals (most common), and for [[#Combination products]], [[#Monoclonal antibody drugs]] and [[#Vaccines]].
 
__TOC__
== Type of drug ==
== Type of drug ==
=== Single chemical {{nobold|1=(type=)}}{{anchor|1=Single chemical|2=Single chemicals}}===
=== Single chemical {{nobold|1=(type=)}}{{anchor|1=Single chemical|2=Single chemicals}}===
{{anchor|1=Single chemical}}
{{anchor|1=Single chemical}}
Drugs that are a simple chemical compound (about 90% of the drug articles are). Short parameter list:
Drugs that are a simple chemical compound (about 90% of the drug articles are). Short parameter list:
<pre>
<syntaxhighlight lang="html">
{{Infobox drug
{{Infobox drug
| drug_name        =  
| drug_name        =  
Line 27: Line 28:
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU_comment =  
| pregnancy_AU_comment =  
| pregnancy_US      = <!-- A / B / C / D / X / N -->
| pregnancy_US_comment =
| pregnancy_category=  
| pregnancy_category=  
| routes_of_administration =  
| routes_of_administration =  
Line 72: Line 71:
| molecular_weight  =  
| molecular_weight  =  
}}
}}
</pre>
</syntaxhighlight>


'''Full single-drug template''' with extended fields:
'''Full single-drug template''' with extended fields:
<pre>
<syntaxhighlight lang="html">
{{Infobox drug
{{Infobox drug
| drug_name        =  
| drug_name        =  
Line 106: Line 105:
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU_comment =  
| pregnancy_AU_comment =  
| pregnancy_US      = <!-- A / B / C / D / X / N -->
| pregnancy_US_comment =
| pregnancy_category=  
| pregnancy_category=  
| dependency_liability =  
| dependency_liability =  
Line 183: Line 180:
| specific_rotation =  
| specific_rotation =  
}}
}}
</pre>
</syntaxhighlight>
 
==== Automatic generation ====
The [https://alyw234237.github.io/wiki-drugbox-chembox-maker/ Wikipedia Drugbox and Chembox Maker] can be used to automatically generate single-chemical drugbox templates. For quicker access, this tool can be added to the tools section of Wikipedia's left sidebar via [[User:Qwerfjkl/scripts/chemboxmaker]].


'''OR alternatively:''' use [[User:Diberri|Diberri]] & [[User:Boghog|Boghog]]'s excellent [https://tools.wmflabs.org/citation-template-filling/cgi-bin/index.cgi Wikipedia template filling tool] which will generate a populated template to copy & paste into an article if "DrugBank ID" is selected in the dropdown menu and a [[DrugBank]] ID number (which may be obtained from [http://redpoll.pharmacy.ualberta.ca/drugbank/ DrugBank search]) is added in the adjacent field. Please select for ''Fill template vertically'', but as Wikipedia is a general encyclopedia, most drugs do not warrant ''Show extended fields''.
Another option is [[User:Diberri|Diberri]] and [[User:Boghog|Boghog]]'s excellent [https://tools.wmflabs.org/citation-template-filling/cgi-bin/index.cgi Wikipedia template filling tool] which will generate a populated template to copy and paste into an article if "DrugBank ID" is selected in the dropdown menu and a [[DrugBank]] ID number (which may be obtained from [http://redpoll.pharmacy.ualberta.ca/drugbank/ DrugBank search]) is added in the adjacent field. Please select for ''Fill template vertically'', but as Wikipedia is a general encyclopedia, most drugs do not warrant ''Show extended fields''. However, drugbox generation with this tool [https://citation-template-filling.toolforge.org/cgi-bin/index.cgi?type=drugbank_id&id=DB00328 is currently broken] and [https://web.archive.org/web/20200712040837/https://citation-template-filling.toolforge.org/cgi-bin/index.cgi?type=drugbank_id&id=DB00328 has been for some time].


=== Combination of drugs {{nobold|1=(type=combo)}}{{anchor|1Combination of drugs}} ===
=== Combination of drugs {{nobold|1=(type=combo)}}{{anchor|1Combination of drugs}} ===
{{anchor|1=Combination of drugs}}
{{anchor|1=Combination of drugs}}


For drug-combinations, at least two components must be defined, with optional a third and  fourth&nbsp;component. For each component:
For drug-combinations, at least two components must be defined, with more optional (up to 6). For each component:
<pre>
<syntaxhighlight lang="html">
| component1 = <!-- name, will be wikilinked -->
| component''n'' = <!-- name, will be wikilinked -->
| class1     = <!-- class of agent, needs manual wikilinking -->
| class''n''     = <!-- class of agent, needs manual wikilinking -->
</pre>
</syntaxhighlight>


Example for [[Seretide]]:
Example for [[Seretide]]:
Line 206: Line 206:
| class2    = [[Beta2-adrenergic receptor agonist|Long-acting beta2 agonist]]
| class2    = [[Beta2-adrenergic receptor agonist|Long-acting beta2 agonist]]
}}
}}
<pre>
<syntaxhighlight lang="tid">
| drug_name  = Seretide
| drug_name  = Seretide
| type      = combo
| type      = combo
Line 214: Line 214:
| component2 = Salmeterol
| component2 = Salmeterol
| class2    = [[Beta2-adrenergic receptor agonist|Long-acting beta2 agonist]]
| class2    = [[Beta2-adrenergic receptor agonist|Long-acting beta2 agonist]]
</pre>
</syntaxhighlight>


Generally combination articles will not need to display the molecular images of its constituents (the relevant specific articles would have the images). It disables all Chemical & Pharmacology parameters (which describe properties of single drug items). These redundant disabled parameters are best not included in the template calling, so use the following abridged forms of the template:
Generally combination articles will not need to display the molecular images of its constituents (the relevant specific articles would have the images). It disables all Chemical & Pharmacology parameters (which describe properties of single drug items). These redundant disabled parameters are best not included in the template calling, so use the following abridged forms of the template:


'''Shortened combination product form:'''
'''Shortened combination product form:'''
<pre style="overflow: auto">
<syntaxhighlight lang="html" style="overflow: auto">
{{Infobox drug
{{Infobox drug
| drug_name        =  
| drug_name        =  
Line 235: Line 235:
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU_comment =  
| pregnancy_AU_comment =  
| pregnancy_US      = <!-- A / B / C / D / X / N -->
| pregnancy_US_comment =
| pregnancy_category=  
| pregnancy_category=  
| routes_of_administration =  
| routes_of_administration =  
Line 268: Line 266:
| KEGG              =  
| KEGG              =  
}}
}}
</pre>
</syntaxhighlight>


'''Full combination product template''' with extended fields and allowing for up to four&nbsp;items:
'''Full combination product template''' with extended fields and allowing for up to six&nbsp;items:
<pre style="overflow: auto">
<syntaxhighlight lang="html" style="overflow: auto">
{{Infobox drug
{{Infobox drug
| drug_name        =  
| drug_name        =  
Line 284: Line 282:
| component4        = <!-- Drugname, automatically linked -->
| component4        = <!-- Drugname, automatically linked -->
| class4            = <!-- Group, manual link using [[..|..]] -->
| class4            = <!-- Group, manual link using [[..|..]] -->
| component5        = <!-- Drugname, automatically linked -->
| class5            = <!-- Group, manual link using [[..|..]] -->
| component6        = <!-- Drugname, automatically linked -->
| class6            = <!-- Group, manual link using [[..|..]] -->
<!-- Clinical data -->
<!-- Clinical data -->
| pronounce        =  
| pronounce        =  
Line 291: Line 293:
| licence_CA        = <!-- Health Canada may use generic or brand name (generic name preferred) -->
| licence_CA        = <!-- Health Canada may use generic or brand name (generic name preferred) -->
| licence_EU        = <!-- EMA uses INN (or special INN_EMA) -->
| licence_EU        = <!-- EMA uses INN (or special INN_EMA) -->
| DailyMedID       = <!-- DailyMed may use generic or brand name (generic name preferred) -->
| DailyMedID       = <!-- DailyMed may use generic or brand name (generic name preferred) -->
| licence_US        = <!-- FDA may use generic or brand name (generic name preferred) -->
| licence_US        = <!-- FDA may use generic or brand name (generic name preferred) -->
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU_comment =  
| pregnancy_AU_comment =  
| pregnancy_US      = <!-- A / B / C / D / X / N -->
| pregnancy_US_comment =
| pregnancy_category=  
| pregnancy_category=  
| dependency_liability =  
| dependency_liability =  
Line 339: Line 339:
| synonyms          =  
| synonyms          =  
}}
}}
</pre>
</syntaxhighlight>


=== Monoclonal antibody drugs {{nobold|1=(type=mab)}}{{anchor|1=Monoclonal antibody drugs}}===
=== Monoclonal antibody drugs {{nobold|1=(type=mab)}}{{anchor|1=Monoclonal antibody drugs}}===
Line 345: Line 345:
* {{para|type|mab}}
* {{para|type|mab}}
This form the box uses parameters:
This form the box uses parameters:
<pre style="overflow: auto">
<syntaxhighlight lang="html" style="overflow: auto">
| type      = mab
| type      = mab
<!-- Monoclonal antibody data -->
<!-- Monoclonal antibody data -->
Line 351: Line 351:
| source    =  
| source    =  
| target    =  
| target    =  
</pre>
</syntaxhighlight>


For example [[Catumaxomab]]:
For example [[Catumaxomab]]:
Line 362: Line 362:
| target    = [[EpCAM]], [[CD3 (immunology)|CD3]]
| target    = [[EpCAM]], [[CD3 (immunology)|CD3]]
}}
}}
<pre style="overflow: auto">
<syntaxhighlight lang="tid" style="overflow: auto">
| type      = mab
| type      = mab
<!-- Monoclonal antibody data -->
<!-- Monoclonal antibody data -->
Line 368: Line 368:
| source    = axo
| source    = axo
| target    = [[EpCAM]], [[CD3 (immunology)|CD3]]
| target    = [[EpCAM]], [[CD3 (immunology)|CD3]]
</pre>
</syntaxhighlight>


'''mab_type''' defines one of the following types of antibody or antibody fragment:
'''mab_type''' defines one of the following types of antibody or antibody fragment:
Line 431: Line 431:


'''Shortened Monoclonal antibody form:'''
'''Shortened Monoclonal antibody form:'''
<pre style="overflow: auto">
<syntaxhighlight lang="html" style="overflow: auto">
{{Infobox drug
{{Infobox drug
| type              = mab
| type              = mab
Line 448: Line 448:
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU_comment =  
| pregnancy_AU_comment =  
| pregnancy_US      = <!-- A / B / C / D / X / N -->
| pregnancy_US_comment =
| pregnancy_category=  
| pregnancy_category=  
| routes_of_administration =  
| routes_of_administration =  
Line 489: Line 487:
| KEGG              =  
| KEGG              =  
}}
}}
</pre>
</syntaxhighlight>


=== Vaccines {{nobold|1=(type=vaccine)}}{{anchor|1=Vaccine|2=Vaccines}}===
=== Vaccines {{nobold|1=(type=vaccine)}}{{anchor|1=Vaccine|2=Vaccines}}===
Line 500: Line 498:
! vaccine_type value !! Output
! vaccine_type value !! Output
|-
|-
| killed ''or'' inactivated  || Killed/Inactivated
| inactivated ''or'' killed || [[Inactivated vaccine|Inactivated]]
|-
| attenuated || [[Attenuated vaccine|Attenuated]]
|-
| subunit || [[Subunit vaccine|Subunit]]
|-
| protein ''or'' protein subunit || [[Subunit vaccine#Protein subunit|Protein subunit]]
|-
|-
| attenuated || [[Attenuated virus]]
| peptide ''or'' peptide subunit || [[Subunit vaccine#Peptide subunit|Peptide subunit]]
|-
|-
| live || Live bacteria
| polysaccharide || [[Subunit vaccine#Polysaccharide subunit|Polysaccharide]]
|-
| vlp || [[Subunit vaccine#Virus-like particles|Virus-like particles]]
|-
|-
| toxoid || [[Toxoid]]
| toxoid || [[Toxoid]]
|-
|-
| protein ''or'' protein subunit || [[Protein subunit]]
| conjugate || [[Conjugate vaccine|Conjugate]]
|-
| viral || [[Viral vector vaccine|Viral vector]]
|-
| recombinant || [[Recombinant DNA|Recombinant vector]]
|-
|-
| subunit || Subunit
| dna || [[DNA vaccine|DNA]]
|-
|-
| conjugate || [[Conjugate vaccine]]
| rna || [[RNA vaccine|RNA]]
|-
|-
| recombinant || [[Recombinant DNA|Recombinant Vector]]
| mrna || [[mRNA vaccine|mRNA]]
|-
|-
| DNA || [[DNA vaccination]]
| heterologous || [[Heterologous vaccine|Heterologous]]
|-
|-
| ''any text'' || ''any text'' (shows unedited)
| ''any text'' || ''any text'' (shows unedited)
Line 524: Line 534:


'''Shortened Vaccine form:'''
'''Shortened Vaccine form:'''
<pre>
<syntaxhighlight lang="html">
{{Infobox drug
{{Infobox drug
| drug_name        =  
| drug_name        =  
Line 532: Line 542:
| caption          =  
| caption          =  
<!-- Vaccine data -->
<!-- Vaccine data -->
| target            = <!-- the antigen/bacteria/toxin/virus to protect against -->
| target            = <!-- antigen/bacteria/toxin/virus -->
| vaccine_type      = <!-- killed/attenuated/live/toxoid/protein subunit/subunit/conjugate/recombinant/DNA -->
| vaccine_type      = <!-- killed/attenuated/live/toxoid/protein subunit/subunit/conjugate/recombinant/DNA -->
<!-- Clinical data -->
<!-- Clinical data -->
Line 541: Line 551:
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU_comment =  
| pregnancy_AU_comment =  
| pregnancy_US      = <!-- A / B / C / D / X / N -->
| pregnancy_US_comment =
| pregnancy_category=  
| pregnancy_category=  
| routes_of_administration =  
| routes_of_administration =  
Line 573: Line 581:
| DrugBank          =  
| DrugBank          =  
}}
}}
</pre>
</syntaxhighlight>


'''Full Vaccine template''' with extended fields:
'''Full Vaccine template''' with extended fields:
<pre>
<syntaxhighlight lang="html">
{{Infobox drug
{{Infobox drug
| drug_name        =  
| drug_name        =  
Line 598: Line 606:
| licence_CA        = <!-- Health Canada may use generic or brand name (generic name preferred) -->
| licence_CA        = <!-- Health Canada may use generic or brand name (generic name preferred) -->
| licence_EU        = <!-- EMA uses INN (or special INN_EMA) -->
| licence_EU        = <!-- EMA uses INN (or special INN_EMA) -->
| DailyMedID       = <!-- DailyMed may use generic or brand name (generic name preferred) -->
| DailyMedID       = <!-- DailyMed may use generic or brand name (generic name preferred) -->
| licence_US        = <!-- FDA may use generic or brand name (generic name preferred) -->
| licence_US        = <!-- FDA may use generic or brand name (generic name preferred) -->
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU      = <!-- A / B1 / B2 / B3 / C / D / X -->
| pregnancy_AU_comment =  
| pregnancy_AU_comment =  
| pregnancy_US      = <!-- A / B / C / D / X / N -->
| pregnancy_US_comment =
| pregnancy_category=  
| pregnancy_category=  
| routes_of_administration =
| ATCvet            =
| ATC_prefix        = <!-- 'none' if uncategorised -->
| ATC_suffix        =
<!-- Legal status -->
<!-- Legal status -->
| legal_AU          = <!-- S2, S3, S4, S5, S6, S7, S8, S9 or Unscheduled -->
| legal_AU          = <!-- S2, S3, S4, S5, S6, S7, S8, S9 or Unscheduled -->
Line 639: Line 649:
| NIAID_ChemDB      =  
| NIAID_ChemDB      =  
}}
}}
</pre>
</syntaxhighlight>


== Parameters ==
== Parameters ==
{{See also|:Template:Infobox drug/doc/parameter list|l1=full parameter list}}
===Full parameter list===
 
{{collapse top|title = {{tlf|Infobox drug}} parameter list| bg=#eaeaea}}
{{Infobox drug/doc/parameter list}}
{{collapse bottom}}
=== Infobox title and INN ===
=== Infobox title and INN ===
{{infobox drug|drug_name=Aspirin|image=Blank file.xcf|width=5px}}
{{infobox drug|drug_name=Aspirin|image=Blank file.xcf|width=5px}}
Line 667: Line 679:
{{Infobox drug
{{Infobox drug
| drug_name = demo: image
| drug_name = demo: image
| image            = Aspirin.png
| image            = Acetylsalicylsäure2.svg
| caption          = structure
| caption          = structure
| alt              = Molecule of aspirin
| alt              = Molecule of aspirin
Line 673: Line 685:
}}
}}
<pre>
<pre>
| image            = Aspirin.png
| image            = Acetylsalicylsäure2.svg
| caption          = structure
| caption          = structure
| alt              = Molecule of aspirin
| alt              = Molecule of aspirin
Line 714: Line 726:
==== Pregnancy category ====
==== Pregnancy category ====
:''See also [[Template:Infobox drug/pregnancy category|pregnancy category, documentation]] for extensive documentation''
:''See also [[Template:Infobox drug/pregnancy category|pregnancy category, documentation]] for extensive documentation''
Pregnancy Categorisation has been previously declared using just the '''pregnancy_category''' parameter with a variety of markup styles used to indicate various countries and their classifications. Alternatively '''pregnancy_AU''' and '''pregnancy_US''' may be set to the fixed categories. For Australia values permitted are: A, B1, B2, B3, C, D or X (note if just set to 'B' then '''B?''' is shown). For US values permitted are: A, B, C, D, X, or N.
Pregnancy Categorisation has been previously declared using just the '''pregnancy_category''' parameter with a variety of markup styles used to indicate various countries and their classifications. Alternatively '''pregnancy_AU''' may be set to the fixed categories. For Australia values permitted are: A, B1, B2, B3, C, D or X (note if just set to 'B' then '''B?''' is shown). Pregnancy categories are no longer used in the US.


Note the UK does not have official designated categorisations, but has both a variety of standard phrases with explanatory qualifications, plus many individual descriptions. The generic {{para|pregnancy_category}} accepts any text, and may be used with such country-specific information (non AU or US).
Note the UK does not have official designated categorisations, but has both a variety of standard phrases with explanatory qualifications, plus many individual descriptions. The generic {{para|pregnancy_category}} accepts any text, and may be used with such country-specific information (non AU or US).


For the new US labeling guidelines [[PLLR]], parameter {{para|PLLR}} is added and will show any input text (not re-formatted).
{{Infobox drug
{{Infobox drug
| drug_name=Demo pregnancy
| drug_name=Demo pregnancy
   | pregnancy_AU = B1
   | pregnancy_AU = B1
   | pregnancy_AU_comment = {{dummy reference}}
   | pregnancy_AU_comment = {{dummy reference}}
  | pregnancy_US = C
  | pregnancy_US_comment = {{dummy reference}}
   | pregnancy_category = Used in pregnancy against [[Pregnancy-induced hypertension|PIH]]
   | pregnancy_category = Used in pregnancy against [[Pregnancy-induced hypertension|PIH]]
  | PLLR = Some PLLR text
}}
}}
<pre>
<syntaxhighlight lang="tid">
   | pregnancy_AU = B1
   | pregnancy_AU = B1
   | pregnancy_AU_comment = <ref>...</ref>
   | pregnancy_AU_comment = <ref>...</ref>
  | pregnancy_US = C
  | pregnancy_US_comment = <ref>...</ref>
   | pregnancy_category = Used in pregnancy against [[Pregnancy-induced hypertension|PIH]]
   | pregnancy_category = Used in pregnancy against [[Pregnancy-induced hypertension|PIH]]
  | PLLR = Some PLLR text
</syntaxhighlight>
</pre>


==== Dependence liability ====
==== Dependence liability ====
Line 836: Line 841:
Note: if a drug is restricted everywhere to prescription-only, please set '''legal_status = Rx-only''' rather than similarly define for each and every country. {{para|legal_status|Rx-only}} is specifically recognised and shows as {{Infobox drug/legal status|legal_status=Rx-only}}
Note: if a drug is restricted everywhere to prescription-only, please set '''legal_status = Rx-only''' rather than similarly define for each and every country. {{para|legal_status|Rx-only}} is specifically recognised and shows as {{Infobox drug/legal status|legal_status=Rx-only}}


{|class="wikitable collapsible collapsed" style="width:100%;"
{|class="wikitable mw-collapsible mw-collapsed" style="width:100%;"
|-
|-
! Input !! Meaning
! Input !! Meaning
Line 1,017: Line 1,022:
{{anchor|1=Second identifier}}
{{anchor|1=Second identifier}}
{{collapse top|title=Using second identifiers|bg=#ddd}}
{{collapse top|title=Using second identifiers|bg=#ddd}}
{| class=wikitable style="float:right; font-size:95%; font-family:monotype"
{| class=wikitable style="float:right; font-size:95%; font-family: 'Courier Code', Menlo, 'Red Hat Mono', 'DejaVu Sans Mono', 'PT Mono', 'Courier New', FreeMono, Courier, 'Lucida Console', monospace;"
|-
|-
|ATC_prefix2 =  
|ATC_prefix2 =  
Line 1,077: Line 1,082:
| DrugBank =  
| DrugBank =  
}}</div>
}}</div>
<pre>
<syntaxhighlight lang="html">
{{infobox drug
{{infobox drug
| drug_name=Demo indexes<br/>([[Diminazen]])
| drug_name=Demo indexes<br/>([[Diminazen]])
Line 1,092: Line 1,097:
| DrugBank =  
| DrugBank =  
}}
}}
</pre>
</syntaxhighlight>
* When used, the indexes ''&lt;blank>'' and ''2'' are used consistently for two substances (so, all #2 identifiers refer to the same alternate substance).
* When used, the indexes {{angbr|''blank''}} and ''2'' are used consistently for two substances (so, all #2 identifiers refer to the same alternate substance).
* When index 2 is used, consider adding {{para|index_label}}  and {{para|index2_label}} prefixes, to appear before every identifier.
* When index 2 is used, consider adding {{para|index_label}}  and {{para|index2_label}} prefixes, to appear before every identifier.
* These index prefixes can be explained using {{para|index_comment}}, {{para|index2_comment}} which will show in top.
* These index prefixes can be explained using {{para|index_comment}}, {{para|index2_comment}} which will show in top.
Line 1,119: Line 1,124:
:Formula {{Chembox Elements/molecular formula| C=2 | H=6 | O=1 | charge=2-}}
:Formula {{Chembox Elements/molecular formula| C=2 | H=6 | O=1 | charge=2-}}


This is called the ''empirical'' form, the most simple form. Entered this way, the elements are ordered in the [[Hill notation]] order: When C is present, C<sub>x</sub>H<sub>y</sub> in front and the others alphabetically Ar ... Zr. When a ''molecular'' formula or ''structural'' formula is known, that one should be entered in {{para|chemical_formula}} (consider using {{tl|Chem}}).
This is called the ''empirical'' form, the most simple form. Entered this way, the elements are ordered in the [[Hill notation]] order: When C is present, C<sub>x</sub>H<sub>y</sub> in front and the others alphabetically Ar ... Zr. When a ''molecular'' formula or ''structural'' formula is known, that one should be entered in {{para|chemical_formula}} (consider using {{tl|Chem2}}).


You can provide the chemical formula as fixed
You can provide the chemical formula as fixed
Line 1,147: Line 1,152:
When {{para|SMILES}} has input, the template automatically adds an external link to the Jmol 3D molecule model.
When {{para|SMILES}} has input, the template automatically adds an external link to the Jmol 3D molecule model.
* '''{{para|Jmol|None}}''' will suppress (hide) that data row.
* '''{{para|Jmol|None}}''' will suppress (hide) that data row.
* '''{{para|Jmol|&lt;some SMILES string>}}'''  will link to the 3D-model of ''that'' string (i.e. overwriting {{para|SMILES}} input). SMILES will show its input unchanged.
* '''{{para|Jmol|{{angbr|some SMILES string}}}}'''  will link to the 3D-model of ''that'' string (i.e. overwriting {{para|SMILES}} input). SMILES will show its input unchanged.


==== Physical data ====
==== Physical data ====
Line 1,200: Line 1,205:


When this section has input, sections Clinical data and Legal data should be empty.
When this section has input, sections Clinical data and Legal data should be empty.
<pre>
<syntaxhighlight lang="html">
<!-- Physiological data -->
<!-- Physiological data -->
| source_tissues =  
| source_tissues =  
Line 1,210: Line 1,215:
| biosynthesis  =  
| biosynthesis  =  
| metabolism    = <!-- same parameter as in pharmacokinetic data -->
| metabolism    = <!-- same parameter as in pharmacokinetic data -->
</pre>
</syntaxhighlight>
Example:
Example:
{{Infobox drug
{{Infobox drug
Line 1,224: Line 1,229:
| metabolism    = [[oxytocinase]]
| metabolism    = [[oxytocinase]]
}}
}}
<pre>
<syntaxhighlight lang="tid">
| drug_name      = [[Oxytocin]]
| drug_name      = [[Oxytocin]]
<!-- Physiological data -->
<!-- Physiological data -->
Line 1,235: Line 1,240:
| biosynthesis  = [[magnolysin]]
| biosynthesis  = [[magnolysin]]
| metabolism    = [[oxytocinase]]
| metabolism    = [[oxytocinase]]
</pre>
</syntaxhighlight>


* Categorised: {{Category link with count|Drugs that are a physiological drug}}
* Categorised: {{Category link with count|Drugs that are a physiological drug}}
Line 1,279: Line 1,284:
==Miscellaneous==
==Miscellaneous==
=== Verification by CheMoBot (parameters: ..._Ref) ===
=== Verification by CheMoBot (parameters: ..._Ref) ===
Seven identfying parameters like {{para|CAS_number}}are tracked in a [[Wikipedia:WikiProject Chemicals/Chembox validation|WP:Drugbox data validation process]]. A bot adds parameters like
Seven identifying parameters like {{para|CAS_number}} are tracked in a [[Wikipedia:WikiProject Chemicals/Chembox validation|WP:Drugbox data validation process]]. A bot adds parameters like
{{para|verifiedrevid}} and {{para|CAS_number_Ref|<nowiki>{{cascite|correct}}</nowiki>}}. See also {{tl|cascite}} documentation.
{{para|verifiedrevid}} and {{para|CAS_number_Ref|<nowiki>{{cascite|correct}}</nowiki>}}. See also {{tl|cascite}} documentation.


Line 1,300: Line 1,305:
Dependent sections:
Dependent sections:
{{Infobox drug/doc/type-conditional sections|state=collapsed}}
{{Infobox drug/doc/type-conditional sections|state=collapsed}}
=== Multiple Infoboxes drug===
* [[Eprinomectin]], [[Hib vaccine]], [[Sarafotoxin]] (3 boxes), [[Valproate]], [[Varespladib]]
:<small>(checked manually using [[WP:AWB]], 5/8275, 20-12-2021)</small>


== TemplateData ==
== TemplateData ==
{{collapse top|title=[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools|bg=#ddd}}
{{collapse top|title=[[Wikipedia:TemplateData|TemplateData]]|bg=#ddd}}
{{TemplateData header|noheader=1}}
{{TemplateData header|noheader=1}}
<templatedata>
<templatedata>
Line 1,316: Line 1,326:
"image": {
"image": {
"label": "Image",
"label": "Image",
"example": "Aspirin.png",
"example": "Aspirin-Wireframe.svg",
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true
"suggested": true
Line 1,378: Line 1,388:
"suggested": true
"suggested": true
},
},
"PLLR": {},
"dependency_liability": {},
"dependency_liability": {},
"addiction_liability": {},
"addiction_liability": {},
Line 1,422: Line 1,431:
"label": "Pregnancy (Australia)",
"label": "Pregnancy (Australia)",
"description": "Pregnancy category in Australia.  Use one of these codes:  A, B1, B2, B3, C, D, X",
"description": "Pregnancy category in Australia.  Use one of these codes:  A, B1, B2, B3, C, D, X",
"example": "C",
"type": "line",
"suggested": true
},
"pregnancy_US_comment": {},
"pregnancy_US": {
"label": "Pregnancy (US)",
"description": "Pregnancy category in the US.  Use one of these codes:  A, B, C, D, X, N",
"example": "C",
"example": "C",
"type": "line",
"type": "line",
Line 1,771: Line 1,772:
"pregnancy_AU",
"pregnancy_AU",
"pregnancy_AU_comment",
"pregnancy_AU_comment",
"pregnancy_US",
"pregnancy_US_comment",
"pregnancy_category",
"pregnancy_category",
"PLLR",
"legal_AU",
"legal_AU",
"legal_AU_comment",
"legal_AU_comment",
Line 2,059: Line 2,057:


== Tracking categories ==
== Tracking categories ==
* {{Category link with count|Chemical articles with unknown parameter in Infobox drug}}
* {{Category link with count|Pages using infobox drug with unknown parameters}}
* See also: {{cl|Infobox drug tracking categories}}
* See also: {{cl|Infobox drug tracking categories}}


Line 2,066: Line 2,064:
* {{tl|Infobox medical condition}}
* {{tl|Infobox medical condition}}
* [[WP:PHARM]] for WikiProject page
* [[WP:PHARM]] for WikiProject page
* [https://alyw234237.github.io/wiki-drugbox-chembox-maker/ Wikipedia Drugbox and Chembox Maker]


<includeonly>{{sandbox other| |
<includeonly>{{sandbox other| |
[[Category:Medicine infobox templates|Drug]]
[[Category:Medicine infobox templates|Drug]]
[[Category:Infobox drug templates| ]]
[[Category:Infobox drug templates]]
[[Category:Infobox templates using Wikidata]]
[[Category:Infobox templates using Wikidata]]
[[Category:Templates that add a tracking category]]
[[Category:Templates that add a tracking category|{{PAGENAME}}]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
[[Category:Infobox drug documentation| ]]
[[Category:Infobox drug documentation| ]]
</noinclude>
</noinclude>
Anonymous user