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

Content deleted Content added
imported>DePiep
छो add tracking category for Jmol= input; rm sandbox links
imported>DePiep
Add tracking categories for ECHA InfoCard and E_number. Data from Wikidata now (2x). See also WP talk:ECHA, WP talk:E number.
लाइन 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=[Nn]one |replace=|plain=false }}{{{CASNoOther|}}}
{{{ChEBI|}}}{{{ChEBI1|}}}{{{ChEBI2|}}}{{{ChEBI3|}}}{{{ChEBI4|}}}{{{ChEBI5|}}}{{{ChEBIOther|}}}
लाइन 16:
|header=Identifiers
|ref={{{Identifiers_ref|}}}<!--
 
----- maintenance cats -----
add TESTcats:
-->|addcatsaddTESTdata=<!--
-->{{Chembox CASNo/parametercheck
 
ADD TRACKING CATS
-->|addcats={{Chembox CASNo/parametercheck
|_countCASNo={{#invoke:ParameterCount|main|pattern1=^CASNo%d?$}}
|_countPubChem={{#invoke:ParameterCount|main|pattern1=^PubChem%d?$}}
Line 24 ⟶ 27:
|_CASnone={{#ifexpr:{{#invoke:String|find |source=_{{{CASNo|}}}_{{{CASNo1|}}}_{{{CASNo2|}}}_{{{CASNo3|}}}_{{{CASNo4|}}}_{{{CASNo5|}}}_ |target=_[Nn]one_ |plain=false }}>0|1|0}}
}}<!--
 
-->{{#ifeq:{{#invoke:String|find |source=_{{{ChemSpiderID|}}}_{{{ChemSpiderID1|}}}{{{ChemSpiderID2|}}}_{{{ChemSpiderID3|}}}_{{{ChemSpiderID4|}}}_{{{ChemSpiderID5|}}}_ |target=_NA_ |plain=true }}|0|<!--ok-->|[[Category:Chemical infoboxes with tracked parameters|NA]]}}<!--
-->{{#if:{{{ChEBI|}}}{{{ChEBI1|}}}{{{ChEBI2|}}}{{{ChEBI3|}}}{{{ChEBI4|}}}{{{ChEBI5|}}}
{{{ChEMBL|}}}{{{ChEMBL1|}}}{{{ChEMBL2|}}}{{{ChEMBL3|}}}{{{ChEMBL4|}}}{{{ChEMBL5|}}}
Line 38 ⟶ 39:
||[[Category:Articles without UNII source]]}}<!--
-->{{#if:{{{Jmol|}}}{{{Jmol1|}}}{{{Jmol2|}}}{{{Jmol3|}}}{{{Jmol4|}}}{{{Jmol5|}}} |[[Category:Chemical articles having Jmol set]]}}<!--
 
-->|addTESTdata=<!-- use colon for category [[:Category...] (to not pollute tracking categories)
 
----- templatepar -----
Line 46 ⟶ 45:
|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 74 ⟶ 73:
|Jmol ={{#if:{{{Jmol|}}}{{{SMILES|}}} |{{#switch:{{{Jmol|}}}|none|None=|#default={{Chembox Jmol/format |SMILES={{{Jmol|{{{SMILES|}}}}}}
|Jmol_comment={{{SMILES_Comment|}}} }}}}}}
 
|Jmol1 ={{#if:{{{Jmol1|}}}{{{SMILES1|}}} |{{#switch:{{{Jmol1|}}}|none|None=|#default={{Chembox Jmol/format |SMILES={{{Jmol1|{{{SMILES1|}}}}}}
|Jmol_comment={{{SMILES1_Comment|}}} }}}}}}
 
|Jmol2 ={{#if:{{{Jmol2|}}}{{{SMILES2|}}} |{{#switch:{{{Jmol2|}}}|none|None=|#default={{Chembox Jmol/format |SMILES={{{Jmol2|{{{SMILES2|}}}}}}
|Jmol_comment={{{SMILES2_Comment|}}} }}}}}}
 
|Jmol3 ={{#if:{{{Jmol3|}}}{{{SMILES3|}}} |{{#switch:{{{Jmol3|}}}|none|None=|#default={{Chembox Jmol/format |SMILES={{{Jmol3|{{{SMILES3|}}}}}}
|Jmol_comment={{{SMILES3_Comment|}}} }}}}}}
 
|Jmol4 ={{#if:{{{Jmol4|}}}{{{SMILES4|}}} |{{#switch:{{{Jmol4|}}}|none|None=|#default={{Chembox Jmol/format |SMILES={{{Jmol4|{{{SMILES4|}}}}}}
|Jmol_comment={{{SMILES4_Comment|}}} }}}}}}
 
|Jmol5 ={{#if:{{{Jmol5|}}}{{{SMILES5|}}} |{{#switch:{{{Jmol5|}}}|none|None=|#default={{Chembox Jmol/format |SMILES={{{Jmol5|{{{SMILES5|}}}}}}
|Jmol_comment={{{SMILES5_Comment|}}} }}}}}}
Line 143 ⟶ 137:
|DrugBank={{{DrugBank5|}}} |DrugBank_comment={{{DrugBank5_Comment|}}} |DrugBank_Ref={{{DrugBank5_Ref|}}} }}}}
|DrugBankOther={{{DrugBankOther|}}} }}}}<!--
ECHA Infocard P2566: wd only -->
{{#if: {{#invoke:Wikidata|claim|P2566}} | {{Chembox ECHA |value={{#invoke:Wikidata|claim|P2566}} }}}}<!--
EINECS -->
{{#if:{{{EINECS|}}}{{{EC_number|}}}{{{EC_number_Comment|}}} |{{Chembox ECNumber |EC number={{{EINECS|}}}{{{EC_number|}}} |EC number comment={{{EC_number_Comment|}}}}}}}<!--
E_number P628: wd only -->
{{#if:{{{E_number#invoke:Wikidata|}}}{{{E_number_Commentclaim|}P628}} |{{Chembox E number |E numbervalue={{{E_number#invoke:Wikidata|claim|}P628}} |E number comment={{{E_number_Comment|}}}}}}}<!--
GMELIN -->
{{#if:{{{Gmelin|}}} |{{Chembox Gmelin|value={{{Gmelin|}}} }}}}<!--