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

Content deleted Content added
imported>DePiep
Minor changes in Chembox. (See talk, March 2017, 2nd set)
imported>DePiep
Minor changes in Chembox. (See talk, March 2017: debugged)
लाइन 1:
<!-- Mar 2017: section always shows (when called). Could be header without data rows; is tracked.
{{#if:{{{Abbreviations|}}}{{{IUPHAR_ligand|}}}{{{IUPHAR_ligand1|}}}{{{IUPHAR_ligand2|}}}{{{IUPHAR_ligand3|}}}{{{IUPHAR_ligand4|}}}{{{IUPHAR_ligand5|}}}{{{IUPHAR_ligand_Other|}}}{{{RTECS|}}}{{{Beilstein|}}}{{{Gmelin|}}}{{{3DMet|}}}{{{EINECS|}}}{{{EC_number|}}}{{{EC_number_Comment|}}}{{{UNNumber|}}}{{{MeSHName|}}}<!--
-->{{#invoke:String|replace|source={{{CASNo|}}} {{{CASNo1|}}} {{{CASNo2|}}} {{{CASNo3|}}} {{{CASNo4|}}} {{{CASNo5|}}} |pattern=[Nn]one |replace=|plain=false }}{{{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=[Nn]one |replace=|plain=false }}{{{ChemSpiderIDOther|}}}
{{{DrugBank|}}}{{{DrugBank1|}}}{{{DrugBank2|}}}{{{DrugBank3|}}}{{{DrugBank4|}}}{{{DrugBank5|}}}{{{DrugBankOther|}}}
{{#invoke:String|replace|source={{{Jmol|}}} {{{Jmol1|}}} {{{Jmol2|}}} {{{Jmol3|}}} {{{Jmol4|}}} {{{Jmol5|}}} |pattern=[Nn]one |replace=|plain=false }}
{{{KEGG|}}}{{{KEGG1|}}}{{{KEGG2|}}}{{{KEGG3|}}}{{{KEGG4|}}}{{{KEGG5|}}}{{{KEGGOther|}}}
{{{PubChem|}}}{{{PubChem1|}}}{{{PubChem2|}}}{{{PubChem3|}}}{{{PubChem4|}}}{{{PubChem5|}}}{{{PubChemOther|}}}
{{{UNII|}}}{{{UNII1|}}}{{{UNII2|}}}{{{UNII3|}}}{{{UNII4|}}}{{{UNII5|}}}{{{UNIIOther|}}}
{{{StdInChI|}}}{{{StdInChIKey|}}}{{{InChI|}}}{{{InChIKey|}}}{{{InChI1|}}}{{{InIKey1|}}}{{{InChI2|}}}{{{InChIKey2|}}}{{{InChI3|}}}{{{InChIKey3|}}}{{{InChI4|}}}{{{InChIKey4|}}}{{{InChI5|}}}{{{InChIKey5|}}}{{{InChIOther|}}}
{{{SMILES|}}}{{{SMILES1|}}}{{{SMILES2|}}}{{{SMILES3|}}}{{{SMILES4|}}}{{{SMILES5|}}}{{{SMILESOther|}}}
|<!-- then:
----- HEADER -----
-->{{Chembox headerbar
Line 20 ⟶ 8:
-->|addTESTdata=<!--
 
ADD TRACKING CATS (all will act in mainspace only)
-->|addcats={{Chembox parametercheck
|_countCASNo={{#invoke:ParameterCount|main|pattern1=^CASNo%d?$}}
Line 39 ⟶ 27:
||[[Category:Articles without UNII source]]}}<!--
-->{{#if:{{{Jmol|}}}{{{Jmol1|}}}{{{Jmol2|}}}{{{Jmol3|}}}{{{Jmol4|}}}{{{Jmol5|}}} |[[Category:Chemical articles having Jmol set]]}}<!--
Has input data to show?
-->{{#if:{{{Abbreviations|}}}{{{IUPHAR_ligand|}}}{{{IUPHAR_ligand1|}}}{{{IUPHAR_ligand2|}}}{{{IUPHAR_ligand3|}}}{{{IUPHAR_ligand4|}}}{{{IUPHAR_ligand5|}}}{{{IUPHAR_ligand_Other|}}}{{{RTECS|}}}{{{Beilstein|}}}{{{Gmelin|}}}{{{3DMet|}}}{{{EINECS|}}}{{{EC_number|}}}{{{EC_number_Comment|}}}{{{UNNumber|}}}{{{MeSHName|}}}<!--
-->{{#invoke:String|replace|source={{{CASNo|}}} {{{CASNo1|}}} {{{CASNo2|}}} {{{CASNo3|}}} {{{CASNo4|}}} {{{CASNo5|}}} |pattern=[Nn]one |replace=|plain=false }}{{{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=[Nn]one |replace=|plain=false }}{{{ChemSpiderIDOther|}}}
{{{DrugBank|}}}{{{DrugBank1|}}}{{{DrugBank2|}}}{{{DrugBank3|}}}{{{DrugBank4|}}}{{{DrugBank5|}}}{{{DrugBankOther|}}}<!--
-->{{#invoke:String|replace|source={{{Jmol|}}} {{{Jmol1|}}} {{{Jmol2|}}} {{{Jmol3|}}} {{{Jmol4|}}} {{{Jmol5|}}} |pattern=[Nn]one |replace=|plain=false }}
{{{KEGG|}}}{{{KEGG1|}}}{{{KEGG2|}}}{{{KEGG3|}}}{{{KEGG4|}}}{{{KEGG5|}}}{{{KEGGOther|}}}
{{{PubChem|}}}{{{PubChem1|}}}{{{PubChem2|}}}{{{PubChem3|}}}{{{PubChem4|}}}{{{PubChem5|}}}{{{PubChemOther|}}}<!--
-->{{{UNII|}}}{{{UNII1|}}}{{{UNII2|}}}{{{UNII3|}}}{{{UNII4|}}}{{{UNII5|}}}{{{UNIIOther|}}}
{{{StdInChI|}}}{{{StdInChIKey|}}}{{{InChI|}}}{{{InChIKey|}}}{{{InChI1|}}}{{{InIKey1|}}}{{{InChI2|}}}{{{InChIKey2|}}}{{{InChI3|}}}{{{InChIKey3|}}}{{{InChI4|}}}{{{InChIKey4|}}}{{{InChI5|}}}{{{InChIKey5|}}}{{{InChIOther|}}}<!--
-->{{{SMILES|}}}{{{SMILES1|}}}{{{SMILES2|}}}{{{SMILES3|}}}{{{SMILES4|}}}{{{SMILES5|}}}{{{SMILESOther|}}}{{#invoke:Wikidata|claim|P628}}{{#invoke:Wikidata|claim|P2566}} |<!-- ok, has data -->|[[Category:Chemical infoboxes with tracked parameters]]}}<!--
END addcats list
 
----- templatepar -----
Line 45 ⟶ 47:
|template=Template:Chembox Identifiers
|all= |opt= Identifiers_ref=
3DMet= Abbreviations= Beilstein= CASNo1= CASNo1_Comment= CASNo1_Ref= CASNo2= CASNo2_Comment= CASNo2_Ref= CASNo3= CASNo3_Comment= CASNo3_Ref= CASNo4= CASNo4_Comment= CASNo4_Ref= CASNo5= CASNo5_Comment= CASNo5_Ref= CASNo= CASNoOther= CASNo_Comment= CASNo_Ref= ChEBI1= ChEBI1_Comment= ChEBI1_Ref= ChEBI2= ChEBI2_Comment= ChEBI2_Ref= ChEBI3= ChEBI3_Comment= ChEBI3_Ref= ChEBI4= ChEBI4_Comment= ChEBI4_Ref= ChEBI5= ChEBI5_Comment= ChEBI5_Ref= ChEBI= ChEBIOther= ChEBI_Comment= ChEBI_Ref= ChEMBL1= ChEMBL1_Comment= ChEMBL1_Ref= ChEMBL2= ChEMBL2_Comment= ChEMBL2_Ref= ChEMBL3= ChEMBL3_Comment= ChEMBL3_Ref= ChEMBL4= ChEMBL4_Comment= ChEMBL4_Ref= ChEMBL5= ChEMBL5_Comment= ChEMBL5_Ref= ChEMBL= ChEMBLOther= ChEMBL_Comment= ChEMBL_Ref= ChemSpiderID1= ChemSpiderID1_Comment= ChemSpiderID1_Ref= ChemSpiderID2= ChemSpiderID2_Comment= ChemSpiderID2_Ref= ChemSpiderID3= ChemSpiderID3_Comment= ChemSpiderID3_Ref= ChemSpiderID4= ChemSpiderID4_Comment= ChemSpiderID4_Ref= ChemSpiderID5= ChemSpiderID5_Comment= ChemSpiderID5_Ref= ChemSpiderID= ChemSpiderIDOther= ChemSpiderID_Comment= ChemSpiderID_Ref= DrugBank1= DrugBank1_Comment= DrugBank1_Ref= DrugBank2= DrugBank2_Comment= DrugBank2_Ref= DrugBank3= DrugBank3_Comment= DrugBank3_Ref= DrugBank4= DrugBank4_Comment= DrugBank4_Ref= DrugBank5= DrugBank5_Comment= DrugBank5_Ref= DrugBank= DrugBankOther= DrugBank_Comment= DrugBank_Ref= EC_number= EC_number_Comment= <!-- E_number= E_number_Comment= dropped; from wikidata -->EINECS= Gmelin= IUPHAR_ligand= IUPHAR_ligand1= IUPHAR_ligand2= IUPHAR_ligand3= IUPHAR_ligand4= IUPHAR_ligand5= IUPHAR_ligand_Comment= IUPHAR_ligand1_Comment= IUPHAR_ligand2_Comment= IUPHAR_ligand3_Comment= IUPHAR_ligand4_Comment= IUPHAR_ligand5_Comment= IUPHAR_ligand_Other=
InChI= InChI_Comment= InChI_Ref= InChI1= InChI1_Comment= InChI1_Ref= InChI2= InChI2_Comment= InChI2_Ref= InChI3= InChI3_Comment= InChI3_Ref= InChI4= InChI4_Comment= InChI4_Ref= InChI5= InChI5_Comment= InChI5_Ref=
InChIKey= InChIKey_Ref= InChIKey1= InChIKey1_Ref= InChIKey2= InChIKey2_Ref= InChIKey3= InChIKey3_Ref= InChIKey4= InChIKey4_Ref= InChIKey5= InChIKey5_Ref=
Line 57 ⟶ 59:
----- END HEADERBAR -->}}<!--
 
----- START DATA ROWS ----- -->
CAS number -->
{{#if:{{#invoke:String|replace |source={{{CASNo|}}} {{{CASNo1|}}} {{{CASNo2|}}} {{{CASNo3|}}} {{{CASNo4|}}} {{{CASNo5|}}} |pattern=none |replace= |plain=true }}{{{CASNoOther|}}}
|{{Chembox CASNo
Line 180 ⟶ 183:
|PubChemOther={{{PubChemOther|}}}
}}}}<!--
RTECS -->
{{#if:{{{RTECS|}}} |{{Chembox RTECS |value={{{RTECS|}}} }}}}<!--
----- UNII ----- -->
{{#if:{{{UNII|}}}{{{UNII1|}}}{{{UNII2|}}}{{{UNII3|}}}{{{UNII4|}}}{{{UNII5|}}}{{{UNIIOther|}}}
|{{Chembox UNII
Line 191 ⟶ 194:
|UNII4={{#if:{{{UNII4|}}}|{{Chembox UNII/format |UNII={{{UNII4|}}}|UNII_comment={{{UNII4_Comment|}}}|UNII_Ref={{{UNII4_Ref|}}} }}}}
|UNII5={{#if:{{{UNII5|}}}|{{Chembox UNII/format |UNII={{{UNII5|}}}|UNII_comment={{{UNII5_Comment|}}}|UNII_Ref={{{UNII5_Ref|}}} }}}}
|UNIIOther={{{UNIIOther|}}} }} }}<!--
UNNumber -->
}}}}
{{#if:{{{UNNumber|}}} |{{Chembox UNNumber |value={{{UNNumber|}}} }}}}<!--
-->}}<!--
----- StdInChI, InChI ----- -->
{{#if:{{{StdInChI|}}}{{{InChI|}}}{{{InChI1|}}}{{{InChI2|}}}{{{InChI3|}}}{{{InChI4|}}}{{{InChI5|}}}{{{StdInChIKey|}}}{{{InChIKey|}}}{{{InChI1Key|}}}{{{InChI2Key|}}}{{{InChI3Key|}}}{{{InChI4Key|}}}{{{InChI5Key|}}}{{{InChIOther|}}}
Line 218 ⟶ 220:
|SMILES4={{#if:{{{SMILES4|}}}|{{Chembox SMILES/format |SMILES={{{SMILES4|}}} |SMILES_comment={{{SMILES4_Comment|}}} }}}}
|SMILES5={{#if:{{{SMILES5|}}}|{{Chembox SMILES/format |SMILES={{{SMILES5|}}} |SMILES_comment={{{SMILES5_Comment|}}} }}}}
|SMILESOther={{{SMILESOther|}}}
}}}}<!--
 
ELSE (no showing)
-->
|<!-- tracking, the main if-show-else: no identifier data entered. Mar 2017 -->{{main other|1=[[Category:Chemical infoboxes with tracked parameters|I]]}}}}<!--
 
Do not worry about the many whitelines the template shows. No effect in usage, only here (because: documentation is added).
--><noinclude>{{documentation}}</noinclude>