Difference between revisions of "Template:Chembox/doc"

From blackwiki
Jump to navigation Jump to search
imported>Galmicmi
(Re-align left and right column for section "Full Form". Please check "* Medical Subject Headings, links to NIH", i'm not sure where to put it.)
imported>Whywhenwhohow
(case)
 
(290 intermediate revisions by 51 users not shown)
Line 1: Line 1:
 +
<!-- {{Convert to use Infobox}} -->
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
{{Sandbox other||{{#ifeq:{{PAGENAME}}|Chembox<!-- in top /documentation only -->
 +
|<!--match-->{{Lua|Module:String|Module:TemplatePar|nocat=true}}
 +
{{Tracks Wikidata|P628|P2566|cat=Chemical compounds and Wikidata|section=Input from Wikidata}}|<!--no match-->}}}}
  
=== Usage ===
+
Template {{tlx|Chembox}} is an '''[[WP:INFOBOX|infobox]] for chemicals'''. It has a large number of options to add relevant data and images. The infobox is organized in sections like "identifiers" and "hazards".
  
Copy the template from one of the forms [[#Getting a chembox new|below]] into the top of the document, and add data to the fields. Don't worry about trying to fill in all the fields -- even if you can only get the basics, that can still be very useful.
+
==Usage==
 +
{{Hatnote|See also: [[:Template:Chembox/doc/full parameter list|full parameter list]]}}
 +
The Chembox has a modular design. After the general information like the chemical name and images, it can be built from multiple sections, each covering a group of information (like "pharmacology"). Depending on the compound, sections can be added or left out, and within a section parameters can be added or omitted (left blank).
  
General:
+
The sections and their parameters are listed below.
* Do not delete fields that you don't know the data for, empty fields will just not give a row in the result, and sections without data will also not show up.  Other editors may just fill in the fields that are empty.  You can delete sections which are not applicable for the compound (see [[#Extra sections/fields|extra sections/fields]]).
 
  
* Do not {{tl|subst}} this template, empty fields will not show up, and when formatting changes are applied to the template, it will not be visible in ''all'' documents transcluding the chembox new. The substituted template is an unintelligible gibberish of esoteric template code, and certain parts will not transclude.  Keeping it un-subst-ed makes placing the data even more easy, and saves a lot of space on a page (the unsubsted chembox new is on an average page about 1000 bytes smaller than a fully transcluded chembox).
+
Within the general chembox template (with its own parameters like {{para|ImageFile|}} and {{para|IUPACName|}}), each section is added with this pattern (as the value of a parameter {{Para|Section''x''}}.
 +
<pre>
 +
{{Chembox
 +
| ImageFile =
 +
| IUPACName =
 +
<!-- more general Chembox parameters here -->
 +
| Section1 = {{Chembox Identifiers
 +
| CASNo =
 +
| PubChem =
 +
<!-- more Identifier parameters here -->
 +
  }}
 +
}}</pre>
  
* For the sub-box supplement to show up, the supplementary page "pagename (data page)" has to be available. When the chembox grows too big, consider starting a datapage and move data from the chembox into that page.
+
In this format, spaces and new lines have no meaning and can be used freely to separate sections (though ''within'' a data value, a space has a meaning, except generally leading and trailing spaces).
 +
Each section has its own number in {{para|Section''#''|}}. Then a section is defined with <code>"|Section# = {{Chembox "</code> and ends with <code>"}}"</code>. Sections cannot 'nest': one must close one section with <code>}}</code> before adding another {{para|Section#| <nowiki>{{Chembox ...</nowiki>}}.
  
=== Getting a chembox new ===
+
Keep in mind the advice in the main Infobox documentation to use the {{tl|Unbulleted list}} template to present multiple values for a parameter so as to ensure that the values are each started on a new line and tagged appropriately in the underlying markup. This is particularly important with parameters like {{para|OtherNames}}, since many names use commas within them, and using commas as separators leads to ambiguity. For example:
 
+
<pre style="overflow: auto">
The chemboxes have a more or less modular design.  They are built up out of several sections, and depending on the compound, certain sections can be removed, or other sections can be added.
+
| OtherNames = {{Unbulleted list
 
+
  | 2,4,6(1''H'',3''H'',5''H'')-pyrimidinetrione
If the box needs expansion from another field, simply copy the section from the full template form, and paste it into the chembox (make sure that each section has its own number, note that a section starts with <nowiki>"| section# = {{chembox "</nowiki> and ends with <nowiki>"}}"</nowiki>; make sure the sections don't 'nest').  There are 15 sections available (though only 8 have been defined so far).
+
  | 2,4,6-trioxohexahydropyrimidine
 
+
  | pyrimidinetriol
The order of section numbers does effect the actual order in the final document.  If a chemical compound would e.g. both be an explosive and a drug, but the drug properties are more important, consider giving the drug-section a lower sectionnumber than the explosive-section, and the drug-section will appear above the explosive-section.  The actual numbering of the sections does not matter (as long as the numbers are in the range 1–15) as long as no duplicate sections are defined.
+
  | malonylurea
 
+
  | 6-hydroxyuracil
Available subst templates (type <nowiki>{{subst:chembox subst}}</nowiki> in the document and press save to get the empty box):
+
  | ''N'',''N''-(1,3-dioxo-1,3-propanediyl)urea
* {{tl|chembox subst}} or {{tl|chembox subst small}} for standard chemicals
+
  }}
* {{tl|chembox subst medium}}, a bit more information
+
| (next parameter) = <!-- etc. -->
* {{tl|chembox subst full}} or {{tl|chembox subst large}}, a complete list
+
</pre>
 
 
Specialised:
 
* {{tl|chembox subst drug}}, a medium box with the pharma box
 
* {{tl|chembox subst explosive}}, a medium box with the explosive box
 
 
 
==== Small/simple form ====
 
  
To use, simply copy and paste the left column into the document, filling in whatever you can, or type <nowiki>{{subst:chembox subst small}}</nowiki> and press save:
+
====Small, simple form====
 +
To use, simply copy and paste the left column into the document, filling in whatever you can, and save:
  
 
{|
 
{|
|- valign=top
+
|- style="vertical-align:top;"
|  
+
|
<pre>
+
<pre style="overflow: auto">
 
{{Chembox
 
{{Chembox
 +
<!-- Images -->
 
| ImageFile =  
 
| ImageFile =  
 
| ImageSize =  
 
| ImageSize =  
 +
| ImageAlt =
 +
<!-- Names -->
 
| IUPACName =  
 
| IUPACName =  
 
| OtherNames =  
 
| OtherNames =  
 +
<!-- Sections -->
 
| Section1 = {{Chembox Identifiers
 
| Section1 = {{Chembox Identifiers
 
| CASNo =  
 
| CASNo =  
 
| PubChem =  
 
| PubChem =  
| SMILES = }}
+
| SMILES =  
 +
  }}
 
| Section2 = {{Chembox Properties
 
| Section2 = {{Chembox Properties
 
| Formula =  
 
| Formula =  
Line 54: Line 70:
 
| MeltingPt =  
 
| MeltingPt =  
 
| BoilingPt =  
 
| BoilingPt =  
| Solubility = }}
+
| Solubility =  
 +
  }}
 
| Section3 = {{Chembox Hazards
 
| Section3 = {{Chembox Hazards
 
| MainHazards =  
 
| MainHazards =  
 
| FlashPt =  
 
| FlashPt =  
| Autoignition = }}
+
| AutoignitionPt =  
 +
  }}
 
}}
 
}}
 
</pre>
 
</pre>
 
|}
 
|}
  
==== Full form ====
+
====Medium form====
 
+
To use, simply copy and paste the left column into the document, filling in whatever you can:
To use, simply copy and paste the left column into the document, or type <nowiki>{{subst:chembox subst}}</nowiki> and press save to get an empty chembox:
 
  
 
{|
 
{|
|- valign=top
+
|- style="vertical-align:top"
|  
+
| <pre>
<pre>
+
{{Chembox
{{chembox
+
| Reference =
 +
<!-- Names -->
 
| Name =  
 
| Name =  
 +
| IUPACName =
 +
| PIN =
 +
| SystematicName = not
 +
| OtherNames = {{Unbulleted list
 +
  | ''name1''
 +
  | ''name2''
 +
  ...
 +
  | ''name50''
 +
  }}
 +
| data page pagename =
 +
<!-- Images -->
 
| ImageFile =  
 
| ImageFile =  
|   ImageSize =  
+
| ImageSize =  
|   ImageName =  
+
| ImageAlt =
| ImageFile1 =
+
| ImageName =
|   ImageSize1 =  
+
| ImageCaption =  
|   ImageName1 =  
+
| ImageFile1 =  
| ImageFile2 =
+
| ImageSize1 =  
|   ImageSize2 =  
+
| ImageAlt1 =
|   ImageName2 =  
+
| ImageName1 =
| ImageFile3 =
+
| ImageCaption1 =  
|   ImageSize3 =  
+
| ImageFile2 =  
|   ImageName3 =  
+
| ImageSize2 =  
| ImageFileL1 =
+
| ImageAlt2 =
|   ImageSizeL1 =  
+
| ImageName2 =
|   ImageNameL1 =  
+
| ImageCaption2 =  
| ImageFileR1 =
+
| ImageFile3 =  
|   ImageSizeR1 =  
+
| ImageSize3 =  
|   ImageNameR1 =  
+
| ImageAlt3 =
| ImageFileL2 =
+
| ImageName3 =  
|   ImageSizeL2 =  
+
| ImageFileL1 =  
|   ImageNameL2 =  
+
| ImageSizeL1 =  
| ImageFileR2 =
+
| ImageAltL1 =
|   ImageSizeR2 =  
+
| ImageNameL1 =  
|   ImageNameR2 =  
+
| ImageFileR1 =  
| IUPACName =  
+
| ImageSizeR1 =  
|  SystematicName =
+
| ImageAltR1 =
|  OtherNames =
+
| ImageNameR1 =  
 +
| ImageFileL2 =  
 +
| ImageSizeL2 =  
 +
| ImageAltL2 =
 +
| ImageNameL2 =  
 +
| ImageFileR2 =  
 +
| ImageSizeR2 =  
 +
| ImageAltR2 =  
 +
| ImageNameR2 =  
 +
<!-- Sections -->
 
| Section1 = {{Chembox Identifiers
 
| Section1 = {{Chembox Identifiers
|   Abbreviations =  
+
| 3DMet =
|   CASNo =  
+
| Abbreviations =  
|   CASNo_Ref =
+
| Beilstein =
|   CASNos =
+
| CASNo =  
|   CASOther =
+
| CASNo_Comment =  
|   PubChem =  
+
| CASOther =  
|   EINECS =  
+
| ChEBI =  
|   EC-number =
+
| ChemSpiderID =  
|   EINECSCASNO =  
+
| EINECS =  
|   UNNumber =
+
| EC_number =  
|   DrugBank =
+
| EC_number_Comment =  
|   KEGG =
+
| Gmelin =  
|   MeSHName =
+
| InChI =  
|   ChEBI =
+
| KEGG =  
|   RTECS =  
+
| MeSHName =  
|   ATCvet =
+
| PubChem =  
|  ATCCode_prefix =
+
| RTECS =  
|  ATCCode_suffix =
+
| SMILES =  
|  ATC_Supplemental =
+
| UNNumber =  
SMILES =  
 
|   InChI =
 
|  Beilstein =
 
|  Gmelin =
 
|  ChemSpiderID =
 
|  3DMet =
 
 
   }}
 
   }}
 
| Section2 = {{Chembox Properties
 
| Section2 = {{Chembox Properties
|   Formula =  
+
| AtmosphericOHRateConstant =  
|   MolarMass =  
+
| Appearance =  
|   Appearance =  
+
| BoilingPt =  
|   Density =  
+
| BoilingPtC =  
|   MeltingPt =  
+
| BoilingPt_ref =  
|   Melting_notes =  
+
| BoilingPt_notes =  
|   BoilingPt =  
+
| Density =  
|   Boiling_notes =  
+
| Formula =  
|   Solubility =  
+
| HenryConstant =  
|   SolubleOther =  
+
| LogP =  
|   Solvent =  
+
| MolarMass =  
|   LogP =  
+
| MeltingPt =  
|   VaporPressure =  
+
| MeltingPtC =  
|   HenryConstant =  
+
| MeltingPt_ref =  
|   AtmosphericOHRateConstant =  
+
| MeltingPt_notes =  
|   pKa =  
+
| pKa =  
|   pKb =  
+
| pKb =
 +
| Solubility =
 +
| SolubleOther =
 +
| Solvent =
 +
| VaporPressure =  
 
   }}
 
   }}
 
| Section3 = {{Chembox Structure
 
| Section3 = {{Chembox Structure
 +
| Coordination =
 
| CrystalStruct =  
 
| CrystalStruct =  
| Coordination =  
+
| MolShape =  
| MolShape = }}
+
  }}
 
| Section4 = {{Chembox Thermochemistry
 
| Section4 = {{Chembox Thermochemistry
 +
| DeltaGf =
 +
| DeltaHc =
 
| DeltaHf =  
 
| DeltaHf =  
| DeltaHc =
 
 
| Entropy =  
 
| Entropy =  
| HeatCapacity = }}
+
| HeatCapacity =  
| Section5 = {{Chembox Pharmacology
+
  }}
 +
| Section5 = {{Chembox Explosive
 +
| ShockSens =
 +
| FrictionSens =
 +
| DetonationV =
 +
| REFactor =
 +
  }}
 +
| Section6 = {{Chembox Pharmacology
 +
| ATCvet =
 +
| ATCCode_prefix =
 +
| ATCCode_suffix =
 +
| ATC_Supplemental =
 
| AdminRoutes =  
 
| AdminRoutes =  
 
| Bioavail =  
 
| Bioavail =  
 +
| Excretion =
 +
| HalfLife =
 
| Metabolism =  
 
| Metabolism =  
| HalfLife =
 
| ProteinBound =
 
| Excretion =
 
 
| Legal_status =  
 
| Legal_status =  
| Legal_US =
 
| Legal_UK =
 
 
| Legal_AU =  
 
| Legal_AU =  
 +
| Legal_AU_comment =
 
| Legal_CA =  
 
| Legal_CA =  
| PregCat =  
+
| Legal_CA_comment =  
| PregCat_AU =  
+
| Legal_NZ =  
| PregCat_US = }}
+
| Legal_NZ_comment =  
| Section6 = {{Chembox Explosive
+
| Legal_US = Rx-only
| ShockSens =  
+
| Legal_US_comment =  
| FrictionSens =  
+
| Legal_UK =  
| ExplosiveV =  
+
| Legal_UK_comment =  
| REFactor = }}
+
| Legal_EU =  
 +
| Legal_EU_comment = 
 +
| Legal_UN =
 +
| Legal_UN_comment =
 +
| Pregnancy_category =
 +
| Pregnancy_AU =
 +
| Pregnancy_AU_comment =
 +
| Pregnancy_US =
 +
| Pregnancy_US_comment =
 +
| ProteinBound =
 +
| Dependence_liability =
 +
| Addiction_liability =
 +
  }}
 
| Section7 = {{Chembox Hazards
 
| Section7 = {{Chembox Hazards
|   ExternalMSDS =  
+
| AutoignitionPt =  
|   EUClass =  
+
| ExploLimits =
|   EUIndex =  
+
| FlashPt =  
|   MainHazards =  
+
| LD50 =
|   NFPA-H =  
+
| LC50 =  
|   NFPA-F =  
+
| MainHazards =  
|   NFPA-R =  
+
| NFPA-F =  
|   NFPA-O =  
+
| NFPA-H =  
|   RPhrases =
+
| NFPA-R =  
|  SPhrases =  
+
| NFPA-S =  
|   RSPhrases =  
+
| PEL =  
|   FlashPt =  
+
| REL =  
|   Autoignition =  
+
| ExternalSDS =  
|   ExploLimits =  
+
| GHSPictograms =  
|   LD50 =
+
| GHSSignalWord =  
|   PEL =  
+
| HPhrases =  
 +
| PPhrases =  
 
   }}
 
   }}
| Section8 = {{Chembox Related
+
| Section9 = {{Chembox Related
|   OtherAnions =  
+
| OtherAnions =  
|   OtherCations =  
+
| OtherCations =  
|   OtherFunctn =  
+
| OtherFunction =  
|   Function =  
+
| OtherFunction_label =  
|   OtherCpds =  
+
| OtherCompounds =  
 
   }}
 
   }}
 
}}
 
}}
 
</pre>
 
</pre>
|
+
| {{Pre2|scroll|2=
<pre>
+
.
Template name
+
Reference, use {{tag|ref}} and add {{tag|references|e}} to the page
* title (default: article name)
 
* filename.svg (not [[image:filename.svg]]
 
* picture size (example: ImageSize=100px, default=200px)
 
* Picture caption (example: Oxygen in liquid form)
 
  
 +
Title (default: article name)
 +
IUPAC name
 +
The prefered name
 +
The systematic name(s)
 +
Any other name(s)
 +
.
 +
.
 +
.
 +
.
 +
.
 +
A non-default data page name (default, eg for ammonia: "<nowiki>[[Ammonia (data page)]]</nowiki>")
  
 +
Like filename.svg (not &#x5b;&#x5b;file:filename.svg&#x5d;&#x5d;)
 +
Picture width (default=220px; example: ImageSize=100px)
 +
Alt text for picture (example: Fine dry white powder)
 +
Image link title
 +
Picture caption (example: Oxygen in liquid form)
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
 +
.
  
 +
{{tl|Chembox Identifiers}}
  
 +
Any abbreviations
  
 +
CAS Number, links to eMolecules
  
  
 +
ChEBI, links to EBI
  
 +
EINECS, links to ecb; URL is http://ecb.jrc.it/esis/index.php?GENRE=ECNO&ENTREE=
 +
EINECS, links to ecb, different URL http://ecb.jrc.it/esis/index.php?GENRE=CASNO&ENTREE=
  
  
 +
InChI, no link
 +
KEGG, links to genome.ad.jp
 +
Medical Subject Headings, links to NIH
 +
PubChem, links to pubchem
 +
RTECS, no link
 +
SMILES, no link
  
 +
<br/>{{tl|Chembox Properties}}: physical properties
 +
Atmospheric OH rate constant
 +
Its appearance
 +
Boiling point description; optional. E.g. "Decomposes at"
 +
Temperature, number only. Can be a range: '100 to 200'<br/><br/>Notes on boiling point
 +
Density, including unit
 +
The molecular formula
 +
Henry's law constant (kH)
 +
Partition coefficient
 +
Molecular weight, including unit
 +
Melting point description; optional. E.g. "Decomposes at"
 +
Temperature, number only. Can be a range: '100 to 200'<br/><br/>Notes on melting point
 +
pKa
 +
pKb
 +
Solubility in water
 +
Solubility in other solvents, goes together with next
 +
In which solvent it is soluble
 +
Vapor pressure
  
 +
{{tl|Chembox Structure}}: crystal structure
 +
Coordination
 +
Crystal structure
 +
Molecular shape
  
 +
{{tl|Chembox Thermochemistry}}
 +
Delta Gf
 +
Delta Hc
 +
Delta Hf
 +
Entropy
 +
Heat capacity
  
 +
{{tl|Chembox Explosive}}
 +
[[Shock sensitivity]]
 +
[[Friction sensitivity]]
 +
[[Explosive velocity]]
 +
[[Relative effectiveness factor]]
  
 +
{{tl|Chembox Pharmacology}}: drug data
 +
ATCvet=yes if the next two parameters define an ATCvet code
 +
ATCCode prefix (first three characters, omit the leading Q for ATCvet codes), internal link
 +
ATCCode suffix (last 4 characters), full ATC links to WHO C.C.
 +
Other ATC codes (use the {{tl|ATC}} and/or {{tl|ATCvet}} templates)
 +
Admin Routes
 +
Bioavailability
 +
Excretion
 +
Half Life
 +
Metabolism
 +
Legal status
 +
Legal status in AU
  
 +
Legal status in CA
  
 +
Legal status in NZ
  
 +
Legal status in US
  
 +
Legal status in UK
  
 +
Legal status in EU
  
* the IUPAC name
+
Legal status in UN
* the systematic name
 
* any other name
 
Section Identifiers: Standard numbers etc.
 
* any abbreviations
 
* CAS Number, links to eMolecules
 
  
 +
Pregnancy Category
 +
Pregnancy Category in AU
  
 +
Pregnancy Category in US
  
* PubChem, links to pubchem
+
Protein Bound
* EINECS, links to ecb; URL is http://ecb.jrc.it/esis/index.php?GENRE=ECNO&ENTREE=
 
  
* also EINECS, but URL is http://ecb.jrc.it/esis/index.php?GENRE=CASNO&ENTREE=
 
  
  
* KEGG, links to genome.ad.jp
+
{{tl|Chembox Hazards}}
 +
Autoignition temperature
 +
Explosion limits
 +
Flash point
 +
LD50
 +
LC50
 +
Main hazards
 +
[[NFPA 704|NFPA]]-F: Fire hazard 0&ndash;4 ([[NFPA 704#red|red]])
 +
NFPA-H: Health hazard 0&ndash;4 ([[NFPA 704#blue|blue]])
 +
NFPA-R: Reactivity hazard 0&ndash;4 ([[NFPA 704#yellow|yellow]])
 +
NFPA-S: Special hazards (aka Other; [[NFPA 704#white|white]]): W, OX, COR, ALK, ACID, CRYO, RA
 +
PEL
  
* ChEBI, links to EBI
+
URL for [[Safety data sheet]]
* RTECS, no link
 
* ATCvet=yes if the next two parameters define an ATCvet code
 
* ATCCode prefix (first three characters, omit the leading Q for ATCvet codes), internal link
 
* ATCCode suffix (last 4 characters), full ATC links to WHO C.C.
 
* Other ATC codes (use the {{ATC}} and/or {{ATCvet}} templates)
 
* SMILES, no link
 
* InChI, no link
 
  
* Medical Subject Headings, links to NIH
 
  
 +
HPhrases: use the {{tl|H-phrases}} template for this
 +
PPhrases: use the {{tl|P-phrases}} template for this
  
 +
{{tl|Chembox Related}}: related substances
 +
Other anions
 +
Other cations
 +
Other compounds with a given function
 +
The given function<br/>Other compounds: adds a chemical 'see also' section
  
Section Properties: Physical properties
 
* the molecular formula
 
* molecular weight, including unit
 
* Its appearance
 
* Density, including unit.
 
* Melting Point, including unit.
 
* Notes on melting point.
 
* Boiling Point, including unit.
 
* Notes on boiling point.
 
* Solubility in water
 
* Solubility in other solvents, goes together with next
 
* In which solvent it is soluble
 
* Partition coefficient
 
* Vapor pressure
 
* Henry's law constant (kH)
 
* Atmospheric OH rate constant
 
* pKa
 
* pKb
 
  
Section Structure: Crystal structure information
+
}}
* Crystal Structure
 
* Coordination
 
* Molecular Shape
 
Section Thermochemistry: Thermochemical properties
 
* Delta Hf
 
* Delta Hc
 
* Entropy
 
* Heat Capacity
 
Section Pharmacology: Pharmacology/drug data
 
* Admin Routes
 
* Bioavailability
 
* Metabolism
 
* Half Life
 
* Protein Bound
 
* Excretion
 
* Legal status
 
* Legal status in US
 
* Legal status in UK
 
* Legal status in AU
 
* Legal status in CA
 
* Pregnacy Category
 
* Pregnacy Category in US
 
* Pregnacy Category in AU
 
Section Explosive: Explosive properties
 
* Shock Sensitivity
 
* Friction Sensitivity
 
* Explosive speed
 
* RE Factor
 
Section Hazards: Hazards
 
* URL for [[Material Safety Data Sheet
 
* EU Class
 
* EU Index
 
* Main Hazards
 
* NFPA-H: Health
 
* NFPA-F: Fire
 
* NFPA-R: Reactivity
 
* NFPA-O: one of the values W, OX, COR, ALK, ACID, CRYO, RA, or empty
 
* RPhrases: use the {{R}} template for this
 
* SPhrases: use the {{S}} template for this
 
* RSPhrases: or use the combination of the two above
 
* Flash Point
 
* Autoignition
 
* Explosion Limits
 
* LD50
 
* PEL
 
 
 
Section Related: Related compounds etc.
 
* Other Anions
 
* Other Cations
 
* Other Function: works with the next field
 
* Function: the function
 
* Other Compounds: chemical 'see also' section
 
 
 
-end
 
</pre>
 
 
|}
 
|}
  
==== Medium form ====
+
====Full form====
 
+
To use, simply copy and paste the left column into the document, and press save to get an empty Chembox:
To use, simply copy and paste the left column into the document, filling in whatever you can, or type <nowiki>{{subst:chembox subst medium}}</nowiki> and press save:
+
{{collapse top|title=Long parameter list for {{tl|Chembox}}|bg=lightgrey}}
 
+
{{hatnote|Sections parameter lists may be incomplete}}
 +
{{See also|Template:Chembox/doc/images|l1=More on images}}
 
{|
 
{|
|- valign=top
+
|- style="vertical-align:top;"
|  
+
|
<pre>
+
<pre style = "overflow: auto">
{{chembox
+
{{Chembox
| ImageFile =  
+
| Reference =  
| ImageSize =  
+
<!-- Names -->
 +
| Name =  
 
| IUPACName =  
 
| IUPACName =  
 +
| SystematicName =
 
| OtherNames =  
 
| OtherNames =  
 +
| data page pagename =
 +
<!-- Images -->
 +
| ImageFile =
 +
| ImageAlt =
 +
| ImageCaption =
 +
| ImageFile1 =
 +
| ImageAlt1 =
 +
| ImageCaption1 =
 +
| ImageFile2 =
 +
| ImageAlt2 =
 +
| ImageCaption2 =
 +
| ImageFile3 =
 +
| ImageAlt3 =
 +
| ImageCaption3 =
 +
| ImageFile4 =
 +
| ImageAlt4 =
 +
| ImageCaption4 =
 +
| ImageFileL1 =
 +
| ImageAltL1 =
 +
| ImageCaptionL1 =
 +
| ImageFileR1 =
 +
| ImageSizeR1 =
 +
| ImageAltR1 =
 +
| ImageCaptionR1 =
 +
| ImageFileL2 =
 +
| ImageAltL2 =
 +
| ImageCaptionL2 =
 +
| ImageFileR2 =
 +
| ImageSizeR2 =
 +
| ImageAltR2 =
 +
| ImageCaptionR2 =
 +
<!-- Style settings -->
 +
| width =
 +
<!-- Sections -->
 
| Section1 = {{Chembox Identifiers
 
| Section1 = {{Chembox Identifiers
 
| Abbreviations =  
 
| Abbreviations =  
 
| CASNo =  
 
| CASNo =  
 +
| CASNo_Comment =
 +
| CASNo_Ref =
 +
| CASNos =
 +
| CASOther =
 +
| PubChem =
 +
| PubChem_Comment =
 +
| PubChem5 =
 +
| PubChem5_Comment =
 +
| PubChemOther =
 +
| ChemSpiderID =
 +
| ChemSpiderID_Comment =
 +
| ChemSpiderID5 =
 +
| ChemSpiderIDOther =
 
| EINECS =  
 
| EINECS =  
| PubChem =  
+
| EC_number =  
| SMILES =  
+
| EC_number_Comment =  
| InChI =  
+
| UNNumber =  
| RTECS =
+
| DrugBank =  
| MeSHName =
 
| ChEBI =
 
 
| KEGG =  
 
| KEGG =  
| ATCvet =
+
| MeSHName =
 +
| ChEBI =
 +
| RTECS =
 +
| ATCvet =  
 
| ATCCode_prefix =  
 
| ATCCode_prefix =  
 
| ATCCode_suffix =  
 
| ATCCode_suffix =  
| ATC_Supplemental =}}
+
| ATC_Supplemental =
 +
| SMILES =
 +
| InChI =
 +
| Beilstein =
 +
| Gmelin =
 +
| 3DMet = }}
 
| Section2 = {{Chembox Properties
 
| Section2 = {{Chembox Properties
 
| Formula =  
 
| Formula =  
| MolarMass =
+
| MolarMass =  
| Appearance =
+
| Appearance =  
 
| Density =  
 
| Density =  
 
| MeltingPt =  
 
| MeltingPt =  
| Melting_notes =
+
| MeltingPt_notes =  
 
| BoilingPt =  
 
| BoilingPt =  
| Boiling_notes =  
+
| BoilingPt_notes =
 +
| LogP =
 +
| VaporPressure =
 +
| HenryConstant =
 +
| AtmosphericOHRateConstant =
 +
| pKa =
 +
| pKb =  
 
| Solubility =  
 
| Solubility =  
 
| SolubleOther =  
 
| SolubleOther =  
 
| Solvent =  
 
| Solvent =  
| pKa =  
+
| Sheet Resistance =  
| pKb = }}
+
| Methacrylate Equiv Wt =  
 +
| Bulk Conductivity =
 +
  }}
 +
| Section3 = {{Chembox Structure
 +
| CrystalStruct =
 +
| Coordination =
 +
| MolShape =
 +
  }}
 +
| Section4 = {{Chembox Thermochemistry
 +
| DeltaGf =
 +
| DeltaHc =
 +
| DeltaHf =
 +
| Entropy =
 +
| HeatCapacity =
 +
  }}
 +
| Section5 = {{Chembox Pharmacology
 +
| AdminRoutes =
 +
| Bioavail =
 +
| Metabolism =
 +
| HalfLife =
 +
| ProteinBound =
 +
| Excretion =
 +
| legal_status =
 +
| legal_AU =
 +
| legal_AU_comment =
 +
| legal_CA =
 +
| legal_CA_comment =
 +
| legal_NZ =
 +
| legal_NZ_comment =
 +
| legal_US =
 +
| legal_US_comment =
 +
| legal_UK =
 +
| legal_UK_comment =
 +
| legal_EU =
 +
| legal_EU_comment =
 +
| legal_UN =
 +
| legal_UN_comment =
 +
| pregnancy_category =
 +
| pregnancy_AU =
 +
| pregnancy_AU_comment =
 +
| pregnancy_US =
 +
| pregnancy_US_comment =
 +
  }}
 +
| Section6 = {{Chembox Explosive
 +
| ShockSens =
 +
| FrictionSens =
 +
| ExplosiveV =
 +
| REFactor =
 +
  }}
 
| Section7 = {{Chembox Hazards
 
| Section7 = {{Chembox Hazards
| ExternalMSDS =
 
| EUClass =
 
| EUIndex =
 
 
| MainHazards =  
 
| MainHazards =  
 +
| NFPA-F =
 
| NFPA-H =  
 
| NFPA-H =  
| NFPA-F =
 
 
| NFPA-R =  
 
| NFPA-R =  
| NFPA-O =
+
| NFPA-S =  
| RPhrases =  
+
| ExternalSDS =  
| SPhrases =  
+
| GHSPictograms =  
| RSPhrases =
+
| GHSSignalWord =
 +
| HPhrases =
 +
| PPhrases =  
 
| FlashPt =  
 
| FlashPt =  
 
| Autoignition =  
 
| Autoignition =  
 
| ExploLimits =  
 
| ExploLimits =  
| PEL = }}
+
| LD50 =
 +
| PEL =  
 +
  }}
 +
| Section8 = {{Chembox Related
 +
| OtherAnions =
 +
| OtherCations =
 +
| OtherFunction_label =
 +
| OtherFunction =
 +
| OtherCompounds =
 +
  }}
 
}}
 
}}
 
</pre>
 
</pre>
 
|
 
|
<pre>
+
<div style = "overflow: auto">
Template name
+
Chembox: Template name
* filename.svg (not [[image:filename.svg]]
+
*Name: title above the box (DEFAULT: article name)
* picture size (example: ImageSize=100px, default=200px)
+
*filename.svg ('''not''' <nowiki>[[image:filename.svg]]</nowiki>
* the official name
+
*picture size (example: ImageSize = 100px, default = 200px)
* any other name
+
*alt text for picture (example: Fine dry white powder)
Section Identifiers: Standard numbers etc.
+
*Picture caption (example: Oxygen in liquid form)
* any abbreviations
 
* CAS Number, links to eMolecules
 
* EINECS, links to ecb
 
* PubChem, links to pubchem
 
* SMILES, no link
 
* InChI, no link
 
* RTECS, no link
 
* Medical Subject Headings, links to NIH
 
* ChEBI, links to EBI
 
* KEGG, links to genome.ad.jp
 
* ATCvet=yes if the next two parameters define an ATCvet code
 
* ATCCode prefix (first three characters,
 
    omit the leading Q for ATCvet codes), internal link
 
* ATCCode suffix (last 4 characters), full ATC links to WHO C.C.
 
* Other ATC codes (use the {{ATC}} and/or {{ATCvet}} templates)
 
Section Properties: Physical properties
 
* the molecular formula
 
* molecular weight, including unit
 
* Its appearance
 
* Density, including unit.
 
* Melting Point, including unit.
 
* Notes on melting point.
 
* Boiling Point, including unit.
 
* Notes on boiling point.
 
* Solubility in water
 
* Solubility in other solvents, goes together with next
 
* In which solvent it is soluble
 
* pKa
 
* pKb
 
Section Hazards: Hazards
 
* URL for Material Safety Data Sheet
 
* EU Class
 
* EU Index
 
* Main Hazards
 
* NFPA-H: Health
 
* NFPA-F: Fire
 
* NFPA-R: Reactivity
 
* NFPA-O: one of the values W, OX, COR, ALK, ACID, CRYO, RA, or empty
 
* RPhrases: use the {{R}} template for this
 
* SPhrases: use the {{S}} template for this
 
* RSPhrases: or use the combination of the two above
 
* Flash Point
 
* Autoignition
 
* Explosion Limits
 
* PEL
 
-end
 
</pre>
 
|}
 
  
==== Advanced fields in main template ====
+
*the IUPAC name
 +
*hide IUPAC name if very long; show-button is displayed
 +
*the systematic name
 +
*any other name
 +
*reference; include <nowiki><ref> </ref></nowiki>s, add <nowiki><references/></nowiki> to the page
 +
'''Section Identifiers:''' Standard numbers, etc.
 +
*any abbreviations
 +
*CAS Number: links to eMolecules
 +
**http://www.commonchemistry.org/
  
There are some extra fields available:
+
*PubChem: links to https://pubchem.ncbi.nlm.nih.gov;
 +
**up to 5 numbers
 +
*PubChem_Comment: comment at the number
 +
*PubChemOther: for other information
  
 +
*ChemSpider: links to http://www.chemspider.com; up to 5 numbers
  
{|
+
*EINECS: links to ecb; URL is http://ecb.jrc.it/esis/index.php?GENRE = ECNO&ENTREE =  
|- valign=top
+
*also EINECS, but URL is http://ecb.jrc.it/esis/index.php?GENRE = CASNO&ENTREE =
|
 
<pre>
 
| Reference =
 
</pre>
 
|
 
<pre>
 
* Can be used for a reference, include <ref> </ref>s with
 
    the reference, and add a <references/> to the document.
 
</pre>
 
|}
 
  
=== Advanced and explanations ===
+
*KEGG: links to genome.ad.jp
 +
*Medical Subject Headings: links to NIH
 +
*ChEBI: links to EBI
 +
*RTECS: no link
 +
*ATCvet = yes if the next two parameters define an ATCvet code
 +
*ATCCode prefix (first three characters, omit the leading Q for ATCvet codes), internal link
 +
*ATCCode suffix (last 4 characters), full ATC links to WHO C.C.
 +
*Other ATC codes (use the {{tl|ATC}} and/or {{tl|ATCvet}} templates)
 +
*SMILES: no link
 +
*InChI: no link
  
==== "Table creep" ====
+
'''Section Properties:''' Physical properties
 +
*the molecular formula
 +
*molecular weight, including unit
 +
*Its appearance
 +
*Density, including unit
 +
*Melting Point, including unit
 +
*Notes on melting point
 +
*Boiling Point, including unit
 +
*Notes on boiling point
 +
*Partition coefficient
 +
*Vapor pressure
 +
*Henry's law constant (kH)
 +
*Atmospheric OH rate constant
 +
*pKa
 +
*pKb
  
The chembox new can handle a lot of parameters, and new ones can easily be added (even more than are shown in the full format).  This may result in huge tables in the end.  When the table becomes too big, please consider creating a data page 'pagename (data page)', and moving data into that page. Chembox new will automagically recognise the existence of the data page, a new box will show, which will have some links into the data page.
+
*Sheet Resistance
 +
*Methacrylate Equiv Wt
 +
*Bulk Conductivity
 +
'''Section Structure:''' Crystal structure information
 +
*Crystal Structure
 +
*Coordination
 +
*Molecular Shape
 +
'''Section Thermochemistry:''' Thermochemical properties
 +
*Delta Gf
 +
*Delta Hc
 +
*Delta Hf
 +
*Entropy
 +
*Heat Capacity
 +
'''Section Pharmacology:''' Pharmacology/drug data
 +
*Admin Routes
 +
*Bioavailability
 +
*Metabolism
 +
*Half Life
 +
*Protein Bound
 +
*Excretion
 +
*Legal status
 +
*Legal status in US
 +
*Legal status in UK
 +
*Legal status in AU
 +
*Legal status in CA
 +
*Pregnancy Category
 +
*Pregnancy Category in US
 +
*Pregnancy Category in AU
 +
'''Section Explosive:''' Explosive properties
 +
*Shock Sensitivity
 +
*Friction Sensitivity
 +
*Explosive speed
 +
*RE Factor
 +
'''Section Hazards:''' Hazards
 +
*URL for [[Safety Data Sheet]]
 +
*EU Index
 +
*Main Hazards
 +
*NFPA-F: [[NFPA 704#red|NFPA 704]] Fire hazard 0&ndahs;4 (red)
 +
*NFPA-H: [[NFPA 704#blue|NFPA 704]] Health hazard 0&ndahs;4 (blue)
 +
*NFPA-R: [[NFPA 704#yellow|NFPA 704]] Reactivity hazard 0&ndahs;4 (yellow)
 +
*NFPA-O: [[NFPA 704#white|NFPA 704]] Other hazards: W, OX, COR, ALK, ACID, CRYO, RA (white)
 +
*HPhrases: use the {{tl|H-phrases}} template for this
 +
*PPhrases: use the {{tl|P-phrases}} template for this
 +
*Flash Point
 +
*Autoignition
 +
*Explosion Limits
 +
*LD50
 +
*PEL
 +
'''Section Supplement:''' Separate data page
 +
*data page pagename
 +
'''Section Related:''' Related compounds, etc.
 +
*Other Anions
 +
*Other Cations
 +
*Other Function: works with the next field
 +
*Function: the function
 +
*Other Compounds: chemical 'see also' section
 +
-end
 +
</div>
 +
|}
 +
{{collapse bottom}}
  
==== Field order ====
+
====Indexed parameters====
 +
<div style="float:right;">
 +
<pre>
 +
| CASNo =
 +
| CASNo1 =
 +
| CASNo2 =
 +
| CASNo3 =
 +
| CASNo4 =
 +
| CASNo5 =
 +
| CASNoOther =
 +
</pre>
  
The order of the parameters in this template does not have any effect on the final layout of the template, that order is either programmed in this template (for the top section) or in the following subtemplates:
+
{{collapse top| title=Indexed parameters| bg=#ddd}}
* {{tl|Chembox Identifiers}}
+
Overview<br/>(index numbers 2-3-4 omitted):
* {{tl|Chembox Properties}}
+
<pre>
* {{tl|Chembox Structure}}
+
| CASNo =
* {{tl|Chembox Thermochemistry}}
+
| CASNo1 =
* {{tl|Chembox Pharmacology}}
+
| CASNo5 =
* {{tl|Chembox Explosive}}
+
| CASNoOther =
* {{tl|Chembox Hazards}}
+
| ChEBI =
* {{tl|Chembox Related}}
+
| ChEBI1 =
 +
| ChEBI5 =
 +
| ChEBIOther =
 +
| ChEMBL =
 +
| ChEMBL1 =
 +
| ChEMBL5 =
 +
| ChEMBLOther =
 +
| ChemSpiderID =
 +
| ChemSpiderID1 =
 +
| ChemSpiderID5 =
 +
| ChemSpiderIDOther =
 +
| DrugBank =
 +
| DrugBank1 =
 +
| DrugBank5 =
 +
| DrugBankOther =
 +
| InChI =
 +
| InChI1 =
 +
| InChI5 =
 +
| InChIOther =
 +
| KEGG =
 +
| KEGG1 =
 +
| KEGG5 =
 +
| KEGGOther =
 +
| PubChem =
 +
| PubChem1 =
 +
| PubChem5 =
 +
| PubChemOther =
 +
| SMILES =
 +
| SMILES1 =
 +
| SMILES5 =
 +
| SMILESOther =
 +
| UNII =
 +
| UNII1 =
 +
| UNII5 =
 +
| UNIIOther =
 +
| 3DMet=
 +
| 3DMet1=
 +
| 3DMet5=
 +
| 3DMetOther=
 +
| EC_number1=
 +
| EC_number5=
 +
| EC_numberOther=
 +
| RTECS1=
 +
| RTECS5=
 +
| RTECSOther=
 +
</pre>
 +
{{collapse bottom}}
 +
</div>
 +
Indexed parameters take indexes 'blank',&nbsp;1&ndash;5 (six options together). They should have straight input, such as a correct CAS Registry Number.
  
And the hidden template:
+
*Eight base parameters are indexed this way, all identifiers:
* {{tl|Chembox Supplement}} (only visible when 'pagename (data page)' exists)
+
:<code>CASNo, ChEBI, ChEMBL, ChemSpiderID, DrugBank, InChI, KEGG, PubChem, SMILES, UNII, 3DMet, EC_number, RTECS</code>
  
The order of the sections can be changed by changing the numbering of the headings 'Section# = {{chembox section'.  This has to be done with some care.  Sections that are really without use can be safely removed, renumbering is not necessary.
+
*Then {{para|_Other}} (like {{para|CASNoOther}}) is available for free text input.
  
==== Extra sections/fields ====
+
=====same substance, same index=====
 +
When the chembox has multiple substances, you can ''use the index''. Make sure that {{para|CASNo3}} and {{para|SMILES3}} are about the same substance, and {{para|CASNo3}} and {{para|SMILES2}} are ''not''. Treat index "0" the same way:
 +
:{{para|CASNo}} is {{para|InChI}} is {{para|SMILES}}
 +
:{{para|CASNo1}} is {{para|InChI1}} is {{para|SMILES1}}
 +
:{{para|CASNo}} is ''not'' {{para|InChI1}} is ''not'' {{para|SMILES4}}
 +
{{clear}}
 +
=====Labeling the substances=====
 +
By using a parameter like {{para|index2_label}}, you can prefix every #2-input with that same prefix.
 +
<div style="float:left;">
 +
<syntaxhighlight lang="moin">
 +
{{chembox
 +
| Name=[[Linalool]]
 +
|Section1={{Chembox Identifiers
 +
| index_label    =
 +
| index1_label  = (''R'')
 +
| index2_label  = (''S'')
 +
| index_comment  = (+/-)-linalool
 +
| index1_comment = (-)-linalool
 +
| index2_comment = (+)-linalool
 +
| CASNo    = 78-70-6
 +
| CASNo1  = 126-91-0
 +
| CASNo2  = 126-90-9
 +
| PubChem  = 6549
 +
| PubChem1 = 443158
 +
| PubChem2 = 67179
 +
  }}
 +
}}
 +
</syntaxhighlight></div>
 +
{{chembox
 +
| Name=[[Linalool]]
 +
| show_footer=no
 +
|Section1={{Chembox Identifiers
 +
| index_label=
 +
| index1_label= (''R'')
 +
| index2_label= (''S'')
 +
| index_comment=(+/-)-linalool
 +
| index1_comment= (-)-linalool
 +
| index2_comment=(+)-linalool
 +
| CASNo = 78-70-6
 +
| CASNo1 = 126-91-0
 +
| CASNo2 = 126-90-9
 +
| PubChem = 6549
 +
| PubChem1 = 443158
 +
| PubChem2 = 67179
 +
| testQID= Q410932
 +
  }}
 +
}}
 +
{{clear}}
 +
<div style="float:right;">
 +
<pre>
 +
| CASNo_Comment =
 +
| CASNo1_Comment =
 +
| CASNo5_Comment =
 +
</pre></div>
 +
*For specific additions, each parameter has a {{para|_Comment}} option.
 +
{{clear}}
  
The setup of the chembox new is modular, one can easily incorporate other boxes in the chembox, by adding a section.  The following sections are available (see these templates for more explanation):
+
====Section subtemplates====
 +
The following section subtemplates are available:
 +
*{{tl|Chembox Identifiers}}
 +
*{{tl|Chembox Properties}}
 +
*{{tl|Chembox Structure}}
 +
*{{tl|Chembox Thermochemistry}}
 +
*{{tl|Chembox Explosive}}
 +
*{{tl|Chembox Pharmacology}}
 +
*{{tl|Chembox Hazards}}
 +
*{{tl|Chembox Related}}
 +
And the automated section, that is visible when 'pagename (data page)' exists:
 +
*{{tl|Chembox Supplement}}
 +
See these subsections for their parameter options.
  
* {{tl|Chembox Identifiers}}
+
The ''order'' of these sections in the infobox is set by the ''section number'' ({{para|Section#}}) only. Not by the typed sequence. This documentation keeps this arbitrary order:
* {{tl|Chembox Properties}}
+
<pre>
* {{tl|Chembox Structure}}
+
| Section1 = {{Chembox Identifiers}}
* {{tl|Chembox Thermochemistry}}
+
| Section2 = {{Chembox Properties}}
* {{tl|Chembox Pharmacology}}
+
| Section3 = {{Chembox Structure}}
* {{tl|Chembox Explosive}}
+
| Section4 = {{Chembox Thermochemistry}}
* {{tl|Chembox Hazards}}
+
| Section5 = {{Chembox Explosive}}
* {{tl|Chembox Related}}
+
| Section6 = {{Chembox Pharmacology}}
 +
| Section7 = {{Chembox Hazards}}
 +
| Section9 = {{Chembox Related}}
 +
</pre>
 +
Sections that are not used can be safely removed, renumbering is not necessary.
  
Besides the fields that have been defined in the two forms above, there are many other fields available.  In this template those are extra image fields (described below), in the separate sections there are also more fields available.  For a full list of available fields see the different section templates.
+
====Container only====
  
==== Parameter display ====
+
{{tlf|Chembox}} can be used to show a subsection only, for example {{code|1=<nowiki>Section3={{Chembox Hazards|...}}</nowiki>}}. When set {{para|container_only|yes}}: The main {{tlf|Chembox}} is not tracked at all (image checks, bot validation categories, etc.), and the Footer (with STP notice) is suppressed. Example: [[Bromine#Biological role and toxicity]]. The article will be listed in {{clc|Category:Chembox container only}}.
  
Except for the more complicated parameters, the display of most parameters is controlled by their own template.  This template creates the actual row (if it is displayed is controlled by the section template).
+
==Adding images==
 +
{{Further|Template:Chembox/doc/images}}
 +
===Parameters===
 +
Image parameters for the first images:
 +
<syntaxhighlight lang="xml">
 +
{{Chembox
 +
<!-- Other chembox parameters can go here -->
 +
<!-- Row 1/7 -->
 +
| ImageFile =
 +
| ImageName =
 +
| ImageSize =
 +
| ImageAlt =
 +
| ImageCaption =
 +
| ImageFile_Ref =
 +
<!-- Row 2/7 -->
 +
| ImageFile1 =
 +
| ImageName1 =
 +
| ImageSize1 =
 +
| ImageAlt1 =
 +
| ImageCaption1 =
 +
| ImageFile1_Ref =
 +
<!-- Row 3/7 -->
 +
| ImageFileL1 =
 +
| ImageNameL1 =
 +
| ImageSizeL1 =
 +
| ImageAltL1 =
 +
| ImageCaptionL1 =
 +
| ImageFileL1_Ref =
  
Example:
+
| ImageFileR1 =
* The parameter "CASNo" -> {{tl|Chembox CASNo}}
+
| ImageNameR1 =
* The parameter "MolarMass" -> {{tl|Chembox MolarMass}}
+
| ImageSizeR1 =
* The combination of the parameters ATCCode/ATCvet/ATCCode_prefix/ATCCode_suffix/ATCCode_supplemental are controlled by {{tl|Chembox ATCCode}}
+
| ImageAltR1 =
 +
| ImageCaptionR1 =
 +
| ImageFileR1_Ref =
  
==== Auto images ====
+
| ImageCaptionL1R1 =  
 +
<!-- More chembox parameters can go here, like |Section1=... -->
 +
}}</syntaxhighlight>
 +
{{clear}}
  
If there is an image available with the name of the page, that will automagically be used in the template when no other image name is supplied. The order of preference is:
+
===Examples===
 +
Image parameters for an image (example: File1). All are optional.
  
# If an imagename is supplied in any of the 8 imagefields in the chembox new, then the automatic image will NOT be used.
+
{{Chembox
# otherwise, 'pagename.svg' will be used if available
+
| ImageFile1 = Furfural.svg
# otherwise, 'pagename.png' will be used if available
+
| ImageAlt1 = Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
# otherwise, 'pagename.gif' will be used if available
+
| ImageName1 =
# otherwise, 'pagename.jpg' will be used if available
+
| ImageCaption1 = A caption shows here
# otherwise, if there is no image available, the document will be autocategorised in [[:Category:Chemical pages needing a structure drawing]] (handled by chemistry, image request)
+
| ImageSize1 =
 
+
| ImageFile1_Ref =
The size of the automagic images is defaulted to 200px, but can be set with the parameter ImageSize.
+
| show_footer=no<!-- set for documentation simplicity -->
 
+
}}
==== Extra images ====
+
<pre style="overflow: auto">
 
+
{{Chembox
The chembox comes standard with one image 'ImageFile' (with a size parameter 'ImageSize').  For certain chemicals more pictures are needed, for which the parameters 'ImageFile1', 'ImageFile2', and 'ImageFile3' are available (each has his own Size-parameter 'ImageSize1', 'ImageSize2', and 'ImageSize3').  The default size for the pictures is set to 200px, normally the ImageSize does not have to be supplied. So a header could look like this:
+
| ImageFile1 = Furfural.svg
 
+
| ImageAlt1 = Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
 
+
| ImageName1 =
{|
+
| ImageCaption1 = A caption shows here
|- valign=top
+
| ImageSize1 =  
|
+
| ImageFile1_Ref =ref
<pre>
+
}}
{{chembox
+
</pre>
| ImageFile = Furfural structure.png
+
{{clear}}
| ImageSize = 100px
+
Adding two images:
 +
{{Chembox
 +
| ImageFile = Furfural.svg
 +
| ImageAlt = Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
 +
| ImageFile1 = Furfural-3D-vdW.png
 +
| ImageAlt1 = 3D filled-sphere model of the same molecule
 +
| show_footer=no<!-- set for documentation simplicity -->
 +
}}
 +
<pre style="overflow: auto">
 +
{{Chembox
 +
| ImageFile = Furfural.svg
 +
| ImageAlt = Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
 
| ImageFile1 = Furfural-3D-vdW.png
 
| ImageFile1 = Furfural-3D-vdW.png
| ImageSize1 = 150px
+
| ImageAlt1 = 3D filled-sphere model of the same molecule
| IUPACName = example
+
}}
...
 
 
</pre>
 
</pre>
|
 
{{chembox
 
| ImageFile = Furfural structure.png
 
| ImageSize = 100px
 
| ImageFile1 = Furfural-3D-vdW.png
 
| ImageSize1 = 150px
 
| IUPACName = example}}
 
|}
 
  
 
This gives two images, each image on his own row (note, ImageFile is the first image, ImageFile1 is the second).
 
This gives two images, each image on his own row (note, ImageFile is the first image, ImageFile1 is the second).
 
+
{{clear}}
For some chemicals pictures can be really small, and then a side-by-side display is often nicer.  Chembox new provides two rows which each can contain two images.  For these there are the parameters 'ImageFileL1' and 'ImageFileR1' (left and right) for the first row, and 'ImageFileL1' and 'ImageFileR1' for row 2.  Each has again his own size-parameter 'ImageSizeL1', 'ImageSizeR1', 'ImageSizeL2', and 'ImageSizeR2'. The header now looks like:
+
Adding two images, side by side (L1 and R1):
 
+
{{Chembox
 
+
| ImageFileL1 = Furfural.svg
{|
+
| ImageAltL1 = Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
|- valign=top
+
| ImageFileR1 = Furfural-3D-vdW.png
|
+
| ImageAltR1 = 3D filled-sphere model of the same molecule
<pre>
+
| show_footer=no<!-- set for documentation simplicity -->
{{chembox
+
}}
| ImageFileL1 = Furfural structure.png
+
<pre style="overflow: auto">
| ImageSizeL1 =  
+
{{Chembox
 +
| ImageFileL1 = Furfural.svg
 +
| ImageAltL1 = Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
 
| ImageFileR1 = Furfural-3D-vdW.png
 
| ImageFileR1 = Furfural-3D-vdW.png
| ImageSizeR1 =  
+
| ImageAltR1 = 3D filled-sphere model of the same molecule
| IUPACName = example
+
}}
...
 
 
</pre>
 
</pre>
|
 
{{chembox
 
| ImageFileL1 = Furfural structure.png
 
| ImageSizeL1 =
 
| ImageFileR1 = Furfural-3D-vdW.png
 
| ImageSizeR1 =
 
| IUPACName = example }}
 
|}
 
  
This gives one row with two images. Note that ImageFile is now not supplied.
+
This gives one row with two images. Note that ImageFile is now not supplied.
 +
{{clear}}
  
Combinations are also possible, the order in the template is: 'ImageFile', 'ImageFile1', 'ImageFileL1', 'ImageFileR1', 'ImageFile2', 'ImageFile3', 'ImageFileL2', 'ImageFileR2'.  This gives the possibility to play a bit with which image is first (rows with empty parameters are not displayed). Example:
+
===Multiple images===
 +
{{Further|Template:Chembox/doc/images}}
 +
{{Chembox/doc/image-ordering}}
  
 +
This gives the possibility to play a bit with which image is first (rows with empty parameters are not displayed). Example:
  
{|
+
{{Chembox
|- valign=top
+
| ImageFileL1 = Furfural.svg
|
 
<pre>
 
{{chembox
 
| ImageFileL1 = Furfural structure.png
 
 
| ImageSizeL1 =  
 
| ImageSizeL1 =  
 +
| ImageAltL1 = Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
 
| ImageFileR1 = Furfural-3D-vdW.png
 
| ImageFileR1 = Furfural-3D-vdW.png
| ImageSizeR1 =  
+
| ImageAltR1 = 3D filled-sphere model of the same molecule
 
| ImageFile2 = Water droplet blue bg05.jpg
 
| ImageFile2 = Water droplet blue bg05.jpg
| ImageSize2 =  
+
| ImageAlt2 = Water droplet erupting from the center of a concentric ring of ripples, evidently in response to a drop landing in the water just before
 
| IUPACName = example
 
| IUPACName = example
...
+
| show_ss_note=no<!-- set for documentation clarity -->
</pre>
+
}}
|
+
<pre style="overflow: auto">
{{chembox
+
{{Chembox
| ImageFileL1 = Furfural structure.png
+
| ImageFileL1 = Furfural.svg
| ImageSizeL1 =  
+
| ImageAltL1 = Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
 
| ImageFileR1 = Furfural-3D-vdW.png
 
| ImageFileR1 = Furfural-3D-vdW.png
 
| ImageSizeR1 =  
 
| ImageSizeR1 =  
 +
| ImageAltR1 = 3D filled-sphere model of the same molecule
 
| ImageFile2 = Water droplet blue bg05.jpg
 
| ImageFile2 = Water droplet blue bg05.jpg
| ImageSize2 =  
+
| ImageAlt2 = Water droplet erupting from the center of a concentric ring of ripples, evidently in response to a drop landing in the water just before
| IUPACName = example }}
+
| IUPACName = example
|}
+
}}
 +
</pre>
  
 
This gives one row with two images, and one row with one image.
 
This gives one row with two images, and one row with one image.
 +
{{clear}}
  
=== Troubleshooting ===
+
==Names==
 +
{{Template:Chembox/doc/names}}
  
* When supplying a parameter with a value, and nothing or the wrong value shows up, check:
+
===Example===
:* Is the parameter placed in the correct section?
+
{{Chembox
:* Is the parameter supplied twice?  It will use the value of the second instance
+
| Name=''cis''-3-Hexen-1-ol
:* Are the sections properly defined.  Sections start with <nowiki>| section# = {{chembox sectionname |" and end with "}}"</nowiki>.
+
| IUPACNames = A, B
:* Is there inconsistency in the sectionnumbering?  Available numbers for sections are 1 - 15, do not use a sectionnumber twice, that will only result in the second section showing up.
+
| PIN = PIN
:* Is the capitalisation of the parameter correct?  "Formula" works, "FORMULA" does not.
+
| SystematicName = SYS
 
+
| OtherNames = X<br/>Y<br/>Z
=== Adding a parameter ===
+
| show_footer=no
 +
}}
 +
<pre>
 +
{{Chembox
 +
| Name=''cis''-3-Hexen-1-ol
 +
| IUPACNames = A, B
 +
| PIN = PIN
 +
| SystematicName = SYS
 +
| OtherNames = X<br/>Y<br/>Z
 +
}}</pre>
 +
{{clear}}
  
To add a new parameter to the chembox:
+
==Input from Wikidata==
# Select the section the parameter has to go into, and select a unique parameter name in that section.
+
{{Sandbox other||{{#ifeq:{{PAGENAME}}|Chembox<!-- in top /documentation only -->
# Edit the section.
+
|<!--match-->{{Tracks Wikidata|P628|P2566|P3117|cat=Chemical compounds and Wikidata}}|<!--no match-->}}}}
# In the very first if-statement, add "<nowiki>{{{Yourparametername|}}}</nowiki>" to the list, this will make sure that when the parameter is supplied, the section will show.  If the new parameter is not in that list, but is the only parameter is not supplied in that section in a document, the section will not show.
+
[[E number]], [[ECHA|ECHA InfoCard ID]], {{para|DTXSID}} ([[CompTox Chemicals Dashboard]]) are read from Wikidata.
# Add a line for the parameter, follow the example of one of the other lines.
 
# Create a new template "chembox yourparametername", this template formats one complete row in the chembox new (it uses the normal format for a row in a wikitable).
 
  
==== Simple example ====
+
==Maintenance==
 +
===Troubleshooting===
 +
*When supplying a parameter with a value, and nothing or the wrong value shows up, check:
 +
:*Is the parameter placed in the correct section?
 +
:*Are the sections properly defined? Sections start with <nowiki>| Section# = {{Chembox sectionname |" and end with "}}"</nowiki>.
 +
:*Is there inconsistency in the Section numbering? Available numbers for sections are 1 &ndash; 9.
  
Adding 'LD50' to the {{tl|chembox Hazards}} is summarised in the following three edits:
+
===Tracking categories===
 +
*{{clc|Chembox tracking categories}}
 +
*{{clc|Chemical articles with unknown parameter in Chembox}}
  
# Add the field to the desired sub-box: [http://en.wikipedia.org/w/index.php?title=Template%3AChembox_Hazards&diff=169601161&oldid=161501926 diff]
+
==TemplateData==
##In the first line the field <nowiki>{{{LD50|}}}</nowiki> is added to the selection line. If one of the parameters in this line is supplied, the box appears (including the header), if all are empty, the box does not show at all. If this is omitted, the box does not appear if this is the only parameter that is supplied!
+
{{collapse top|title=[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools|bg=#ccc}}
##The second line is the addition of the line itself: <nowiki>{{Chembox entry|par_name={{#if:{{{LD50|}}}|LD50 }} |par_value={{#if:{{{LD50|}}}|{{{LD50}}} }} }}</nowiki>. The placing of the line determines the placing of the field in the box (the order of the fields). The variable 'par_name' determines the sub-box that is called, 'par_value' (and 'par_value1', 'par_value2', etc.) give the parameters to the display template (see 2)
+
{{TemplateData header|noheader=1}}
## Add the field to the example list for future reference.
+
<templatedata>
# Create the display template {{tl|Chembox LD50}}. As the chosen fieldname is 'LD50', the name of the display template is 'Chembox LD50'
+
{
## Contents: <br /><br /><nowiki>| [[Median lethal dose|LD<sub>50</sub>]]
+
"description": "An infobox for chemicals. It has a large number of options to add relevant data and images. The Chembox has a modular design. After the general information like the chemical name and images, it can be built from multiple sections, each covering a group of information (like \"pharmacology\"). Depending on the compound, sections can be added or left out, and within a section parameters can be added or omitted (left blank). Please see this template's page for full documentation.",
| {{{value}}}
+
"format": "{{_\n| ______________ = _\n}}\n",
|-<noinclude>[[Category:Chembox templates|{{PAGENAME}}]]</noinclude></nowiki><br /><br />(this is one line of a table, all other parts are determined by the other templates. Should have 2 columns (or otherwise be tweaked to appear as two columns)!  First column contains the name as displayed in the left column, the right column contains the formatting for the parameter; parameter is now named '<nowiki>{{{value}}}</nowiki>; further parameters are value1, value2 etc.).
+
"params": {
# Add the field to the main template for reference: [http://en.wikipedia.org/w/index.php?title=Template%3AChembox_new&diff=167186872&oldid=162798610 diff]
+
"width": {
 +
"label": "Width",
 +
"description": "The overall width of the box; the default is normally fine. Using the unit \"em\" helps the box scale for different font sizes.",
 +
"example": "22 em",
 +
"default": "22 em"
 +
},
 +
"style": {
 +
"label": "Custom CSS",
 +
"description": "Any additional CSS to apply to the box; see the width parameter to set the width."
 +
},
 +
"Name": {
 +
"label": "Name",
 +
"description": "Compound name for the chembox's title. Defaults to the page title.",
 +
"example": "Ethanoic acid",
 +
"type": "string",
 +
"default": "Page title.",
 +
"suggested": true
 +
},
 +
"Reference": {
 +
"label": "Title reference",
 +
"description": "A reference to be shown in the title. Use <ref> tags or equivalent, such as {{cite book}}.",
 +
"type": "content"
 +
},
 +
"Chembox_ref": {
 +
"label": "Title reference (2)",
 +
"description": "Equivalent to the title reference parameter; appears second if both are provided."
 +
},
 +
"ImageFile": {
 +
"label": "Image file (top row, full width)",
 +
"description": "An image file to display; omit \"File:\".",
 +
"type": "wiki-file-name",
 +
"suggested": true
 +
},
 +
"ImageFile1": {
 +
"label": "Image file (second row; full width)",
 +
"description": "An image file to display; omit \"File:\".",
 +
"type": "wiki-file-name"
 +
},
 +
"ImageFile2": {
 +
"label": "Image file (fourth row, full width)",
 +
"description": "An image file to display; omit \"File:\".",
 +
"type": "wiki-file-name"
 +
},
 +
"ImageFile3": {
 +
"label": "Image file (sixth row; full width)",
 +
"description": "An image file to display; omit \"File:\".",
 +
"type": "wiki-file-name"
 +
},
 +
"ImageFileL1": {
 +
"label": "Image file (third row, left half)",
 +
"description": "An image file to display; omit \"File:\".",
 +
"type": "wiki-file-name"
 +
},
 +
"ImageFileR1": {
 +
"label": "Image file (third row, right half)",
 +
"description": "An image file to display; omit \"File:\".",
 +
"type": "wiki-file-name"
 +
},
 +
"ImageFileL2": {
 +
"label": "Image file (fifth row, left half)",
 +
"description": "An image file to display; omit \"File:\".",
 +
"type": "wiki-file-name"
 +
},
 +
"ImageFileR2": {
 +
"label": "Image file (fifth row, right half)",
 +
"description": "An image file to display; omit \"File:\".",
 +
"type": "wiki-file-name"
 +
},
 +
"ImageFileL3": {
 +
"label": "Image file (seventh row, left half)",
 +
"description": "An image file to display; omit \"File:\".",
 +
"type": "wiki-file-name"
 +
},
 +
"ImageFileR3": {
 +
"label": "Image file (seventh row, right half)",
 +
"description": "An image file to display; omit \"File:\".",
 +
"type": "wiki-file-name"
 +
},
 +
"ImageName": {
 +
"label": "Image name (first row, full width)",
 +
"description": "If set, this is the title of the image; it appears if you hover over it.",
 +
"type": "string"
 +
},
 +
"ImageSize": {
 +
"label": "Image size (first row, full width)",
 +
"description": "Image width in pixels, with px suffix.",
 +
"example": "200px",
 +
"type": "string",
 +
"default": "220px"
 +
},
 +
"ImageAlt": {
 +
"label": "Image alt text (first row, full width)",
 +
"description": "The text description read out to users who cannot see the image.",
 +
"type": "string"
 +
},
 +
"ImageCaption": {
 +
"label": "Image caption (first row, full width)",
 +
"description": "Caption displayed below the image.",
 +
"type": "content"
 +
},
 +
"ImageFile_Ref": {
 +
"label": "Image reference (first row, full width)",
 +
"description": "A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.",
 +
"type": "content"
 +
},
 +
"ImageName1": {
 +
"label": "Image name (second row, full width)",
 +
"description": "If set, this is the title of the image; it appears if you hover over it.",
 +
"type": "string"
 +
},
 +
"ImageSize1": {
 +
"label": "Image size (second row, full width)",
 +
"description": "Image width in pixels, with px suffix.",
 +
"example": "200px",
 +
"type": "string",
 +
"default": "220px"
 +
},
 +
"ImageAlt1": {
 +
"label": "Image alt text (second row, full width)",
 +
"description": "The text description read out to users who cannot see the image.",
 +
"type": "string"
 +
},
 +
"ImageCaption1": {
 +
"label": "Image caption (second row, full width)",
 +
"description": "Caption displayed below the image.",
 +
"type": "content"
 +
},
 +
"ImageFile1_Ref": {
 +
"label": "Image reference (second row, full width)",
 +
"description": "A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.",
 +
"type": "content"
 +
},
 +
"ImageNameL1": {
 +
"label": "Image name (third row, left half)",
 +
"description": "If set, this is the title of the image; it appears if you hover over it.",
 +
"type": "string"
 +
},
 +
"ImageSizeL1": {
 +
"label": "Image size (third row, left half)",
 +
"description": "Image width in pixels, with px suffix.",
 +
"example": "200px",
 +
"type": "string",
 +
"default": "110px"
 +
},
 +
"ImageAltL1": {
 +
"label": "Image alt text (third row, left half)",
 +
"description": "The text description read out to users who cannot see the image.",
 +
"type": "string"
 +
},
 +
"ImageCaptionL1": {
 +
"label": "Image caption (third row, left half)",
 +
"description": "Caption displayed below the image.",
 +
"type": "content"
 +
},
 +
"ImageFileL1_Ref": {
 +
"label": "Image reference (third row, left half)",
 +
"description": "A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.",
 +
"type": "content"
 +
},
 +
"ImageNameR1": {
 +
"label": "Image name (third row, right half)",
 +
"description": "If set, this is the title of the image; it appears if you hover over it.",
 +
"type": "string"
 +
},
 +
"ImageSizeR1": {
 +
"label": "Image size (third row, right half)",
 +
"description": "Image width in pixels, with px suffix.",
 +
"example": "200px",
 +
"type": "string",
 +
"default": "110px"
 +
},
 +
"ImageAltR1": {
 +
"label": "Image alt text (third row, right half)",
 +
"description": "The text description read out to users who cannot see the image.",
 +
"type": "string"
 +
},
 +
"ImageCaptionR1": {
 +
"label": "Image caption (third row, right half)",
 +
"description": "Caption displayed below the image.",
 +
"type": "content"
 +
},
 +
"ImageFileR1_Ref": {
 +
"label": "Image reference (third row, right half)",
 +
"description": "A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.",
 +
"type": "content"
 +
},
 +
"ImageName2": {
 +
"label": "Image name (fourth row, full width)",
 +
"description": "If set, this is the title of the image; it appears if you hover over it.",
 +
"type": "string"
 +
},
 +
"ImageSize2": {
 +
"label": "Image size (fourth row, full width)",
 +
"description": "Image width in pixels, with px suffix.",
 +
"example": "200px",
 +
"type": "string",
 +
"default": "220px"
 +
},
 +
"ImageAlt2": {
 +
"label": "Image alt text (fourth row, full width)",
 +
"description": "The text description read out to users who cannot see the image.",
 +
"type": "string"
 +
},
 +
"ImageCaption2": {
 +
"label": "Image caption (fourth row, full width)",
 +
"description": "Caption displayed below the image.",
 +
"type": "content"
 +
},
 +
"ImageFile2_Ref": {
 +
"label": "Image reference (fourth row, full width)",
 +
"description": "A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.",
 +
"type": "content"
 +
},
 +
"ImageNameL2": {
 +
"label": "Image name (fifth row, left half)",
 +
"description": "If set, this is the title of the image; it appears if you hover over it.",
 +
"type": "string"
 +
},
 +
"ImageSizeL2": {
 +
"label": "Image size (fifth row, left half)",
 +
"description": "Image width in pixels, with px suffix.",
 +
"example": "200px",
 +
"type": "string",
 +
"default": "110px"
 +
},
 +
"ImageAltL2": {
 +
"label": "Image alt text (fifth row, left half)",
 +
"description": "The text description read out to users who cannot see the image.",
 +
"type": "string"
 +
},
 +
"ImageCaptionL2": {
 +
"label": "Image caption (fifth row, left half)",
 +
"description": "Caption displayed below the image.",
 +
"type": "content"
 +
},
 +
"ImageFileL2_Ref": {
 +
"label": "Image reference (fifth row, left half)",
 +
"description": "A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.",
 +
"type": "content"
 +
},
 +
"ImageNameR2": {
 +
"label": "Image name (fifth row, right half)",
 +
"description": "If set, this is the title of the image; it appears if you hover over it.",
 +
"type": "string"
 +
},
 +
"ImageSizeR2": {
 +
"label": "Image size (fifth row, right half)",
 +
"description": "Image width in pixels, with px suffix.",
 +
"example": "200px",
 +
"type": "string",
 +
"default": "110px"
 +
},
 +
"ImageAltR2": {
 +
"label": "Image alt text (fifth row, right half)",
 +
"description": "The text description read out to users who cannot see the image.",
 +
"type": "string"
 +
},
 +
"ImageCaptionR2": {
 +
"label": "Image caption (fifth row, right half)",
 +
"description": "Caption displayed below the image.",
 +
"type": "content"
 +
},
 +
"ImageFileR2_Ref": {
 +
"label": "Image reference (fifth row, right half)",
 +
"description": "A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.",
 +
"type": "content"
 +
},
 +
"ImageCaptionLR2": {
 +
"label": "Image caption (fifth row, left and right halves)",
 +
"description": "Image caption for both halves of row 5.",
 +
"type": "content"
 +
},
 +
"ImageName3": {
 +
"label": "Image name (sixth row, full width)",
 +
"description": "If set, this is the title of the image; it appears if you hover over it.",
 +
"type": "string"
 +
},
 +
"ImageSize3": {
 +
"label": "Image size (sixth row, full width)",
 +
"description": "Image width in pixels, with px suffix.",
 +
"example": "200px",
 +
"type": "string",
 +
"default": "220px"
 +
},
 +
"ImageAlt3": {
 +
"label": "Image alt text (sixth row, full width)",
 +
"description": "The text description read out to users who cannot see the image.",
 +
"type": "string"
 +
},
 +
"ImageCaption3": {
 +
"label": "Image caption (sixth row, full width)",
 +
"description": "Caption displayed below the image.",
 +
"type": "content"
 +
},
 +
"ImageFile3_Ref": {
 +
"label": "Image reference (sixth row, full width)",
 +
"description": "A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.",
 +
"type": "content"
 +
},
 +
"ImageNameL3": {
 +
"label": "Image name (seventh row, left half)",
 +
"description": "If set, this is the title of the image; it appears if you hover over it.",
 +
"type": "string"
 +
},
 +
"ImageSizeL3": {
 +
"label": "Image size (seventh row, left half)",
 +
"description": "Image width in pixels, with px suffix.",
 +
"example": "200px",
 +
"type": "string",
 +
"default": "110px"
 +
},
 +
"ImageAltL3": {
 +
"label": "Image alt text (seventh row, left half)",
 +
"description": "The text description read out to users who cannot see the image.",
 +
"type": "string"
 +
},
 +
"ImageCaptionL3": {
 +
"label": "Image caption (seventh row, left half)",
 +
"description": "Caption displayed below the image.",
 +
"type": "content"
 +
},
 +
"ImageFileL3_Ref": {
 +
"label": "Image reference (seventh row, left half)",
 +
"description": "A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.",
 +
"type": "content"
 +
},
 +
"ImageNameR3": {
 +
"label": "Image name (seventh row, right half)",
 +
"description": "If set, this is the title of the image; it appears if you hover over it.",
 +
"type": "string"
 +
},
 +
"ImageSizeR3": {
 +
"label": "Image size (seventh row, right half)",
 +
"description": "Image width in pixels, with px suffix.",
 +
"example": "200px",
 +
"type": "string",
 +
"default": "110px"
 +
},
 +
"ImageAltR3": {
 +
"label": "Image alt text (seventh row, right half)",
 +
"description": "The text description read out to users who cannot see the image.",
 +
"type": "string"
 +
},
 +
"ImageCaptionR3": {
 +
"label": "Image caption (seventh row, right half)",
 +
"description": "Caption displayed below the image.",
 +
"type": "content"
 +
},
 +
"ImageFileR3_Ref": {
 +
"label": "Image reference (seventh row, right half)",
 +
"description": "A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.",
 +
"type": "content"
 +
},
 +
"ImageCaptionLR3": {
 +
"label": "Image caption (seventh row, left and right halves)",
 +
"description": "Image caption for both halves of row 7",
 +
"type": "content"
 +
},
 +
"ImageCaptionAll": {
 +
"label": "Image caption (all)",
 +
"description": "An overall image caption.",
 +
"type": "content"
 +
},
 +
"OtherNames": {
 +
"label": "Other names",
 +
"description": "A list of other names. Using the {{Unbulleted list}} template is recommended, as separating names with commas can be ambiguous.",
 +
"example": "{{Unbulleted list|Ethanoic acid|Acetic acid}}",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"IUPACName": {
 +
"label": "IUPAC name",
 +
"description": "For a single name. Use IUPAC names for a plural.",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"IUPACNames": {
 +
"label": "IUPAC names",
 +
"description": "For multiple names. Use IUPAC name for the singular.",
 +
"type": "content"
 +
},
 +
"PIN": {
 +
"label": "Preferred IUPAC name",
 +
"type": "content"
 +
},
 +
"SystematicName": {
 +
"label": "Systematic IUPAC name",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"Names_ref": {
 +
"label": "Names reference",
 +
"description": "A reference for the names. Use <ref> tags or equivalent such as {{cite book}}.",
 +
"type": "content"
 +
},
 +
"pronounce": {
 +
"label": "Pronunciation",
 +
"type": "content"
 +
},
 +
"Section1": {
 +
"label": "Section 1",
 +
"description": "A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"Section2": {
 +
"label": "Section 2",
 +
"description": "A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"Section3": {
 +
"label": "Section 3",
 +
"description": "A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"Section4": {
 +
"label": "Section 4",
 +
"description": "A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"Section5": {
 +
"label": "Section 5",
 +
"description": "A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"Section6": {
 +
"label": "Section 6",
 +
"description": "A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"Section7": {
 +
"label": "Section 7",
 +
"description": "A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.",
 +
"type": "content"
 +
},
 +
"Section8": {
 +
"label": "Section 8",
 +
"description": "A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.",
 +
"type": "content"
 +
},
 +
"Section9": {
 +
"label": "Section 9",
 +
"description": "A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.",
 +
"type": "content"
 +
},
 +
"show_footer": {
 +
"label": "Show footer",
 +
"description": "Set to no to hide the footer",
 +
"type": "boolean",
 +
"default": "Defaults to \"yes\""
 +
},
 +
"Verifiedfields": {
 +
"label": "Verified fields",
 +
"description": "Bot maintained; do not add, edit, or remove."
 +
},
 +
"Watchedfields": {
 +
"label": "Watched fields",
 +
"description": "Bot maintained; do not add, edit, or remove."
 +
},
 +
"verifiedrevid": {
 +
"label": "Verified revision ID",
 +
"description": "Bot maintained; do not add, edit, or remove."
 +
},
 +
"show_ss_note": {
 +
"label": "Show standard state note",
 +
"description": "Set to \"no\" to hide the standard state note.",
 +
"type": "boolean"
 +
},
 +
"show_infobox_ref": {
 +
"label": "Show infobox reference",
 +
"description": "Set to \"no\" to hide the infobox reference notice."
 +
},
 +
"general_note": {
 +
"label": "General note",
 +
"description": "A general note to display in the bottom box.",
 +
"type": "content"
 +
},
 +
"ImageCaptionLR1": {
 +
"label": "Image caption (third row, left and right halves)",
 +
"description": "Image caption for both halves of row 3.",
 +
"type": "content"
 +
},
 +
"data page pagename": {
 +
"label": "Data page",
 +
"description": "Data page article name",
 +
"example": "Properties of water",
 +
"default": "<compound> (data page)"
 +
},
 +
"Verifiedimages": {
 +
"description": "Bot-maintained parameter"
 +
},
 +
"container_only": {
 +
"description": "=yes: will suppress general tracking",
 +
"type": "string"
 +
}
 +
},
 +
"paramOrder": [
 +
"width",
 +
"style",
 +
"Name",
 +
"Reference",
 +
"Chembox_ref",
 +
"ImageFile",
 +
"ImageFile1",
 +
"ImageFileL1",
 +
"ImageFileR1",
 +
"ImageFile2",
 +
"ImageFileR2",
 +
"ImageFileL2",
 +
"ImageFile3",
 +
"ImageFileL3",
 +
"ImageFileR3",
 +
"ImageName",
 +
"ImageSize",
 +
"ImageAlt",
 +
"ImageCaption",
 +
"ImageFile_Ref",
 +
"ImageName1",
 +
"ImageSize1",
 +
"ImageAlt1",
 +
"ImageCaption1",
 +
"ImageFile1_Ref",
 +
"ImageNameL1",
 +
"ImageSizeL1",
 +
"ImageAltL1",
 +
"ImageCaptionL1",
 +
"ImageFileL1_Ref",
 +
"ImageNameR1",
 +
"ImageSizeR1",
 +
"ImageAltR1",
 +
"ImageCaptionR1",
 +
"ImageFileR1_Ref",
 +
"ImageCaptionLR1",
 +
"ImageName2",
 +
"ImageSize2",
 +
"ImageAlt2",
 +
"ImageCaption2",
 +
"ImageFile2_Ref",
 +
"ImageNameL2",
 +
"ImageSizeL2",
 +
"ImageAltL2",
 +
"ImageCaptionL2",
 +
"ImageFileL2_Ref",
 +
"ImageNameR2",
 +
"ImageSizeR2",
 +
"ImageAltR2",
 +
"ImageCaptionR2",
 +
"ImageFileR2_Ref",
 +
"ImageCaptionLR2",
 +
"ImageName3",
 +
"ImageSize3",
 +
"ImageAlt3",
 +
"ImageCaption3",
 +
"ImageFile3_Ref",
 +
"ImageNameL3",
 +
"ImageSizeL3",
 +
"ImageAltL3",
 +
"ImageCaptionL3",
 +
"ImageFileL3_Ref",
 +
"ImageNameR3",
 +
"ImageSizeR3",
 +
"ImageAltR3",
 +
"ImageCaptionR3",
 +
"ImageFileR3_Ref",
 +
"ImageCaptionLR3",
 +
"ImageCaptionAll",
 +
"OtherNames",
 +
"IUPACName",
 +
"IUPACNames",
 +
"PIN",
 +
"SystematicName",
 +
"Names_ref",
 +
"pronounce",
 +
"Section1",
 +
"Section2",
 +
"Section3",
 +
"Section4",
 +
"Section5",
 +
"Section6",
 +
"Section7",
 +
"Section8",
 +
"Section9",
 +
"show_footer",
 +
"Verifiedfields",
 +
"Watchedfields",
 +
"verifiedrevid",
 +
"show_ss_note",
 +
"show_infobox_ref",
 +
"general_note",
 +
"data page pagename",
 +
"Verifiedimages",
 +
"container_only"
 +
]
 +
}
 +
</templatedata>
 +
{{collapse bottom}}
  
<includeonly>
+
==See also==
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
* {{tl|Infobox drug}} (aka {{tf|Drugbox}})
[[Category:Chembox templates|*]]
+
{{Navbox Chembox|state=uncollapsed}}
  
[[ar:قالب:معلومات كيمياء]]
+
<includeonly>{{Sandbox other||
[[ca:Plantilla:Chembox]]
+
{{#ifeq:{{PAGENAME}}|Chembox
[[da:Skabelon:Kemiboks ny]]
+
|<!--match-->[[Category:Chembox templates| ]]
[[de:Vorlage:Infobox Chemikalie]]
+
[[Category:Templates using data from Wikidata]]
[[el:Πρότυπο:Πληροφορίες χημικής ένωσης]]
+
[[Category:Templates that add a tracking category]]
[[eo:Ŝablono:Informkesto kemia substanco]]
+
[[Category:Infobox templates]]
[[es:Plantilla:Ficha compuesto químico]]
+
|<!--no match-->[[Category:Chembox templates]]
[[fa:الگو:Chembox new]]
+
}}}}</includeonly>
[[fr:Modèle:Chimieboxes]]
 
[[id:Templat:Chembox]]
 
[[nl:Sjabloon:ChemischeStof]]
 
[[nds:Vörlaag:Infobox cheemsch Stoff]]
 
[[qu:Plantilla:Chembox]]
 
[[ru:Шаблон:Chembox]]
 
[[fi:Malline:Yhdiste]]
 
[[uk:Шаблон:Chembox new]]
 
[[zh:Template:Chembox new]]
 
</includeonly>
 

Latest revision as of 20:18, 20 October 2020


Template {{Chembox}} is an infobox for chemicals. It has a large number of options to add relevant data and images. The infobox is organized in sections like "identifiers" and "hazards".

Usage

The Chembox has a modular design. After the general information like the chemical name and images, it can be built from multiple sections, each covering a group of information (like "pharmacology"). Depending on the compound, sections can be added or left out, and within a section parameters can be added or omitted (left blank).

The sections and their parameters are listed below.

Within the general chembox template (with its own parameters like |ImageFile= and |IUPACName=), each section is added with this pattern (as the value of a parameter |Sectionx=.

{{Chembox
| ImageFile = 
| IUPACName = 
<!-- more general Chembox parameters here -->
| Section1 = {{Chembox Identifiers
| CASNo = 
| PubChem = 
<!-- more Identifier parameters here -->
  }}
}}

In this format, spaces and new lines have no meaning and can be used freely to separate sections (though within a data value, a space has a meaning, except generally leading and trailing spaces). Each section has its own number in |Section#=. Then a section is defined with "|Section# = {{Chembox " and ends with "}}". Sections cannot 'nest': one must close one section with }} before adding another |Section#= {{Chembox ....

Keep in mind the advice in the main Infobox documentation to use the {{Unbulleted list}} template to present multiple values for a parameter so as to ensure that the values are each started on a new line and tagged appropriately in the underlying markup. This is particularly important with parameters like |OtherNames=, since many names use commas within them, and using commas as separators leads to ambiguity. For example:

| OtherNames = {{Unbulleted list
  | 2,4,6(1''H'',3''H'',5''H'')-pyrimidinetrione
  | 2,4,6-trioxohexahydropyrimidine
  | pyrimidinetriol
  | malonylurea
  | 6-hydroxyuracil
  | ''N'',''N''-(1,3-dioxo-1,3-propanediyl)urea
  }}
| (next parameter) = <!-- etc. -->

Small, simple form

To use, simply copy and paste the left column into the document, filling in whatever you can, and save:

{{Chembox
<!-- Images -->
| ImageFile = 
| ImageSize = 
| ImageAlt = 
<!-- Names -->
| IUPACName = 
| OtherNames = 
<!-- Sections -->
| Section1 = {{Chembox Identifiers
| CASNo = 
| PubChem = 
| SMILES = 
  }}
| Section2 = {{Chembox Properties
| Formula = 
| MolarMass = 
| Appearance = 
| Density = 
| MeltingPt = 
| BoilingPt = 
| Solubility = 
  }}
| Section3 = {{Chembox Hazards
| MainHazards = 
| FlashPt = 
| AutoignitionPt = 
  }}
}}

Medium form

To use, simply copy and paste the left column into the document, filling in whatever you can:

{{Chembox
| Reference = 
<!-- Names -->
| Name = 
| IUPACName = 
| PIN = 
| SystematicName = not
| OtherNames = {{Unbulleted list
  | ''name1''
  | ''name2''
  ...
  | ''name50''
  }}
| data page pagename = 
<!-- Images -->
| ImageFile = 
| ImageSize = 
| ImageAlt = 
| ImageName = 
| ImageCaption = 
| ImageFile1 = 
| ImageSize1 = 
| ImageAlt1 = 
| ImageName1 = 
| ImageCaption1 = 
| ImageFile2 = 
| ImageSize2 = 
| ImageAlt2 = 
| ImageName2 = 
| ImageCaption2 = 
| ImageFile3 = 
| ImageSize3 = 
| ImageAlt3 = 
| ImageName3 = 
| ImageFileL1 = 
| ImageSizeL1 = 
| ImageAltL1 = 
| ImageNameL1 = 
| ImageFileR1 = 
| ImageSizeR1 = 
| ImageAltR1 = 
| ImageNameR1 = 
| ImageFileL2 = 
| ImageSizeL2 = 
| ImageAltL2 = 
| ImageNameL2 = 
| ImageFileR2 = 
| ImageSizeR2 = 
| ImageAltR2 = 
| ImageNameR2 = 
<!-- Sections -->
| Section1 = {{Chembox Identifiers
| 3DMet = 
| Abbreviations = 
| Beilstein = 
| CASNo = 
| CASNo_Comment = 
| CASOther = 
| ChEBI = 
| ChemSpiderID = 
| EINECS = 
| EC_number = 
| EC_number_Comment = 
| Gmelin = 
| InChI = 
| KEGG = 
| MeSHName = 
| PubChem = 
| RTECS = 
| SMILES = 
| UNNumber = 
  }}
| Section2 = {{Chembox Properties
| AtmosphericOHRateConstant = 
| Appearance = 
| BoilingPt = 
| BoilingPtC = 
| BoilingPt_ref = 
| BoilingPt_notes = 
| Density = 
| Formula = 
| HenryConstant = 
| LogP = 
| MolarMass = 
| MeltingPt = 
| MeltingPtC = 
| MeltingPt_ref = 
| MeltingPt_notes = 
| pKa = 
| pKb = 
| Solubility = 
| SolubleOther = 
| Solvent = 
| VaporPressure = 
  }}
| Section3 = {{Chembox Structure
| Coordination = 
| CrystalStruct = 
| MolShape = 
  }}
| Section4 = {{Chembox Thermochemistry
| DeltaGf = 
| DeltaHc = 
| DeltaHf = 
| Entropy = 
| HeatCapacity = 
  }}
| Section5 = {{Chembox Explosive
| ShockSens = 
| FrictionSens = 
| DetonationV = 
| REFactor = 
  }}
| Section6 = {{Chembox Pharmacology
| ATCvet = 
| ATCCode_prefix = 
| ATCCode_suffix = 
| ATC_Supplemental = 
| AdminRoutes = 
| Bioavail = 
| Excretion = 
| HalfLife = 
| Metabolism = 
| Legal_status = 
| Legal_AU = 
| Legal_AU_comment = 
| Legal_CA = 
| Legal_CA_comment = 
| Legal_NZ = 
| Legal_NZ_comment = 
| Legal_US = Rx-only
| Legal_US_comment = 
| Legal_UK = 
| Legal_UK_comment = 
| Legal_EU = 
| Legal_EU_comment =  
| Legal_UN = 
| Legal_UN_comment = 
| Pregnancy_category = 
| Pregnancy_AU = 
| Pregnancy_AU_comment = 
| Pregnancy_US = 
| Pregnancy_US_comment = 
| ProteinBound = 
| Dependence_liability = 
| Addiction_liability = 
  }}
| Section7 = {{Chembox Hazards
| AutoignitionPt = 
| ExploLimits = 
| FlashPt = 
| LD50 = 
| LC50 = 
| MainHazards = 
| NFPA-F = 
| NFPA-H = 
| NFPA-R = 
| NFPA-S = 
| PEL = 
| REL = 
| ExternalSDS = 
| GHSPictograms = 
| GHSSignalWord = 
| HPhrases = 
| PPhrases = 
  }}
| Section9 = {{Chembox Related
| OtherAnions = 
| OtherCations = 
| OtherFunction = 
| OtherFunction_label = 
| OtherCompounds = 
  }}
}}
Template:Pre2

Full form

To use, simply copy and paste the left column into the document, and press save to get an empty Chembox:

Long parameter list for {{Chembox}}
{{Chembox
| Reference = 
<!-- Names -->
| Name = 
| IUPACName = 
| SystematicName = 
| OtherNames = 
| data page pagename = 
<!-- Images -->
| ImageFile = 
| ImageAlt = 
| ImageCaption = 
| ImageFile1 = 
| ImageAlt1 = 
| ImageCaption1 = 
| ImageFile2 = 
| ImageAlt2 = 
| ImageCaption2 = 
| ImageFile3 = 
| ImageAlt3 = 
| ImageCaption3 = 
| ImageFile4 = 
| ImageAlt4 = 
| ImageCaption4 = 
| ImageFileL1 = 
| ImageAltL1 = 
| ImageCaptionL1 = 
| ImageFileR1 = 
| ImageSizeR1 = 
| ImageAltR1 = 
| ImageCaptionR1 = 
| ImageFileL2 = 
| ImageAltL2 = 
| ImageCaptionL2 = 
| ImageFileR2 = 
| ImageSizeR2 = 
| ImageAltR2 = 
| ImageCaptionR2 = 
<!-- Style settings -->
| width = 
<!-- Sections -->
| Section1 = {{Chembox Identifiers
| Abbreviations = 
| CASNo = 
| CASNo_Comment = 
| CASNo_Ref = 
| CASNos = 
| CASOther = 
| PubChem = 
| PubChem_Comment = 
| PubChem5 = 
| PubChem5_Comment = 
| PubChemOther = 
| ChemSpiderID = 
| ChemSpiderID_Comment = 
| ChemSpiderID5 = 
| ChemSpiderIDOther = 
| EINECS = 
| EC_number = 
| EC_number_Comment = 
| UNNumber = 
| DrugBank = 
| KEGG = 
| MeSHName = 
| ChEBI = 
| RTECS = 
| ATCvet = 
| ATCCode_prefix = 
| ATCCode_suffix = 
| ATC_Supplemental = 
| SMILES = 
| InChI = 
| Beilstein = 
| Gmelin = 
| 3DMet = }}
| Section2 = {{Chembox Properties
| Formula = 
| MolarMass = 
| Appearance = 
| Density = 
| MeltingPt = 
| MeltingPt_notes = 
| BoilingPt = 
| BoilingPt_notes = 
| LogP = 
| VaporPressure = 
| HenryConstant = 
| AtmosphericOHRateConstant = 
| pKa = 
| pKb = 
| Solubility = 
| SolubleOther = 
| Solvent = 
| Sheet Resistance = 
| Methacrylate Equiv Wt = 
| Bulk Conductivity = 
  }}
| Section3 = {{Chembox Structure
| CrystalStruct = 
| Coordination = 
| MolShape = 
  }}
| Section4 = {{Chembox Thermochemistry
| DeltaGf = 
| DeltaHc = 
| DeltaHf = 
| Entropy = 
| HeatCapacity = 
  }}
| Section5 = {{Chembox Pharmacology
| AdminRoutes = 
| Bioavail = 
| Metabolism = 
| HalfLife = 
| ProteinBound = 
| Excretion = 
| legal_status = 
| legal_AU = 
| legal_AU_comment = 
| legal_CA = 
| legal_CA_comment = 
| legal_NZ = 
| legal_NZ_comment = 
| legal_US = 
| legal_US_comment = 
| legal_UK = 
| legal_UK_comment = 
| legal_EU = 
| legal_EU_comment = 
| legal_UN = 
| legal_UN_comment = 
| pregnancy_category = 
| pregnancy_AU = 
| pregnancy_AU_comment = 
| pregnancy_US = 
| pregnancy_US_comment = 
  }}
| Section6 = {{Chembox Explosive
| ShockSens = 
| FrictionSens = 
| ExplosiveV = 
| REFactor = 
  }}
| Section7 = {{Chembox Hazards
| MainHazards = 
| NFPA-F = 
| NFPA-H = 
| NFPA-R = 
| NFPA-S = 
| ExternalSDS = 
| GHSPictograms = 
| GHSSignalWord = 
| HPhrases = 
| PPhrases = 
| FlashPt = 
| Autoignition = 
| ExploLimits = 
| LD50 = 
| PEL = 
  }}
| Section8 = {{Chembox Related
| OtherAnions = 
| OtherCations = 
| OtherFunction_label = 
| OtherFunction = 
| OtherCompounds = 
  }}
}}

Chembox: Template name

  • Name: title above the box (DEFAULT: article name)
  • filename.svg (not [[image:filename.svg]]
  • picture size (example: ImageSize = 100px, default = 200px)
  • alt text for picture (example: Fine dry white powder)
  • Picture caption (example: Oxygen in liquid form)
  • the IUPAC name
  • hide IUPAC name if very long; show-button is displayed
  • the systematic name
  • any other name
  • reference; include <ref> </ref>s, add <references/> to the page

Section Identifiers: Standard numbers, etc.

  • KEGG: links to genome.ad.jp
  • Medical Subject Headings: links to NIH
  • ChEBI: links to EBI
  • RTECS: no link
  • ATCvet = yes if the next two parameters define an ATCvet code
  • ATCCode prefix (first three characters, omit the leading Q for ATCvet codes), internal link
  • ATCCode suffix (last 4 characters), full ATC links to WHO C.C.
  • Other ATC codes (use the {{ATC}} and/or {{ATCvet}} templates)
  • SMILES: no link
  • InChI: no link

Section Properties: Physical properties

  • the molecular formula
  • molecular weight, including unit
  • Its appearance
  • Density, including unit
  • Melting Point, including unit
  • Notes on melting point
  • Boiling Point, including unit
  • Notes on boiling point
  • Partition coefficient
  • Vapor pressure
  • Henry's law constant (kH)
  • Atmospheric OH rate constant
  • pKa
  • pKb
  • Sheet Resistance
  • Methacrylate Equiv Wt
  • Bulk Conductivity

Section Structure: Crystal structure information

  • Crystal Structure
  • Coordination
  • Molecular Shape

Section Thermochemistry: Thermochemical properties

  • Delta Gf
  • Delta Hc
  • Delta Hf
  • Entropy
  • Heat Capacity

Section Pharmacology: Pharmacology/drug data

  • Admin Routes
  • Bioavailability
  • Metabolism
  • Half Life
  • Protein Bound
  • Excretion
  • Legal status
  • Legal status in US
  • Legal status in UK
  • Legal status in AU
  • Legal status in CA
  • Pregnancy Category
  • Pregnancy Category in US
  • Pregnancy Category in AU

Section Explosive: Explosive properties

  • Shock Sensitivity
  • Friction Sensitivity
  • Explosive speed
  • RE Factor

Section Hazards: Hazards

  • URL for Safety Data Sheet
  • EU Index
  • Main Hazards
  • NFPA-F: NFPA 704 Fire hazard 0&ndahs;4 (red)
  • NFPA-H: NFPA 704 Health hazard 0&ndahs;4 (blue)
  • NFPA-R: NFPA 704 Reactivity hazard 0&ndahs;4 (yellow)
  • NFPA-O: NFPA 704 Other hazards: W, OX, COR, ALK, ACID, CRYO, RA (white)
  • HPhrases: use the {{H-phrases}} template for this
  • PPhrases: use the {{P-phrases}} template for this
  • Flash Point
  • Autoignition
  • Explosion Limits
  • LD50
  • PEL

Section Supplement: Separate data page

  • data page pagename

Section Related: Related compounds, etc.

  • Other Anions
  • Other Cations
  • Other Function: works with the next field
  • Function: the function
  • Other Compounds: chemical 'see also' section

-end

Indexed parameters

| CASNo = 
| CASNo1 = 
| CASNo2 = 
| CASNo3 = 
| CASNo4 = 
| CASNo5 = 
| CASNoOther = 
Indexed parameters

Overview
(index numbers 2-3-4 omitted):

| CASNo =
| CASNo1 =
| CASNo5 =
| CASNoOther =
| ChEBI =
| ChEBI1 =
| ChEBI5 =
| ChEBIOther =
| ChEMBL =
| ChEMBL1 =
| ChEMBL5 =
| ChEMBLOther =
| ChemSpiderID =
| ChemSpiderID1 =
| ChemSpiderID5 =
| ChemSpiderIDOther =
| DrugBank =
| DrugBank1 =
| DrugBank5 =
| DrugBankOther =
| InChI =
| InChI1 =
| InChI5 =
| InChIOther =
| KEGG =
| KEGG1 =
| KEGG5 =
| KEGGOther =
| PubChem =
| PubChem1 =
| PubChem5 =
| PubChemOther =
| SMILES =
| SMILES1 =
| SMILES5 =
| SMILESOther =
| UNII =
| UNII1 =
| UNII5 =
| UNIIOther =
| 3DMet= 
| 3DMet1= 
| 3DMet5= 
| 3DMetOther= 
| EC_number1= 
| EC_number5= 
| EC_numberOther= 
| RTECS1=
| RTECS5= 
| RTECSOther= 

Indexed parameters take indexes 'blank', 1–5 (six options together). They should have straight input, such as a correct CAS Registry Number.

  • Eight base parameters are indexed this way, all identifiers:
CASNo, ChEBI, ChEMBL, ChemSpiderID, DrugBank, InChI, KEGG, PubChem, SMILES, UNII, 3DMet, EC_number, RTECS
  • Then |_Other= (like |CASNoOther=) is available for free text input.
same substance, same index

When the chembox has multiple substances, you can use the index. Make sure that |CASNo3= and |SMILES3= are about the same substance, and |CASNo3= and |SMILES2= are not. Treat index "0" the same way:

|CASNo= is |InChI= is |SMILES=
|CASNo1= is |InChI1= is |SMILES1=
|CASNo= is not |InChI1= is not |SMILES4=
Labeling the substances

By using a parameter like |index2_label=, you can prefix every #2-input with that same prefix.

{{chembox
| Name=[[Linalool]]
|Section1={{Chembox Identifiers
| index_label    = 
| index1_label   = (''R'')
| index2_label   = (''S'')
| index_comment  = (+/-)-linalool
| index1_comment = (-)-linalool
| index2_comment = (+)-linalool
| CASNo    = 78-70-6
| CASNo1   = 126-91-0
| CASNo2   = 126-90-9
| PubChem  = 6549
| PubChem1 = 443158
| PubChem2 = 67179
  }}
}}
Linalool
Identifiers
  • Compounds
  • (+/-)-linalool
  • (R): (-)-linalool
  • (S): (+)-linalool
ECHA InfoCard Script error: No such module "Wikidata". Script error: No such module "Wikidata".Script error: No such module "EditAtWikidata".
E number Script error: No such module "Wikidata".
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
Infobox references
| CASNo_Comment = 
| CASNo1_Comment = 
| CASNo5_Comment = 
  • For specific additions, each parameter has a |_Comment= option.

Section subtemplates

The following section subtemplates are available:

And the automated section, that is visible when 'pagename (data page)' exists:

See these subsections for their parameter options.

The order of these sections in the infobox is set by the section number (|Section#=) only. Not by the typed sequence. This documentation keeps this arbitrary order:

| Section1 = {{Chembox Identifiers}}
| Section2 = {{Chembox Properties}}
| Section3 = {{Chembox Structure}}
| Section4 = {{Chembox Thermochemistry}}
| Section5 = {{Chembox Explosive}}
| Section6 = {{Chembox Pharmacology}}
| Section7 = {{Chembox Hazards}}
| Section9 = {{Chembox Related}}

Sections that are not used can be safely removed, renumbering is not necessary.

Container only

{{Chembox}} can be used to show a subsection only, for example Section3={{Chembox Hazards|...}}. When set |container_only=yes: The main {{Chembox}} is not tracked at all (image checks, bot validation categories, etc.), and the Footer (with STP notice) is suppressed. Example: Bromine#Biological role and toxicity. The article will be listed in Category:Chembox container only (0).

Adding images

Parameters

Image parameters for the first images:

{{Chembox
<!-- Other chembox parameters can go here -->
<!-- Row 1/7 -->
| ImageFile = 
| ImageName = 
| ImageSize = 
| ImageAlt = 
| ImageCaption = 
| ImageFile_Ref = 
<!-- Row 2/7 -->
| ImageFile1 = 
| ImageName1 = 
| ImageSize1 = 
| ImageAlt1 = 
| ImageCaption1 = 
| ImageFile1_Ref = 
<!-- Row 3/7 -->
| ImageFileL1 = 
| ImageNameL1 = 
| ImageSizeL1 = 
| ImageAltL1 = 
| ImageCaptionL1 = 
| ImageFileL1_Ref = 

| ImageFileR1 = 
| ImageNameR1 = 
| ImageSizeR1 = 
| ImageAltR1 = 
| ImageCaptionR1 = 
| ImageFileR1_Ref = 

| ImageCaptionL1R1 = 
<!-- More chembox parameters can go here, like |Section1=... -->
}}

Examples

Image parameters for an image (example: File1). All are optional.

Chembox/doc
Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
A caption shows here
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
Infobox references
{{Chembox
| ImageFile1 = Furfural.svg
| ImageAlt1 = Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
| ImageName1 = 
| ImageCaption1 = A caption shows here
| ImageSize1 = 
| ImageFile1_Ref =ref
}}

Adding two images:

Chembox/doc
Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
3D filled-sphere model of the same molecule
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
Infobox references
{{Chembox
| ImageFile = Furfural.svg
| ImageAlt = Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
| ImageFile1 = Furfural-3D-vdW.png
| ImageAlt1 = 3D filled-sphere model of the same molecule
}}

This gives two images, each image on his own row (note, ImageFile is the first image, ImageFile1 is the second).

Adding two images, side by side (L1 and R1):

Chembox/doc
Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
3D filled-sphere model of the same molecule
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
Infobox references
{{Chembox
| ImageFileL1 = Furfural.svg
| ImageAltL1 = Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
| ImageFileR1 = Furfural-3D-vdW.png
| ImageAltR1 = 3D filled-sphere model of the same molecule
}}

This gives one row with two images. Note that ImageFile is now not supplied.

Multiple images

Chembox image ordering ()
row 1 ImageFile
row 2 ImageFileTemplate:Purple
row 3 ImageFileTemplate:Purple ImageFileTemplate:Purple
row 5 ImageFileTemplate:Purple
row 4 ImageFileTemplate:Purple ImageFileTemplate:Purple
row 6 ImageFileTemplate:Purple
row 7 ImageFileTemplate:Purple ImageFileTemplate:Purple

This gives the possibility to play a bit with which image is first (rows with empty parameters are not displayed). Example:

Chembox/doc
Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
3D filled-sphere model of the same molecule
Water droplet erupting from the center of a concentric ring of ripples, evidently in response to a drop landing in the water just before
Names
IUPAC name
example
Infobox references
{{Chembox
| ImageFileL1 = Furfural.svg
| ImageAltL1 = Skeleton formula of a ring of four carbons and one oxygen, with a carbon-oxygen attached to a carbon next to an oxygen
| ImageFileR1 = Furfural-3D-vdW.png
| ImageSizeR1 = 
| ImageAltR1 = 3D filled-sphere model of the same molecule
| ImageFile2 = Water droplet blue bg05.jpg
| ImageAlt2 = Water droplet erupting from the center of a concentric ring of ripples, evidently in response to a drop landing in the water just before
| IUPACName = example
}}

This gives one row with two images, and one row with one image.

Names

This parameter list:
{{Chembox
<!-- Names -->
| Name =
| IUPACName =
| IUPACNames =
| PIN =
| SystematicName =
| OtherNames =
<!-- other parameters -->
}}

Template:Pre2


Example

cis-3-Hexen-1-ol
Names
IUPAC names
A, B
Preferred IUPAC name
PIN
Systematic IUPAC name
SYS
Other names
X
Y
Z
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
Infobox references
{{Chembox
| Name=''cis''-3-Hexen-1-ol
| IUPACNames = A, B
| PIN = PIN
| SystematicName = SYS
| OtherNames = X<br/>Y<br/>Z
}}

Input from Wikidata

E number, ECHA InfoCard ID, |DTXSID= (CompTox Chemicals Dashboard) are read from Wikidata.

Maintenance

Troubleshooting

  • When supplying a parameter with a value, and nothing or the wrong value shows up, check:
  • Is the parameter placed in the correct section?
  • Are the sections properly defined? Sections start with | Section# = {{Chembox sectionname |" and end with "}}".
  • Is there inconsistency in the Section numbering? Available numbers for sections are 1 – 9.

Tracking categories

TemplateData

TemplateData documentation used by VisualEditor and other tools
See the monthly parameter usage report for this template.

TemplateData for Chembox

An infobox for chemicals. It has a large number of options to add relevant data and images. The Chembox has a modular design. After the general information like the chemical name and images, it can be built from multiple sections, each covering a group of information (like "pharmacology"). Depending on the compound, sections can be added or left out, and within a section parameters can be added or omitted (left blank). Please see this template's page for full documentation.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Widthwidth

The overall width of the box; the default is normally fine. Using the unit "em" helps the box scale for different font sizes.

Default
22 em
Example
22 em
Unknownoptional
Custom CSSstyle

Any additional CSS to apply to the box; see the width parameter to set the width.

Unknownoptional
NameName

Compound name for the chembox's title. Defaults to the page title.

Default
Page title.
Example
Ethanoic acid
Stringsuggested
Title referenceReference

A reference to be shown in the title. Use <ref> tags or equivalent, such as {{cite book}}.

Contentoptional
Title reference (2)Chembox_ref

Equivalent to the title reference parameter; appears second if both are provided.

Unknownoptional
Image file (top row, full width)ImageFile

An image file to display; omit "File:".

Filesuggested
Image file (second row; full width)ImageFile1

An image file to display; omit "File:".

Fileoptional
Image file (third row, left half)ImageFileL1

An image file to display; omit "File:".

Fileoptional
Image file (third row, right half)ImageFileR1

An image file to display; omit "File:".

Fileoptional
Image file (fourth row, full width)ImageFile2

An image file to display; omit "File:".

Fileoptional
Image file (fifth row, right half)ImageFileR2

An image file to display; omit "File:".

Fileoptional
Image file (fifth row, left half)ImageFileL2

An image file to display; omit "File:".

Fileoptional
Image file (sixth row; full width)ImageFile3

An image file to display; omit "File:".

Fileoptional
Image file (seventh row, left half)ImageFileL3

An image file to display; omit "File:".

Fileoptional
Image file (seventh row, right half)ImageFileR3

An image file to display; omit "File:".

Fileoptional
Image name (first row, full width)ImageName

If set, this is the title of the image; it appears if you hover over it.

Stringoptional
Image size (first row, full width)ImageSize

Image width in pixels, with px suffix.

Default
220px
Example
200px
Stringoptional
Image alt text (first row, full width)ImageAlt

The text description read out to users who cannot see the image.

Stringoptional
Image caption (first row, full width)ImageCaption

Caption displayed below the image.

Contentoptional
Image reference (first row, full width)ImageFile_Ref

A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.

Contentoptional
Image name (second row, full width)ImageName1

If set, this is the title of the image; it appears if you hover over it.

Stringoptional
Image size (second row, full width)ImageSize1

Image width in pixels, with px suffix.

Default
220px
Example
200px
Stringoptional
Image alt text (second row, full width)ImageAlt1

The text description read out to users who cannot see the image.

Stringoptional
Image caption (second row, full width)ImageCaption1

Caption displayed below the image.

Contentoptional
Image reference (second row, full width)ImageFile1_Ref

A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.

Contentoptional
Image name (third row, left half)ImageNameL1

If set, this is the title of the image; it appears if you hover over it.

Stringoptional
Image size (third row, left half)ImageSizeL1

Image width in pixels, with px suffix.

Default
110px
Example
200px
Stringoptional
Image alt text (third row, left half)ImageAltL1

The text description read out to users who cannot see the image.

Stringoptional
Image caption (third row, left half)ImageCaptionL1

Caption displayed below the image.

Contentoptional
Image reference (third row, left half)ImageFileL1_Ref

A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.

Contentoptional
Image name (third row, right half)ImageNameR1

If set, this is the title of the image; it appears if you hover over it.

Stringoptional
Image size (third row, right half)ImageSizeR1

Image width in pixels, with px suffix.

Default
110px
Example
200px
Stringoptional
Image alt text (third row, right half)ImageAltR1

The text description read out to users who cannot see the image.

Stringoptional
Image caption (third row, right half)ImageCaptionR1

Caption displayed below the image.

Contentoptional
Image reference (third row, right half)ImageFileR1_Ref

A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.

Contentoptional
Image caption (third row, left and right halves)ImageCaptionLR1

Image caption for both halves of row 3.

Contentoptional
Image name (fourth row, full width)ImageName2

If set, this is the title of the image; it appears if you hover over it.

Stringoptional
Image size (fourth row, full width)ImageSize2

Image width in pixels, with px suffix.

Default
220px
Example
200px
Stringoptional
Image alt text (fourth row, full width)ImageAlt2

The text description read out to users who cannot see the image.

Stringoptional
Image caption (fourth row, full width)ImageCaption2

Caption displayed below the image.

Contentoptional
Image reference (fourth row, full width)ImageFile2_Ref

A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.

Contentoptional
Image name (fifth row, left half)ImageNameL2

If set, this is the title of the image; it appears if you hover over it.

Stringoptional
Image size (fifth row, left half)ImageSizeL2

Image width in pixels, with px suffix.

Default
110px
Example
200px
Stringoptional
Image alt text (fifth row, left half)ImageAltL2

The text description read out to users who cannot see the image.

Stringoptional
Image caption (fifth row, left half)ImageCaptionL2

Caption displayed below the image.

Contentoptional
Image reference (fifth row, left half)ImageFileL2_Ref

A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.

Contentoptional
Image name (fifth row, right half)ImageNameR2

If set, this is the title of the image; it appears if you hover over it.

Stringoptional
Image size (fifth row, right half)ImageSizeR2

Image width in pixels, with px suffix.

Default
110px
Example
200px
Stringoptional
Image alt text (fifth row, right half)ImageAltR2

The text description read out to users who cannot see the image.

Stringoptional
Image caption (fifth row, right half)ImageCaptionR2

Caption displayed below the image.

Contentoptional
Image reference (fifth row, right half)ImageFileR2_Ref

A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.

Contentoptional
Image caption (fifth row, left and right halves)ImageCaptionLR2

Image caption for both halves of row 5.

Contentoptional
Image name (sixth row, full width)ImageName3

If set, this is the title of the image; it appears if you hover over it.

Stringoptional
Image size (sixth row, full width)ImageSize3

Image width in pixels, with px suffix.

Default
220px
Example
200px
Stringoptional
Image alt text (sixth row, full width)ImageAlt3

The text description read out to users who cannot see the image.

Stringoptional
Image caption (sixth row, full width)ImageCaption3

Caption displayed below the image.

Contentoptional
Image reference (sixth row, full width)ImageFile3_Ref

A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.

Contentoptional
Image name (seventh row, left half)ImageNameL3

If set, this is the title of the image; it appears if you hover over it.

Stringoptional
Image size (seventh row, left half)ImageSizeL3

Image width in pixels, with px suffix.

Default
110px
Example
200px
Stringoptional
Image alt text (seventh row, left half)ImageAltL3

The text description read out to users who cannot see the image.

Stringoptional
Image caption (seventh row, left half)ImageCaptionL3

Caption displayed below the image.

Contentoptional
Image reference (seventh row, left half)ImageFileL3_Ref

A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.

Contentoptional
Image name (seventh row, right half)ImageNameR3

If set, this is the title of the image; it appears if you hover over it.

Stringoptional
Image size (seventh row, right half)ImageSizeR3

Image width in pixels, with px suffix.

Default
110px
Example
200px
Stringoptional
Image alt text (seventh row, right half)ImageAltR3

The text description read out to users who cannot see the image.

Stringoptional
Image caption (seventh row, right half)ImageCaptionR3

Caption displayed below the image.

Contentoptional
Image reference (seventh row, right half)ImageFileR3_Ref

A reference for this image. Use <ref> tags or equivalent such as {{cite book}}.

Contentoptional
Image caption (seventh row, left and right halves)ImageCaptionLR3

Image caption for both halves of row 7

Contentoptional
Image caption (all)ImageCaptionAll

An overall image caption.

Contentoptional
Other namesOtherNames

A list of other names. Using the {{Unbulleted list}} template is recommended, as separating names with commas can be ambiguous.

Example
{{Unbulleted list|Ethanoic acid|Acetic acid}}
Contentsuggested
IUPAC nameIUPACName

For a single name. Use IUPAC names for a plural.

Contentsuggested
IUPAC namesIUPACNames

For multiple names. Use IUPAC name for the singular.

Contentoptional
Preferred IUPAC namePIN

no description

Contentoptional
Systematic IUPAC nameSystematicName

no description

Contentsuggested
Names referenceNames_ref

A reference for the names. Use <ref> tags or equivalent such as {{cite book}}.

Contentoptional
Pronunciationpronounce

no description

Contentoptional
Section 1Section1

A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.

Contentsuggested
Section 2Section2

A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.

Contentsuggested
Section 3Section3

A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.

Contentsuggested
Section 4Section4

A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.

Contentsuggested
Section 5Section5

A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.

Contentsuggested
Section 6Section6

A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.

Contentsuggested
Section 7Section7

A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.

Contentoptional
Section 8Section8

A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.

Contentoptional
Section 9Section9

A section sub-template with more information. One of {{Chembox Identifiers}}, {{Chembox Properties}}, {{Chembox Structure}}, {{Chembox Thermochemistry}}, {{Chembox Explosive}}, {{Chembox Pharmacology}}, {{Chembox Hazards}}, or {{Chembox Related}}.

Contentoptional
Show footershow_footer

Set to no to hide the footer

Default
Defaults to "yes"
Booleanoptional
Verified fieldsVerifiedfields

Bot maintained; do not add, edit, or remove.

Unknownoptional
Watched fieldsWatchedfields

Bot maintained; do not add, edit, or remove.

Unknownoptional
Verified revision IDverifiedrevid

Bot maintained; do not add, edit, or remove.

Unknownoptional
Show standard state noteshow_ss_note

Set to "no" to hide the standard state note.

Booleanoptional
Show infobox referenceshow_infobox_ref

Set to "no" to hide the infobox reference notice.

Unknownoptional
General notegeneral_note

A general note to display in the bottom box.

Contentoptional
Data pagedata page pagename

Data page article name

Default
<compound> (data page)
Example
Properties of water
Unknownoptional
VerifiedimagesVerifiedimages

Bot-maintained parameter

Unknownoptional
Container_onlycontainer_only

=yes: will suppress general tracking

Stringoptional

See also

Template:Navbox Chembox