Difference between revisions of "Template:Chembox"

From WikiChem
Jump to: navigation, search
(rm deprecated parameters)
(widen box to 24em)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><!--Please do ''not'' subst this template. If you see this text in a document, the template 'chembox' has been substituted. In that case, please copy-and-paste the unsubstituted template from [[template:chembox]], move the data from here into that template, and remove the old template data. Thank you!
 
<includeonly><!--Please do ''not'' subst this template. If you see this text in a document, the template 'chembox' has been substituted. In that case, please copy-and-paste the unsubstituted template from [[template:chembox]], move the data from here into that template, and remove the old template data. Thank you!
-->{| class="infobox bordered" style="border-collapse: collapse; width: {{{BoxWidth|{{{width|22em}}}}}}; font-size: 88%"
+
-->{| class="infobox bordered" style="border-collapse: collapse; width: {{{BoxWidth|{{{width|24em}}}}}}; font-size: 88%"
 
! colspan=2 style="background-color: #f8eaba; text-align: center; font-size: 125%" | {{{Name|{{PAGENAME}}}}}{{{Reference|}}}
 
! colspan=2 style="background-color: #f8eaba; text-align: center; font-size: 125%" | {{{Name|{{PAGENAME}}}}}{{{Reference|}}}
|- <!--  
+
|-  
    IMAGE(S)  
+
<!-- IMAGE(S) -->  
    * if an image is specified
+
{{#if:{{{ImageFile|}}}{{{ImageFile1|}}}{{{ImageFile2|}}}{{{ImageFile3|}}}{{{ImageFileL1|}}}{{{ImageFileR1|}}}{{{ImageFileL2|}}}{{{ImageFileR2|}}}||{{#ifeq: {{NAMESPACE}} | {{ns:0}} | [[Category:Chemical pages needing a structure drawing]] }} }}
-->  
+
{{#if:{{{ImageFile|}}}| {{!}} align="center" colspan="2" bgcolor="#ffffff" {{!}} [[File:{{{ImageFile|}}}|{{px|{{{ImageSize|}}}|200px}}|{{{ImageName|}}}]] }}
{{#if:{{{ImageFile|}}}{{{ImageFile1|}}}{{{ImageFile2|}}}{{{ImageFile3|}}}{{{ImageFileL1|}}}{{{ImageFileR1|}}}{{{ImageFileL2|}}}{{{ImageFileR2|}}}|
+
|-
{{Chembox image|par_name={{{ImageName|}}}|par_value={{{ImageFile|}}}|par_size={{px|{{{ImageSize|}}}|200px}} }}
+
{{#if:{{{ImageFile1|}}}| {{!}} align="center" colspan="2" bgcolor="#ffffff" {{!}} [[File:{{{ImageFile1|}}}|{{px|{{{ImageSize1|}}}|200px}}|{{{ImageName1|}}}]] }}
{{Chembox image|par_name={{{ImageName1|}}}|par_value={{{ImageFile1|}}}|par_size={{px|{{{ImageSize1|}}}|200px}} }}
+
|-
{{Chembox image sbs|par_nameL={{{ImageNameL1|}}}|par_valueL={{{ImageFileL1|}}}|par_sizeL={{px|{{{ImageSizeL1|}}}|100px}} | par_nameR={{{ImageNameR1|}}}|par_valueR={{{ImageFileR1|}}}|par_sizeR={{px|{{{ImageSizeR1|}}}|100px}} }}
+
{{#if:{{{ImageFileL1|}}}| {{!}} [[File:{{{ImageFileL1}}}|{{px|{{{ImageSizeL1|}}}|100px}}|center|{{{ImageNameL1|}}}]]
{{Chembox image|par_name={{{ImageName2|}}}|par_value={{{ImageFile2|}}}|par_size={{px|{{{ImageSize2|}}}|200px}} }}
+
{{#if:{{{ImageFileR1|}}}| {{!}} [[File:{{{ImageFileR1}}}|{{px|{{{ImageSizeR1|}}}|100px}}|center|{{{ImageNameR1|}}}]] }} }}
{{Chembox image|par_name={{{ImageName3|}}}|par_value={{{ImageFile3|}}}|par_size={{px|{{{ImageSize3|}}}|200px}} }}
+
|-
{{Chembox image sbs|par_nameL={{{ImageNameL2|}}}|par_valueL={{{ImageFileL2|}}}|par_sizeL={{px|{{{ImageSizeL2|}}}|100px}} | par_nameR={{{ImageNameR2|}}}|par_valueR={{{ImageFileR2|}}}|par_sizeR={{px|{{{ImageSizeR2|}}}|100px}} }} <!--
+
{{#if:{{{ImageFile2|}}}| {{!}} align="center" colspan="2" bgcolor="#ffffff" {{!}} [[File:{{{ImageFile2|}}}|{{px|{{{ImageSize2|}}}|200px}}|{{{ImageName2|}}}]] }}
    * if no image is specified, look for possible image
+
|-
-->|
+
{{#if:{{{ImageFile3|}}}| {{!}} align="center" colspan="2" bgcolor="#ffffff" {{!}} [[File:{{{ImageFile3|}}}|{{px|{{{ImageSize3|}}}|200px}}|{{{ImageName3|}}}]] }}
{{#ifexist:Image:{{PAGENAME}}.svg|{{Chembox image|par_name=ImageFile|par_value={{PAGENAME}}.svg|par_size={{px|{{{ImageSize|}}}|200px}} }} |
+
|-
{{#ifexist:Image:{{PAGENAME}}.png|{{Chembox image|par_name=ImageFile|par_value={{PAGENAME}}.png|par_size={{px|{{{ImageSize|}}}|200px}} }} |  
+
{{#if:{{{ImageFileL2|}}}| {{!}} [[File:{{{ImageFileL2}}}|{{px|{{{ImageSizeL2|}}}|100px}}|center|{{{ImageNameL2|}}}]]
{{#ifexist:Image:{{PAGENAME}}.gif|{{Chembox image|par_name=ImageFile|par_value={{PAGENAME}}.gif|par_size={{px|{{{ImageSize|}}}|200px}} }} |
+
{{#if:{{{ImageFileR2|}}}| {{!}} [[File:{{{ImageFileR2}}}|{{px|{{{ImageSizeR2|}}}|100px}}|center|{{{ImageNameR2|}}}]] }} }}
{{#ifexist:Image:{{PAGENAME}}.jpg|{{Chembox image|par_name=ImageFile|par_value={{PAGENAME}}.jpg|par_size={{px|{{{ImageSize|}}}|200px}} }} <!--
+
|-
    * otherwise, add a cleanup category
 
-->|  
 
{{#ifeq: {{NAMESPACE}} | {{ns:0}} | [[Category:Chemical pages needing a structure drawing]] }} }} }} }} }}
 
}}
 
 
<!-- NON-MODULARIZED FIELDS -->
 
<!-- NON-MODULARIZED FIELDS -->
{{Chembox entry|par_name={{#if:{{{IUPACName|}}}|IUPACName }} |par_value={{{IUPACName|}}} }}
+
{{#if:{{{IUPACName|}}} | {{!}} [[International Union of Pure and Applied Chemistry nomenclature|IUPAC name]] {{!!}} {{{IUPACName}}} }}
{{Chembox entry|par_name={{#if:{{{SystematicName|}}}|SystematicName }} |par_value={{{SystematicName|}}} }}
+
|-
{{Chembox entry|par_name={{#if:{{{OtherNames|}}}|OtherNames }} |par_value={{{OtherNames|}}} }}
+
{{#if:{{{SystematicName|}}} | {{!}} [[IUPAC nomenclature|Systematic name]] {{!!}} {{{SystematicName}}} }}
 +
|-
 +
{{#if:{{{OtherNames|}}} | {{!}} Other names {{!!}} {{{OtherNames}}} }}
 +
|-
 
<!-- * add cleanup category if template contains misplaced parameters -->
 
<!-- * add cleanup category if template contains misplaced parameters -->
 
{{#if:{{{Formula|}}}{{{MolarMass|}}}{{{CASNo|}}}{{{Density|}}}{{{Solubility|}}}{{{Solvent|}}}{{{MeltingPt|}}}{{{BoilingPt|}}}{{{LogP|}}}{{{VaporPressure|}}}{{{HenryConstant|}}}{{{AtmosphericOHRateConstant|}}}{{{pKa|}}}{{{pKb|}}}{{{IsoelectricPt|}}}{{{DeltaHf|}}}{{{DeltaHc|}}}{{{EINECS|}}}{{{EINECSCASNO|}}}{{{PubChem|}}}{{{SMILES|}}}{{{InChI|}}}|[[Category:Chemical infoboxes with misplaced or deprecated parameters]]}}  
 
{{#if:{{{Formula|}}}{{{MolarMass|}}}{{{CASNo|}}}{{{Density|}}}{{{Solubility|}}}{{{Solvent|}}}{{{MeltingPt|}}}{{{BoilingPt|}}}{{{LogP|}}}{{{VaporPressure|}}}{{{HenryConstant|}}}{{{AtmosphericOHRateConstant|}}}{{{pKa|}}}{{{pKb|}}}{{{IsoelectricPt|}}}{{{DeltaHf|}}}{{{DeltaHc|}}}{{{EINECS|}}}{{{EINECSCASNO|}}}{{{PubChem|}}}{{{SMILES|}}}{{{InChI|}}}|[[Category:Chemical infoboxes with misplaced or deprecated parameters]]}}  

Latest revision as of 12:41, 23 August 2009

[edit] [purge] Template-info-500px.png Template documentation

Usage

Parameters

Examples

See also

Error creating thumbnail: Unable to save thumbnail to destination
Wikipedia-logo.png This template was originally imported from Wikipedia, specifically this version of the template "Template:Chembox". Please see the history page on Wikipedia for the original authors. This WikiChem template may have been modified since it was imported. It is licensed under the Creative Commons Attribution–Share Alike 3.0 Unported license.