Difference between revisions of "Template:Chembox parametercheck"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
(fix)
Line 1: Line 1:
{{#if:{{{_CASnone|}}} |CASnone={{{_CASnone}}}[[Category:Chemicals that do not have a CAS Registry Number assigned]]}}<!--
+
{{#ifexpr:{{{_CASnone|0}}} = 1 |[[Category:Chemicals that do not have a CAS Registry Number assigned]]}}<!--
 
-->{{#switch:{{#expr:{{{_countCASNo|0}}} + {{{_CASnone|0}}} }}
 
-->{{#switch:{{#expr:{{{_countCASNo|0}}} + {{{_CASnone|0}}} }}
|0=[[Category:Chemical articles without CAS Registry Number|0]]
+
|0=[[Category:Chemical articles without CAS Registry Number]]
 
|1=
 
|1=
 
|#default=[[Category:Chemical articles with multiple CAS Registry Numbers|{{{_countCASNo|}}}]]
 
|#default=[[Category:Chemical articles with multiple CAS Registry Numbers|{{{_countCASNo|}}}]]

Revision as of 15:18, 21 December 2015