Difference between revisions of "Template:Chembox parametercheck/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(rm COLON:CAT)
imported>DePiep
(rm cat|label)
Line 1: Line 1:
 
<!--
 
<!--
 
 
  Supercountings (over 7 ID countings)
 
  Supercountings (over 7 ID countings)
 
  -->{{#switch:{{#invoke:math|max|-1 |{{{_countCASNo|0}}} |{{{_countPubChemCID|0}}} |{{{_countChemSpiderID|0}}} |{{{_countChEBI|0}}} |{{{_countInChI|0}}} |{{{_countInChIKey|0}}} |{{{_countSMILES|0}}} }}
 
  -->{{#switch:{{#invoke:math|max|-1 |{{{_countCASNo|0}}} |{{{_countPubChemCID|0}}} |{{{_countChemSpiderID|0}}} |{{{_countChEBI|0}}} |{{{_countInChI|0}}} |{{{_countInChIKey|0}}} |{{{_countSMILES|0}}} }}
 
|0=<!-- ~no identifiers... -->
 
|0=<!-- ~no identifiers... -->
 
|1=
 
|1=
|2=[[Category:Chemical articles with multiple compound IDs|Bmulti]]
+
|2=[[Category:Chemical articles with multiple compound IDs]]
|3=[[Category:Chemical articles with multiple compound IDs|Cmulti]]
+
|3=[[Category:Chemical articles with multiple compound IDs]]
|4=[[Category:Chemical articles with multiple compound IDs|Dmulti]]
+
|4=[[Category:Chemical articles with multiple compound IDs]]
|5=[[Category:Chemical articles with multiple compound IDs|Emulti]]
+
|5=[[Category:Chemical articles with multiple compound IDs]]
|6=[[Category:Chemical articles with multiple compound IDs|Fmulti]]
+
|6=[[Category:Chemical articles with multiple compound IDs]]
 
|#default=TEST max id count: {{#invoke:math|max|-1 |{{{_countCASNo|0}}} |{{{_countPubChemCID|0}}} |{{{_countChemSpiderID|0}}} |{{{_countChEBI|0}}} |{{{_countInChI|0}}} |{{{_countInChIKey|0}}} |{{{_countSMILES|0}}} }}<!-- other/err = no tracking -->
 
|#default=TEST max id count: {{#invoke:math|max|-1 |{{{_countCASNo|0}}} |{{{_countPubChemCID|0}}} |{{{_countChemSpiderID|0}}} |{{{_countChEBI|0}}} |{{{_countInChI|0}}} |{{{_countInChIKey|0}}} |{{{_countSMILES|0}}} }}<!-- other/err = no tracking -->
 
}}<!--
 
}}<!--
Line 16: Line 15:
 
-->{{#ifexpr:({{#invoke:math|max|-1 |{{{_countCASNo|0}}} |{{{_countPubChemCID|0}}} |{{{_countChemSpiderID|0}}} |{{{_countChEBI|0}}} |{{{_countInChI|0}}} |{{{_countInChIKey|0}}} |{{{_countSMILES|0}}} }}>1)
 
-->{{#ifexpr:({{#invoke:math|max|-1 |{{{_countCASNo|0}}} |{{{_countPubChemCID|0}}} |{{{_countChemSpiderID|0}}} |{{{_countChEBI|0}}} |{{{_countInChI|0}}} |{{{_countInChIKey|0}}} |{{{_countSMILES|0}}} }}>1)
 
|<!-- multiple IDs. Check: has indexes? (index_comments are ignored): -->{{#ifexpr:{{{_countIndex_label|-1}}}<=0
 
|<!-- multiple IDs. Check: has indexes? (index_comments are ignored): -->{{#ifexpr:{{{_countIndex_label|-1}}}<=0
|[[Category:Multiple chemicals in an infobox that need indexing|needs label_indexes]]
+
|[[Category:Multiple chemicals in an infobox that need indexing]]
 
|[[Category:Chemicals using indexlabels]]<!-- need to cat? -->}}}}<!--
 
|[[Category:Chemicals using indexlabels]]<!-- need to cat? -->}}}}<!--
  
Line 29: Line 28:
 
|0=[[Category:Chemical articles without CAS registry number]]
 
|0=[[Category:Chemical articles without CAS registry number]]
 
|1=
 
|1=
|2=[[Category:Chemical articles with multiple CAS registry numbers|B]]
+
|2=[[Category:Chemical articles with multiple CAS registry numbers]]
|3=[[Category:Chemical articles with multiple CAS registry numbers|C]]
+
|3=[[Category:Chemical articles with multiple CAS registry numbers]]
|4=[[Category:Chemical articles with multiple CAS registry numbers|D]]
+
|4=[[Category:Chemical articles with multiple CAS registry numbers]]
|5=[[Category:Chemical articles with multiple CAS registry numbers|E]]
+
|5=[[Category:Chemical articles with multiple CAS registry numbers]]
|6=[[Category:Chemical articles with multiple CAS registry numbers|F]]
+
|6=[[Category:Chemical articles with multiple CAS registry numbers]]
 
|#default=<!-- other/err = no tracking -->
 
|#default=<!-- other/err = no tracking -->
 
}}<!--
 
}}<!--
Line 41: Line 40:
 
|0=[[Category:Chemicals without a PubChem CID]]<!-- new. drugbox to follow. Mar 2017 -->
 
|0=[[Category:Chemicals without a PubChem CID]]<!-- new. drugbox to follow. Mar 2017 -->
 
|1=
 
|1=
|2=[[Category:Chemical articles with multiple PubChem CIDs|B]]
+
|2=[[Category:Chemical articles with multiple PubChem CIDs]]
|3=[[Category:Chemical articles with multiple PubChem CIDs|C]]
+
|3=[[Category:Chemical articles with multiple PubChem CIDs]]
|4=[[Category:Chemical articles with multiple PubChem CIDs|D]]
+
|4=[[Category:Chemical articles with multiple PubChem CIDs]]
|5=[[Category:Chemical articles with multiple PubChem CIDs|E]]
+
|5=[[Category:Chemical articles with multiple PubChem CIDs]]
|6=[[Category:Chemical articles with multiple PubChem CIDs|F]]
+
|6=[[Category:Chemical articles with multiple PubChem CIDs]]
 
|#default=<!-- other/err = no tracking -->
 
|#default=<!-- other/err = no tracking -->
 
}}<!--
 
}}<!--
Line 52: Line 51:
 
-->{{#switch:{{{_countChEBI|-1}}}
 
-->{{#switch:{{{_countChEBI|-1}}}
 
|0|1=
 
|0|1=
|2=[[Category:Chemical articles with multiple ChEBIs|B]]
+
|2=[[Category:Chemical articles with multiple ChEBIs]]
|3=[[Category:Chemical articles with multiple ChEBIs|C]]
+
|3=[[Category:Chemical articles with multiple ChEBIs]]
|4=[[Category:Chemical articles with multiple ChEBIs|D]]
+
|4=[[Category:Chemical articles with multiple ChEBIs]]
|5=[[Category:Chemical articles with multiple ChEBIs|E]]
+
|5=[[Category:Chemical articles with multiple ChEBIs]]
|6=[[Category:Chemical articles with multiple ChEBIs|F]]
+
|6=[[Category:Chemical articles with multiple ChEBIs]]
 
|#default=<!-- other/err = no tracking -->
 
|#default=<!-- other/err = no tracking -->
 
}}<!--
 
}}<!--

Revision as of 18:33, 18 March 2017