Difference between revisions of "Template:Chembox Identifiers"

From WikiChem
Jump to: navigation, search
Line 5: Line 5:
 
{{#if:{{{Abbreviations|}}} | {{!}} Abbreviations {{!!}} {{{Abbreviations}}} }}
 
{{#if:{{{Abbreviations|}}} | {{!}} Abbreviations {{!!}} {{{Abbreviations}}} }}
 
|-
 
|-
{{#if:{{{CASNo|}}} | {{!}} bgcolor = "{{{color_l|}}}" {{!}} [[CAS registry number|CAS number]] {{!!}} bgcolor = "{{{color_r|}}}" {{!}} {{#if:{{{CASNo|}}} |  
+
{{#if:{{{CASNo|}}} | {{!}} [[CAS registry number|CAS number]] {{!!}} {{#if:{{{CASNo|}}} |  {{chembox val fmt | val=[<span class="reflink plainlinks neverexpand">[http://www.commonchemistry.org/ChemicalDetail.aspx?ref={{{CASNo}}} {{{CASNo}}}]</span>]| fmt={{#switch:{{{CASNo_Ref|}}}x | {{cascite}}x=2 | changedx=3 | x=0 | #default=1 }} }} }}{{#if:{{{CASNos|}}}|{{#if:{{{CASNo|}}}|, }}{{{CASNos|}}} }}{{#if:{{{CASOther|}}}|{{#if:{{{CASNo|}}}{{{CASNos|}}}|, }}{{{CASOther|}}} }} |<includeonly>[[Category:Chemical pages needing a CAS Registry Number]]</includeonly> }}
   {{chembox val fmt  
 
    |val=[<span class="reflink plainlinksneverexpand">[http://www.commonchemistry.org/ChemicalDetail.aspx?ref={{{CASNo}}} {{{CASNo}}}]</span>]
 
    |fmt={{#switch:{{{CASNo_Ref|}}}x | {{cascite}}x=2 | changedx=3 | x=0 | #default=1 }}
 
  }} }}
 
{{#if:{{{CASNos|}}}|{{#if:{{{CASNo|}}}|, }}{{{CASNos|}}} }}{{#if:{{{CASOther|}}}|{{#if:{{{CASNo|}}}{{{CASNos|}}}|, }}{{{CASOther|}}} }} |<includeonly>[[Category:Chemical pages needing a CAS Registry Number]]</includeonly>}}
 
 
|-
 
|-
 
{{#if:{{{PubChem|}}} | {{!}} [[PubChem]] {{!!}} <span class="reflink plainlinks neverexpand">[http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid={{{PubChem}}} {{{PubChem}}}]</span> }}
 
{{#if:{{{PubChem|}}} | {{!}} [[PubChem]] {{!!}} <span class="reflink plainlinks neverexpand">[http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid={{{PubChem}}} {{{PubChem}}}]</span> }}

Revision as of 20:53, 13 August 2009

}}

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-</includeonly>

[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 Identifiers". 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.