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

Content deleted Content added
imported>DePiep
Format InChI and SMILES long strings. See talk:Chemical_infobox#Chembox_changes (15 December 2015)
imported>DePiep
Refine maintenance categories. Add number-of-CASs category Talk
लाइन 17:
----- maintenance cats -----
-->|addcats=<!--
-->{{Chembox CASNo/parametercheck
temp, cleanup:
|_countCASNo={{#invoke:ParameterCount|main|pattern1=^CASNo%d?$}}
-->{{#ifeq:{{#invoke:String|find |source=_{{{ChemSpiderID|}}}_{{{ChemSpiderID1|}}}{{{ChemSpiderID2|}}}_{{{ChemSpiderID3|}}}_{{{ChemSpiderID4|}}}_{{{ChemSpiderID5|}}}_ |target=_NA_ |plain=true }}|0|<!--ok-->|[[Category:Chemical infoboxes with tracked parameters|NA]]}}<!--
|_CASnone={{#ifeqifexpr:{{#invoke:String|find |source=_{{{CASNo|}}}_{{{CASNo1|}}}_{{{CASNo2|}}}_{{{CASNo3|}}}_{{{CASNo4|}}}_{{{CASNo5|}}}_ |target=_none_ |plain=true }}|>0|1|[[Category:Chemicals that do not have a CAS Registry Number assigned]] 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:{{{CASNo|}}}{{{CASNo1|}}}{{{CASNo2|}}}{{{CASNo3|}}}{{{CASNo4|}}}{{{CASNo5|}}}
|{{#ifeq:{{#invoke:String|find |source=_{{{CASNo|}}}_{{{CASNo1|}}}_{{{CASNo2|}}}_{{{CASNo3|}}}_{{{CASNo4|}}}_{{{CASNo5|}}}_ |target=_none_ |plain=true }}|0||[[Category:Chemicals that do not have a CAS Registry Number assigned]] }}
|[[Category:Chemical pages without CAS Registry Number]]}}<!--
-->{{#if:{{{ChEBI|}}}{{{ChEBI1|}}}{{{ChEBI2|}}}{{{ChEBI3|}}}{{{ChEBI4|}}}{{{ChEBI5|}}}
{{{ChEMBL|}}}{{{ChEMBL1|}}}{{{ChEMBL2|}}}{{{ChEMBL3|}}}{{{ChEMBL4|}}}{{{ChEMBL5|}}}
लाइन 28:
-->{{#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:{{{DrugBank|}}}{{{DrugBank1|}}}{{{DrugBank2|}}}{{{DrugBank3|}}}{{{DrugBank4|}}}{{{DrugBank5|}}}
||[[Category:Chemical pages without DrugBank identifier]]}}<!--
-->{{#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]]}}<!--
 
-->{{#ifexpr:{{#expr:{{#if:{{{EC_number|}}}|1|0}} + {{#if:{{{EINECS|}}}|1|0}} }} >1|[[Category:Chemical articles with redundant input]]}}<!--
----- templatepar -----
-->|templatepar={{#invoke:TemplatePar
लाइन 52:
|format=0|preview={{Chembox templatePar/formatPreviewMessage|msg=@@@}}|errNS=0}}<!--
----- END HEADERBAR -->}}<!--
 
----- START DATA ROWS ----- -->
{{#if:{{#invoke:String|replace |source={{{CASNo|}}} {{{CASNo1|}}} {{{CASNo2|}}} {{{CASNo3|}}} {{{CASNo4|}}} {{{CASNo5|}}} |pattern=none |replace= |plain=true }}{{{CASNoOther|}}}