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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
Line 1: Line 1:
{{collapsible list
+
{{#invoke:math|max|-1 |{{{_countCASNo|0}}} |{{{_countPubChemCID|0}}} |{{{_countChemSpiderID|0}}} |{{{_countChEBI|0}}} |{{{_countInChI|0}}} |{{{_countInChIKey|0}}} |{{{_countSMILES|0}}} }} -- {{collapsible list
 
| title      = Test: categories (identifiers)
 
| title      = Test: categories (identifiers)
 
| bullets    = yes
 
| bullets    = yes
Line 16: Line 16:
 
}}<!--
 
}}<!--
  
  Infobox needs index_labels?
+
  INDEX_LABEL needed?
-->{{#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. Has indexes? -->{{#ifexpr:{{{_countIndex_label|-1}}}<=0
 
|<!-- multiple IDs. Has indexes? -->{{#ifexpr:{{{_countIndex_label|-1}}}<=0
|[[:Category:Multiple chemicals in an infobox that need indexing|Label_indexes needed]]
+
|[[:Category:Multiple chemicals in an infobox that need indexing|needs label_indexes]]
|<!-- no need, no cat (cat:chemicals using indexlabels) -->}}<!--
+
|<!-- no need to cat [[:Category:Chemicals using indexlabels]] ? -->}}}}<!--
  
 
  NONE: Options 'none'
 
  NONE: Options 'none'
Line 104: Line 104:
 
<!--
 
<!--
  
  OTHER IDS
+
  OTHER IDs
 
-->|21={{#if:{{{_hasChEBIChEMBL|unk}}}  ||[[:Category:Articles without EBI source]]}}<!--
 
-->|21={{#if:{{{_hasChEBIChEMBL|unk}}}  ||[[:Category:Articles without EBI source]]}}<!--
 
-->|23={{#if:{{{_hasKEGG|unk}}}      ||[[:Category:Articles without KEGG source]]}}<!--
 
-->|23={{#if:{{{_hasKEGG|unk}}}      ||[[:Category:Articles without KEGG source]]}}<!--
 
-->|24={{#if:{{{_hasUNII|unk}}}      ||[[:Category:Articles without UNII source]]}}<!--
 
-->|24={{#if:{{{_hasUNII|unk}}}      ||[[:Category:Articles without UNII source]]}}<!--
-->|24={{#if:{{{_hasStdInChI|unk}}}{{#ifexpr:{{{_countInChI|0}}}>=1|yes|}} ||[[:Category:Articles without InChI source]]}}<!--
+
-->|25={{#if:{{{_hasStdInChI|unk}}}{{#ifexpr:{{{_countInChI|0}}}>=1|yes|}} ||[[:Category:Articles without InChI source]]}}<!--
  
 
  check if any data to be shown (else: idle Identifiers header)
 
  check if any data to be shown (else: idle Identifiers header)

Revision as of 15:52, 7 March 2017

0 --

Template documentation[view] [edit] [history] [purge]

Use /test for development. To make sure all testsettings show in /testcases, and won't show in mainspace. When going live, copy to regular /sandbox, change settings fit for Mainspace, then copy /sandbox into live.

Difference with live, when developing:

  • In {{Chembox Identifers/sandbox}}, set
|addTESTdata=Chembox parametercheck/test
|addMAINdata=<blank>
This sets {{main other|1=|2=(all categories to test)}} for all returned input ({{Chembox headerbar}})
  • In /test:
Set [[COLON:Category:Category name]] (do show not categorise; required to not pollute the categories with testpages)
Format /test visuals, eg by making it a collapsible list.
Optionally, set [[COLON:Category:Category name|Label To Show]] (shows wl label).

Diff

See also