Difference between revisions of "Template:Chembox Identifiers"

From WikiChem
Jump to: navigation, search
(link classes)
Line 5: Line 5:
 
{{#if:{{{Abbreviations|}}} | {{!}} Abbreviations {{!!}} {{{Abbreviations}}} }}
 
{{#if:{{{Abbreviations|}}} | {{!}} Abbreviations {{!!}} {{{Abbreviations}}} }}
 
|-
 
|-
{{Chembox CASNo|value={{#if:{{{CASNo|}}}|{{{CASNo}}} }} |value_ref={{#if:{{{CASNo_Ref|}}}|{{{CASNo_Ref}}} }} |value2={{#if:{{{CASNos|}}}|{{{CASNos}}} }}|value3={{#if:{{{CASOther|}}}|{{{CASOther}}} }} }}
+
{{#if:{{{CASNo|}}} | {{!}} bgcolor = "{{{color_l|}}}" {{!}} [[CAS registry number|CAS number]] {{!!}} bgcolor = "{{{color_r|}}}" {{!}} {{#if:{{{CASNo|}}} |  
 +
  {{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> }}
Line 25: Line 30:
 
{{#if:{{{RTECS|}}}| {{!}} [[Registry of Toxic Effects of Chemical Substances|RTECS]] {{!!}} {{{RTECS}}} }}  
 
{{#if:{{{RTECS|}}}| {{!}} [[Registry of Toxic Effects of Chemical Substances|RTECS]] {{!!}} {{{RTECS}}} }}  
 
|-
 
|-
{{Chembox entry|par_name={{#if:{{{ATCCode|}}}{{{ATCCode_prefix|}}}{{{ATCCode_suffix|}}}{{{ATC_Supplemental|}}}|ATCCode }} | par_value={{#if:{{{ATCCode|}}}|{{{ATCCode}}} }} | par_value1={{#if:{{{ATCCode_prefix|}}}|{{{ATCCode_prefix}}} }} | par_value2={{#if:{{{ATCCode_suffix|}}}|{{{ATCCode_suffix}}} }} | par_value3={{#if:{{{ATC_Supplemental|}}}|{{{ATC_Supplemental}}} }} | par_value4={{#if:{{{ATCvet|}}}|{{{ATCvet}}} }} }}
+
{{#if:{{{ATCCode|}}}{{{ATCCode_prefix|}}}{{{ATCCode_suffix|}}}{{{ATC_Supplemental|}}} | {{!}} [[ATC{{#ifeq:{{{ATCvet|}}}|yes|vet}} code]] {{!!}} {{#if:{{{ATCCode|}}}|<span class="reflink plainlinks neverexpand">{{#ifeq:{{{ATCvet|}}}|yes|[http://www.whocc.no/atcvet/database/index.php?query=Q{{{ATCCode}}} Q{{{ATCCode}}}] | [http://www.whocc.no/atcddd/indexdatabase/index.php?query={{{ATCCode}}} {{{ATCCode}}}]}}</span>}}{{#if:{{{ATCCode_prefix|}}}{{{ATCCode_suffix|}}}|{{#if:{{{ATCCode|}}}|, }}[[ATC code {{{ATCCode_prefix}}}|{{#ifeq:{{{ATCvet|}}}|yes|Q}}{{{ATCCode_prefix}}}]]<span class="reflink plainlinks neverexpand">[{{#ifeq:{{{ATCvet}}} | yes | http://www.whocc.no/atcvet/database/index.php?query=Q{{{ATCCode_prefix}}}{{{ATCCode_suffix}}} {{{ATCCode_suffix}}} | http://www.whocc.no/atcddd/indexdatabase/index.php?query={{{ATCCode_prefix}}}{{{ATCCode_suffix}}} {{{ATCCode_suffix}}}}}]</span> }}{{#if:{{{ATC_Supplemental|}}}|{{#if:{{{ATCCode|}}}{{{ATCCode_prefix|}}}{{{ATCCode_suffix|}}}|, }}{{{ATC_Supplemental}}}}} }}
 
|-
 
|-
{{Chembox entry|par_name={{#if:{{{SMILES|}}}{{{FullSMILES|}}}{{{DispSMILES|}}}|SMILES }}                 |par_value={{#if:{{{SMILES|}}}|{{{SMILES}}} }} |par_value2={{#if:{{{FullSMILES|}}}|{{{FullSMILES}}} }}|par_value3={{#if:{{{DispSMILES|}}}|{{{DispSMILES}}} }} }}
+
{{#if:{{{SMILES|}}}{{{FullSMILES|}}}{{{DispSMILES|}}} | {{!}} [[Simplified molecular input line entry specification|SMILES]] {{!!}} <small><tt>{{#if:{{{FullSMILES|}}}|{{#if:{{{DispSMILES|}}}|{{Collapsible list|title = &nbsp; |list_style  = text-align:left;display:none; |1 ={{{DispSMILES}}} }}|{{Collapsible list|title = &nbsp; |list_style  = text-align:left;display:none; |1 ={{{SMILES|}}}}}| }}|{{#if:{{{DispSMILES|}}}|{{#if:{{{SMILES|}}}|{{Collapsible list|title = &nbsp; |list_style  = text-align:left;display:none; |1 ={{{DispSMILES}}}}}|{{Collapsible list|title = &nbsp; |list_style  = text-align:left;display:none; |1 ={{{DispSMILES}}}}} }}|{{Collapsible list|title = &nbsp; |list_style  = text-align:left;display:none; |1 ={{{SMILES|}}}}} }} }}</tt></small> }}
 
|-
 
|-
{{Chembox entry|par_name={{#if:{{{InChI|}}}{{{FullInChI|}}}{{{DispInChI|}}}|InChI }}                 |par_value={{#if:{{{InChI|}}}|{{{InChI}}} }} |par_value2={{#if:{{{FullInChI|}}}|{{{FullInChI}}} }}|par_value3={{#if:{{{DispInChI|}}}|{{{DispInChI}}} }} }}
+
{{#if:{{{InChI|}}}{{{FullInChI|}}}{{{DispInChI|}}}| {{!}} [[International Chemical Identifier|InChI]] {{!!}} <small>{{#if:{{{FullInChI|}}}|{{#if:{{{DispInChI|}}}|{{{DispInChI}}}|{{Collapsible list|title = &nbsp; |liststyle  = text-align:left;display:none; |1 = {{{InChI|}}} }}| }}|{{#if:{{{DispInChI|}}}|{{#if:{{{InChI|}}}|{{Collapsible list|title = &nbsp; |liststyle  = text-align:left;display:none; |1 = {{{DispInChI}}} }} }}|{{Collapsible list|title = &nbsp; |liststyle  = text-align:left;display:none; |1 = {{{InChI|}}} }} }} }}</small> }}
 
|-
 
|-
 
{{#if:{{{Beilstein|}}} | {{!}} [[Beilstein Registry Number|Beilstein]] {{!!}} {{{Beilstein}}} }} <!-- used 5 times on WP -->
 
{{#if:{{{Beilstein|}}} | {{!}} [[Beilstein Registry Number|Beilstein]] {{!!}} {{{Beilstein}}} }} <!-- used 5 times on WP -->

Revision as of 20:46, 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.