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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
Line 111: Line 111:
  
 
  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)
-->|28={{#if:{{{_hasOtherInput|unk}}} |<!--ok1 -->|{{#ifexpr:({{{_countCAS|0}}}+{{{_countPubChem|0}}}+{{{_countChEBI|0}}}+{{{_countChemSpiderID|0}}} >0)|<!--ok2 -->|{{#if:{{{_hasChEBIChEMBL|}}}{{{_hasKEGG|}}}{{{_hasInChI|}}}{{{_hasUNII|}}}{{{_hasInChIorKey|}}}{{{_hasStdInChIorKey|}}} |<!--ok3 -->|<!-- idle header, to track -->[[:Category:Chemical infoboxes with tracked parameters|I]]}}}}}}<!--
+
-->|28={{#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:

Revision as of 11:46, 18 March 2017

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