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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
Line 5: Line 5:
  
 
  Supercountings (over 7 countings)
 
  Supercountings (over 7 countings)
  -->|2={{#switch:{{trim|1={{#invoke:math|max|-1 |{{{_countCASNo|0}}} |{{{_countPubChemCID|0}}} |{{{_countChemSpiderID|0}}} |{{{_countChEBI|0}}} |{{{_countInChI|0}}} |{{{_countInChIKey|0}}} |{{{_countSMILES|0}}} }}}}
+
  -->|2={{#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=[[:Category:Chemical articles with multiple compound IDs|Amulti-one]]<!-- TEST -->
 
|1=[[:Category:Chemical articles with multiple compound IDs|Amulti-one]]<!-- TEST -->
Line 13: Line 13:
 
|5=[[:Category:Chemical articles with multiple compound IDs|Emulti]]
 
|5=[[:Category:Chemical articles with multiple compound IDs|Emulti]]
 
|6=[[:Category:Chemical articles with multiple compound IDs|Fmulti]]
 
|6=[[:Category:Chemical articles with multiple compound IDs|Fmulti]]
|#default=TEST max id count: {{{_countSMILES|-1}}}<!-- 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 -->
 
}}
 
}}
  

Revision as of 14:26, 7 March 2017

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