Template:Chembox parametercheck
{{#switch:{{#invoke:math|max|-1 |{{{_countCASNo|0}}} |{{{_countPubChemCID|0}}} |{{{_countChemSpiderID|0}}} |{{{_countChEBI|0}}} |{{{_countInChI|0}}} |{{{_countInChIKey|0}}} |{{{_countSMILES|0}}} }}
|0=
|1=
|2=B
|3=C
|4=D
|5=E
|6=F
|#default=
}}{{#ifexpr:({{#invoke:math|max|-1 |{{{_countCASNo|0}}} |{{{_countPubChemCID|0}}} |{{{_countChemSpiderID|0}}} |{{{_countChEBI|0}}} |{{{_countInChI|0}}} |{{{_countInChIKey|0}}} |{{{_countSMILES|0}}} }}>1)
|{{#ifexpr:{{{_countIndex_label|-1}}}<=0
|Category:Multiple chemicals in an infobox that need indexing
|Category:Chemicals using indexlabels}}}}{{#if:{{{_hasCASnone|}}} |Category:Chemicals that do not have a CAS registry number assigned }}{{#if:{{{_hasPubChemCIDnone|}}} |Category:Chemicals that do not have a PubChem CID assigned }}{{#if:{{{_hasChemSpiderIDnone|}}} |Category:Chemicals that do not have a ChemSpider ID assigned }}{{#switch:{{{_countCASNo|-1}}}
|0=Category:Chemical articles without CAS registry number
|1=
|2=B
|3=C
|4=D
|5=E
|6=F
|#default=
}}{{#switch:{{{_countPubChemCID|-1}}}
|0=Category:Chemicals without a PubChem CID
|1=
|2=B
|3=C
|4=D
|5=E
|6=F
|#default=
}}{{#switch:{{{_countChEBI|-1}}}
|0|1=
|2=B
|3=C
|4=D
|5=E
|6=F
|#default=
}}{{#switch:{{{_countInChI|-1}}}
|0=Category:Articles without InChI source
|#default=
}}{{#switch:{{{_countChemSpiderID|-1}}}
|0=Category:Chemical pages without ChemSpiderID
|#default=
}}{{#if:{{{_hasJmol|}}} |Category:Chemical articles having Jmol set}}{{#if:{{{_hasJmolnone|}}} |*}}{{#if:{{{_hasChEBIChEMBL|unk}}} ||Category:Articles without EBI source}}{{#if:{{{_hasKEGG|unk}}} ||Category:Articles without KEGG source}}{{#if:{{{_hasUNII|unk}}} ||Category:Articles without UNII source}}{{#if:{{{_hasStdInChI|unk}}}{{#ifexpr:{{{_countInChI|0}}}>=1|yes|}} ||Category:Articles without InChI source}}{{#if:{{{_hasQID|}}}|Category:Chemicals having QID set}}{{#ifexpr:{{{_countQIDindexed|0}}}>0 |Category:Chemicals (indexed) having QID set}}