Template:Cascite/doc

By Chembox and Drugbox settings, a bot checks articles for parameter validation. The bot then adds and sets templates like to the article. Depending on the template settings, articles are categorized for maintenance.

A template is added and set by User:CheMoBot automatically after certain edits. Depending on the earlier data checks, the template will be marked "correct" or "changed" (i.e., to be checked). 'changed' articles are categorized.
 * Usage

For example, when parameter CASNo is changed in the article, the bot sets CASNo_Ref initially. See WP:CHEMVALID.

The bot-template is added as input for a purpose-added parameter:
 * Added by the bot ( templates)
 * 1234-56-7 (editors input)
 * CASNo_Ref (bot parameter added + template set)

Initially the parameters are set

The primary parameter can have an index (see its documentation):
 * 1234-56-7
 * CASNo3_Ref

Indexed parameters like CASNo1 and CASNo2 are verified too, and are treated independently. So an article can have: CASNo and CASNo3.

The first parameter is either  ✅ or   ❌ always:. Cross-marked articles are categorized as 'changed'. With any other text like  ❌, again the cross is shown and the article is categorized, now sorted under "?".
 * Data 'correct' or 'changed' (parameter #1)

Initially, the bot sets this to undefined (='source unknown'). Parameter #2 has the source that confirms the statement. By confirmation, the parameter can mention the confirming source. When that source is not the standard (as listed above), the input source is mentioned in a superscript linked:
 * Correct by source (parameter #2)
 * CASNo_Ref &rarr; 1234-56-7

This source name is case-insensitive: CAS=cas.


 * Known issues (February 2015)
 * is applied by the bot, but not read by the template (article won't show up in the category).

TemplateData
{	"params": { "1": {			"description": "Either 'correct' or 'changed'", "type": "string", "required": true },		"2": {			"description": "Source used to verify reference or ?? for no source", "type": "string", "default": "??", "required": true }	},	"description": "Gives details of source verification, automatically generated by CheMoBot, should not be edited manually.", "format": "inline" }