टेम्पलेट:Chembox Identifiers: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
Now without apparent breakage
imported>DePiep
Expand SMILES-Jmol options, +minor changes (label). See Chembox talk
लाइन 1:
{{#if:{{{Abbreviations|}}}{{{IUPHAR_ligand|}}}{{{IUPHAR_ligand1|}}}{{{IUPHAR_ligand2|}}}{{{IUPHAR_ligand3|}}}{{{IUPHAR_ligand4|}}}{{{IUPHAR_ligand5|}}}{{{IUPHAR_ligand_Other|}}}{{{RTECS|}}}{{{Beilstein|}}}{{{Gmelin|}}}{{{3DMet|}}}{{{EINECS|}}}{{{EC_number|}}}{{{E_number|}}}{{{EC_number_Comment|}}}{{{UNNumber|}}}{{{MeSHName|}}}<!--
-->{{#invoke:String|replace|source={{{CASNo|}}} {{{CASNo1|}}} {{{CASNo2|}}} {{{CASNo3|}}} {{{CASNo4|}}} {{{CASNo5|}}} |pattern=none[Nn]one |replace=|plain=truefalse }}{{{CASNoOther|}}}
{{{ChEBI|}}}{{{ChEBI1|}}}{{{ChEBI2|}}}{{{ChEBI3|}}}{{{ChEBI4|}}}{{{ChEBI5|}}}{{{ChEBIOther|}}}
{{{ChEMBL|}}}{{{ChEMBL1|}}}{{{ChEMBL2|}}}{{{ChEMBL3|}}}{{{ChEMBL4|}}}{{{ChEMBL5|}}}{{{ChEMBLOther|}}}<!--
-->{{#invoke:String|replace|source={{{ChemSpiderID|}}} {{{ChemSpiderID1|}}} {{{ChemSpiderID2|}}} {{{ChemSpiderID3|}}} {{{ChemSpiderID4|}}} {{{ChemSpiderID5|}}} |pattern=none[Nn]one |replace=|plain=truefalse }}{{{ChemSpiderIDOther|}}}
{{{DrugBank|}}}{{{DrugBank1|}}}{{{DrugBank2|}}}{{{DrugBank3|}}}{{{DrugBank4|}}}{{{DrugBank5|}}}{{{DrugBankOther|}}}
|_CASnone={{#ifexpr:{{#invoke:String|find replace|source=_{{{CASNoJmol|}}}_ {{{CASNo1Jmol1|}}}_ {{{CASNo2Jmol2|}}}_ {{{CASNo3Jmol3|}}}_ {{{CASNo4Jmol4|}}}_ {{{CASNo5Jmol5|}}}_ |targetpattern=_none_[Nn]one |replace=|plain=truefalse }}>0|1|0}}
{{{KEGG|}}}{{{KEGG1|}}}{{{KEGG2|}}}{{{KEGG3|}}}{{{KEGG4|}}}{{{KEGG5|}}}{{{KEGGOther|}}}
{{{PubChem|}}}{{{PubChem1|}}}{{{PubChem2|}}}{{{PubChem3|}}}{{{PubChem4|}}}{{{PubChem5|}}}{{{PubChemOther|}}}
Line 19 ⟶ 20:
-->{{Chembox CASNo/parametercheck
|_countCASNo={{#invoke:ParameterCount|main|pattern1=^CASNo%d?$}}
|_countPubChem={{#invoke:ParameterCount|main|pattern1=^PubChem%d?$}}
|_CASnone={{#ifexpr:{{#invoke:String|find |source=_{{{CASNo|}}}_{{{CASNo1|}}}_{{{CASNo2|}}}_{{{CASNo3|}}}_{{{CASNo4|}}}_{{{CASNo5|}}}_ |target=_none_ |plain=true }}>0|1|0}}
|_countChEBI={{#invoke:ParameterCount|main|pattern1=^ChEBI%d?$}}
|_CASnone={{#ifexpr:{{#invoke:String|find |source=_{{{CASNo|}}}_{{{CASNo1|}}}_{{{CASNo2|}}}_{{{CASNo3|}}}_{{{CASNo4|}}}_{{{CASNo5|}}}_ |target=_[Nn]one_ |plain=false }}>0|1|0}}
}}<!--
 
Line 27 ⟶ 30:
||[[Category:Articles without EBI source]]}}<!--
-->{{#if:{{{ChemSpiderID|}}}{{{ChemSpiderID1|}}}{{{ChemSpiderID2|}}}{{{ChemSpiderID3|}}}{{{ChemSpiderID4|}}}{{{ChemSpiderID5|}}}|
{{#ifeq:{{#invoke:String|find |source=_{{{ChemSpiderID|}}}_{{{ChemSpiderID1|}}}{{{ChemSpiderID2|}}}_{{{ChemSpiderID3|}}}_{{{ChemSpiderID4|}}}_{{{ChemSpiderID5|}}}_ |target=_none_ |plain=true }}|0|<!-- OK, no 'none' -->|[[Category:Chemicals that do not have a ChemSpider ID assigned]] }} |[[Category:Chemical pages without ChemSpiderID]]}}<!--
drugbank rm
-->{{#if:{{{KEGG|}}}{{{KEGG1|}}}{{{KEGG2|}}}{{{KEGG3|}}}{{{KEGG4|}}}{{{KEGG5|}}}
||[[Category:Articles without KEGG source]]}}<!--
-->{{#if:{{{StdInChI|}}}{{{StdInChIKey|}}}{{{InChI|}}}{{{InChIKey|}}}{{{InChI1|}}}{{{InChIKey1|}}}{{{InChI2|}}}{{{InChIKey2|}}}{{{InChI3|}}}{{{InChIKey3|}}}{{{InChI4|}}}{{{InChIKey4|}}}{{{InChI5|}}}{{{InChIKey5|}}}
||[[Category:Articles without InChI source]]}}<!--
 
-->{{#if:{{{UNII|}}}{{{UNII1|}}}{{{UNII2|}}}{{{UNII3|}}}{{{UNII4|}}}{{{UNII5|}}}
||[[Category:Articles without UNII source]]}}<!--
 
 
-->|addTESTdata=<!-- use colon for category [[:Category...] (to not pollute tracking categories)
 
----- templatepar -----
Line 46 ⟶ 50:
InChIKey= InChIKey_Ref= InChIKey1= InChIKey1_Ref= InChIKey2= InChIKey2_Ref= InChIKey3= InChIKey3_Ref= InChIKey4= InChIKey4_Ref= InChIKey5= InChIKey5_Ref=
InChIOther=
Jmol= Jmol1= Jmol2= Jmol3= Jmol4= Jmol5=
KEGG1= KEGG1_Comment= KEGG1_Ref= KEGG2= KEGG2_Comment= KEGG2_Ref= KEGG3= KEGG3_Comment= KEGG3_Ref= KEGG4= KEGG4_Comment= KEGG4_Ref= KEGG5= KEGG5_Comment= KEGG5_Ref= KEGG= KEGGOther= KEGG_Comment= KEGG_Ref= MeSHName= PubChem1= PubChem1_Comment= PubChem2= PubChem2_Comment= PubChem3= PubChem3_Comment= PubChem4= PubChem4_Comment= PubChem5= PubChem5_Comment= PubChem= PubChemOther= PubChem_Comment= RTECS= SMILES= SMILES_Comment= SMILES1= SMILES1_Comment= SMILES2= SMILES2_Comment= SMILES3= SMILES3_Comment= SMILES4= SMILES4_Comment= SMILES5= SMILES5_Comment= SMILESOther=
StdInChI= StdInChI_Comment= StdInChI_Ref= StdInChIKey= StdInChIKey_Ref=
Line 63 ⟶ 68:
|CASNo5={{#switch:{{{CASNo5|}}}||none=|#default={{Chembox CASNo/format |CASNo={{{CASNo5|}}}|CASNo_comment={{{CASNo5_Comment|}}}|CASNo_Ref={{{CASNo5_Ref|}}} }}}}
|CASNoOther={{{CASNoOther|}}} }}}}<!--
 
<! ----- Jmol 3D image (links are created from the SMILES value) -->
{{#if:{{#invoke:String|replace|source={{{Jmol|{{{SMILES|}}}}}} {{{Jmol1|{{{SMILES1|}}}}}} {{{Jmol2|{{{SMILES2|}}}}}} {{{Jmol3|{{{SMILES3|}}}}}} {{{Jmol4|{{{SMILES4|}}}}}} {{{Jmol5|{{{SMILES5|}}}}}} |pattern=[Nn]one |replace=|plain=false }}
|{{Chembox Jmol
|Jmol ={{#if:{{{Jmol|}}}{{{SMILES|}}} |{{#switch:{{{Jmol|}}}|none|None=|#default={{Chembox Jmol/format/sandbox |SMILES={{{Jmol|{{{SMILES|}}}}}}
|Jmol_comment={{{SMILES_Comment|}}} }}}}}}
 
|Jmol1 ={{#if:{{{Jmol1|}}}{{{SMILES1|}}} |{{#switch:{{{Jmol1|}}}|none|None=|#default={{Chembox Jmol/format/sandbox |SMILES={{{Jmol1|{{{SMILES1|}}}}}}
|Jmol_comment={{{SMILES1_Comment|}}} }}}}}}
 
|Jmol2 ={{#if:{{{Jmol2|}}}{{{SMILES2|}}} |{{#switch:{{{Jmol2|}}}|none|None=|#default={{Chembox Jmol/format/sandbox |SMILES={{{Jmol2|{{{SMILES2|}}}}}}
|Jmol_comment={{{SMILES2_Comment|}}} }}}}}}
 
|Jmol3 ={{#if:{{{Jmol3|}}}{{{SMILES3|}}} |{{#switch:{{{Jmol3|}}}|none|None=|#default={{Chembox Jmol/format/sandbox |SMILES={{{Jmol3|{{{SMILES3|}}}}}}
|Jmol_comment={{{SMILES3_Comment|}}} }}}}}}
 
|Jmol4 ={{#if:{{{Jmol4|}}}{{{SMILES4|}}} |{{#switch:{{{Jmol4|}}}|none|None=|#default={{Chembox Jmol/format/sandbox |SMILES={{{Jmol4|{{{SMILES4|}}}}}}
|Jmol_comment={{{SMILES4_Comment|}}} }}}}}}
 
|Jmol5 ={{#if:{{{Jmol5|}}}{{{SMILES5|}}} |{{#switch:{{{Jmol5|}}}|none|None=|#default={{Chembox Jmol/format/sandbox |SMILES={{{Jmol5|{{{SMILES5|}}}}}}
|Jmol_comment={{{SMILES5_Comment|}}} }}}}}}
 
}}}}<!--
----- 3DMet -->
{{#if:{{{3DMet|}}} |{{Chembox 3DMet |3DMet={{{3DMet|}}} }}}}<!--
----- abbr -->
{{#if:{{{Abbreviations|}}} |{{Chembox Abbreviations |value={{{Abbreviations|}}} }}}}<!--
----- Beilstein -->
{{#if:{{{Beilstein|}}} |{{Chembox Beilstein|value={{{Beilstein|}}} }}}}<!--
----- ChEBI ----- -->
Line 132 ⟶ 161:
|IUPHAR_ligand5={{#if:{{{IUPHAR_ligand5|}}} |{{Chembox IUPHAR_ligand/format |IUPHAR_ligand={{{IUPHAR_ligand5|}}} |IUPHAR_ligand_comment={{{IUPHAR_ligand5_Comment|}}} }}}}
|IUPHAR_ligand_Other={{{IUPHAR_ligand_Other|}}}
}}}}<!--
<!-- Jmol image links are created from the SMILES value -->
{{#if:{{{SMILES|}}}{{{SMILES1|}}}{{{SMILES2|}}}{{{SMILES3|}}}{{{SMILES4|}}}{{{SMILES5|}}}{{{SMILESOther|}}}
|{{Chembox Jmol
|Jmol ={{#if:{{{SMILES|}}} |{{Chembox Jmol/format |SMILES={{{SMILES|}}}
|Jmol_comment={{{SMILES_Comment|}}} }}}}
|Jmol1={{#if:{{{SMILES1|}}}|{{Chembox Jmol/format |SMILES={{{SMILES1|}}}
|Jmol_comment={{{SMILES1_Comment|}}} }}}}
|Jmol2={{#if:{{{SMILES2|}}}|{{Chembox Jmol/format |SMILES={{{SMILES2|}}}
|Jmol_comment={{{SMILES2_Comment|}}} }}}}
|Jmol3={{#if:{{{SMILES3|}}}|{{Chembox Jmol/format |SMILES={{{SMILES3|}}}
|Jmol_comment={{{SMILES3_Comment|}}} }}}}
|Jmol4={{#if:{{{SMILES4|}}}|{{Chembox Jmol/format |SMILES={{{SMILES4|}}}
|Jmol_comment={{{SMILES4_Comment|}}} }}}}
|Jmol5={{#if:{{{SMILES5|}}}|{{Chembox Jmol/format |SMILES={{{SMILES5|}}}
|Jmol_comment={{{SMILES5_Comment|}}} }}}}
}}}}<!--
KEGG -->
{{#if:{{{KEGG|}}}{{{KEGG1|}}}{{{KEGG2|}}}{{{KEGG3|}}}{{{KEGG4|}}}{{{KEGG5|}}}{{{KEGGOther|}}}