Difference between revisions of "Template:Chembox parametercheck/sandbox"
Jump to navigation
Jump to search
imported>DePiep |
imported>DePiep (rm COLON:CAT) |
||
| Line 5: | Line 5: | ||
|0=<!-- ~no identifiers... --> | |0=<!-- ~no identifiers... --> | ||
|1= | |1= | ||
| − | |2=[[ | + | |2=[[Category:Chemical articles with multiple compound IDs|Bmulti]] |
| − | |3=[[ | + | |3=[[Category:Chemical articles with multiple compound IDs|Cmulti]] |
| − | |4=[[ | + | |4=[[Category:Chemical articles with multiple compound IDs|Dmulti]] |
| − | |5=[[ | + | |5=[[Category:Chemical articles with multiple compound IDs|Emulti]] |
| − | |6=[[ | + | |6=[[Category:Chemical articles with multiple compound IDs|Fmulti]] |
|#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 16: | ||
-->{{#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:Chemicals using indexlabels]]<!-- need to cat? -->}}}}<!-- |
NONE: Options 'none' | NONE: Options 'none' | ||
<!-- now: option 'none' only checked for main params (not the indexed 1-5 ones), for now | <!-- now: option 'none' only checked for main params (not the indexed 1-5 ones), for now | ||
| − | -->{{#if:{{{_hasCASnone|}}} |[[ | + | -->{{#if:{{{_hasCASnone|}}} |[[Category:Chemicals that do not have a CAS registry number assigned]] }}<!-- |
| − | -->{{#if:{{{_hasPubChemCIDnone|}}} |[[ | + | -->{{#if:{{{_hasPubChemCIDnone|}}} |[[Category:Chemicals that do not have a PubChem CID assigned]] }}<!-- |
| − | -->{{#if:{{{_hasChemSpiderIDnone|}}} |[[ | + | -->{{#if:{{{_hasChemSpiderIDnone|}}} |[[Category:Chemicals that do not have a ChemSpider ID assigned]] }}<!-- |
CAS NUMBER | CAS NUMBER | ||
-->{{#switch:{{{_countCASNo|-1}}} | -->{{#switch:{{{_countCASNo|-1}}} | ||
| − | |0=[[ | + | |0=[[Category:Chemical articles without CAS registry number]] |
|1= | |1= | ||
| − | |2=[[ | + | |2=[[Category:Chemical articles with multiple CAS registry numbers|B]] |
| − | |3=[[ | + | |3=[[Category:Chemical articles with multiple CAS registry numbers|C]] |
| − | |4=[[ | + | |4=[[Category:Chemical articles with multiple CAS registry numbers|D]] |
| − | |5=[[ | + | |5=[[Category:Chemical articles with multiple CAS registry numbers|E]] |
| − | |6=[[ | + | |6=[[Category:Chemical articles with multiple CAS registry numbers|F]] |
|#default=<!-- other/err = no tracking --> | |#default=<!-- other/err = no tracking --> | ||
}}<!-- | }}<!-- | ||
| Line 39: | Line 39: | ||
PUBCHEM | PUBCHEM | ||
-->{{#switch:{{{_countPubChemCID|-1}}} | -->{{#switch:{{{_countPubChemCID|-1}}} | ||
| − | |0=[[ | + | |0=[[Category:Chemicals without a PubChem CID]]<!-- new. drugbox to follow. Mar 2017 --> |
|1= | |1= | ||
| − | |2=[[ | + | |2=[[Category:Chemical articles with multiple PubChem CIDs|B]] |
| − | |3=[[ | + | |3=[[Category:Chemical articles with multiple PubChem CIDs|C]] |
| − | |4=[[ | + | |4=[[Category:Chemical articles with multiple PubChem CIDs|D]] |
| − | |5=[[ | + | |5=[[Category:Chemical articles with multiple PubChem CIDs|E]] |
| − | |6=[[ | + | |6=[[Category:Chemical articles with multiple PubChem CIDs|F]] |
|#default=<!-- other/err = no tracking --> | |#default=<!-- other/err = no tracking --> | ||
}}<!-- | }}<!-- | ||
| Line 52: | Line 52: | ||
-->{{#switch:{{{_countChEBI|-1}}} | -->{{#switch:{{{_countChEBI|-1}}} | ||
|0|1= | |0|1= | ||
| − | |2=[[ | + | |2=[[Category:Chemical articles with multiple ChEBIs|B]] |
| − | |3=[[ | + | |3=[[Category:Chemical articles with multiple ChEBIs|C]] |
| − | |4=[[ | + | |4=[[Category:Chemical articles with multiple ChEBIs|D]] |
| − | |5=[[ | + | |5=[[Category:Chemical articles with multiple ChEBIs|E]] |
| − | |6=[[ | + | |6=[[Category:Chemical articles with multiple ChEBIs|F]] |
|#default=<!-- other/err = no tracking --> | |#default=<!-- other/err = no tracking --> | ||
}}<!-- | }}<!-- | ||
| Line 63: | Line 63: | ||
cat:multiple INCHI's does not exist. | cat:multiple INCHI's does not exist. | ||
-->{{#switch:{{{_countInChI|-1}}} | -->{{#switch:{{{_countInChI|-1}}} | ||
| − | |0=[[ | + | |0=[[Category:Articles without InChI source]] |
|#default= | |#default= | ||
}}<!-- | }}<!-- | ||
| Line 71: | Line 71: | ||
cat: Multiple SPIDER IDs does not exist. | cat: Multiple SPIDER IDs does not exist. | ||
-->{{#switch:{{{_countChemSpiderID|-1}}} | -->{{#switch:{{{_countChemSpiderID|-1}}} | ||
| − | |0=[[ | + | |0=[[Category:Chemical pages without ChemSpiderID]] |
|#default= | |#default= | ||
}}<!-- | }}<!-- | ||
| Line 79: | Line 79: | ||
JMOL | JMOL | ||
| − | -->{{#if:{{{_hasJmol|}}} |[[ | + | -->{{#if:{{{_hasJmol|}}} |[[Category:Chemical articles having Jmol set]]}}<!-- |
<!-- | <!-- | ||
OTHER IDs | OTHER IDs | ||
| − | -->{{#if:{{{_hasChEBIChEMBL|unk}}} ||[[ | + | -->{{#if:{{{_hasChEBIChEMBL|unk}}} ||[[Category:Articles without EBI source]]}}<!-- |
| − | -->{{#if:{{{_hasKEGG|unk}}} ||[[ | + | -->{{#if:{{{_hasKEGG|unk}}} ||[[Category:Articles without KEGG source]]}}<!-- |
| − | -->{{#if:{{{_hasUNII|unk}}} ||[[ | + | -->{{#if:{{{_hasUNII|unk}}} ||[[Category:Articles without UNII source]]}}<!-- |
| − | -->{{#if:{{{_hasStdInChI|unk}}}{{#ifexpr:{{{_countInChI|0}}}>=1|yes|}} ||[[ | + | -->{{#if:{{{_hasStdInChI|unk}}}{{#ifexpr:{{{_countInChI|0}}}>=1|yes|}} ||[[Category:Articles without InChI source]]}}<!-- |
EMPTY ID HEADER? Check if any data to be shown (else: idle Identifiers header) | EMPTY ID HEADER? Check if any data to be shown (else: idle Identifiers header) | ||
| − | -->{{#if:{{{_hasOtherInput|unk}}} |<!--ok1 -->|{{#ifexpr:({{#invoke:math|max|-1 |{{{_countCASNo|0}}} |{{{_countPubChemCID|0}}} |{{{_countChemSpiderID|0}}} |{{{_countChEBI|0}}} |{{{_countInChI|0}}} |{{{_countInChIKey|0}}} |{{{_countSMILES|0}}} }}>1)|<!--ok2 -->|{{#if:{{{_hasChEBIChEMBL|}}}{{{_hasKEGG|}}}{{{_hasUNII|}}}{{{_hasStdInChIorKey|}}} |<!--ok3 -->|<!-- idle header, to track -->[[ | + | -->{{#if:{{{_hasOtherInput|unk}}} |<!--ok1 -->|{{#ifexpr:({{#invoke:math|max|-1 |{{{_countCASNo|0}}} |{{{_countPubChemCID|0}}} |{{{_countChemSpiderID|0}}} |{{{_countChEBI|0}}} |{{{_countInChI|0}}} |{{{_countInChIKey|0}}} |{{{_countSMILES|0}}} }}>1)|<!--ok2 -->|{{#if:{{{_hasChEBIChEMBL|}}}{{{_hasKEGG|}}}{{{_hasUNII|}}}{{{_hasStdInChIorKey|}}} |<!--ok3 -->|<!-- idle header, to track -->[[Category:Chemical infoboxes with tracked parameters|I]]}}}}}}<!-- |
QIDs: | QIDs: | ||
| − | -->{{#if:{{{_hasQID|}}}|[[ | + | -->{{#if:{{{_hasQID|}}}|[[Category:Chemicals having QID set]]}}<!-- |
| − | -->{{#ifexpr:{{{_countQIDindexed|0}}}>0 |[[ | + | -->{{#ifexpr:{{{_countQIDindexed|0}}}>0 |[[Category:Chemicals (indexed) having QID set]]}}<!-- |
Categories not existing (counted IDs, not used for this): | Categories not existing (counted IDs, not used for this): | ||
| − | [[ | + | [[Category:Chemical articles with multiple InChIs]] |
| − | [[ | + | [[Category:Chemical articles with multiple ChemSpiderIDs]] |
{{#switch:{{{_countSMILES|-1}}} | {{#switch:{{{_countSMILES|-1}}} | ||
| − | |0=[[ | + | |0=[[Category:Chemical articles without SMILES]] |
|1= | |1= | ||
| − | |2=[[ | + | |2=[[Category:Chemical articles with multiple SMILESs]] |
|#default=}} | |#default=}} | ||
Revision as of 18:31, 18 March 2017
| This is the template sandbox page for Template:Chembox parametercheck (diff). |
- See also Chembox parametercheck/test (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test) for development & test main/other situations. (eg show :category names in /testcases).
Usage
- CAS registry number
- Category:Chemical articles with multiple CAS registry numbers
- Category:Chemicals that do not have a CAS registry number assigned
- Category:Chemical articles without CAS registry number
| The above documentation is transcluded from Template:Chembox parametercheck/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |