• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Chemboximage/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Chemboximage
This is the template sandbox page for Template:Chemboximage (diff).
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

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

Contents

  • 1 Usage
  • 2 Added by the bot (_Ref=cite templates)
  • 3 Data 'correct' or 'changed' (parameter #1)
  • 4 Correct by source (parameter #2)
  • 5 Known issues (February 2015)
  • 6 TemplateData
  • 7 See also

Usage

edit

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.

For example, when parameter |CASNo= is changed in the article, the bot sets |CASNo_Ref={{cascite|changed|??}} initially. See WP:CHEMVALID.

Bot-set templates in {{Chembox}} and {{Drugbox}}
Template Verified fields (parameter) Category 'changed' Default
source
{{Chembox}}
conforms
{{Drugbox}}
conforms
Monthly
report
{{cascite}} |CASNo=
|CAS_number=
changed CAS number CAS Yes Yes usage
{{ebicite}} |ChEBI=, |ChEMBL= changed EBI identifier EBI Yes Yes usage
{{chemspidercite}} |ChemSpiderID= changed ChemSpider identifier ChemSpider Yes Yes usage
{{drugbankcite}} |DrugBank= changed DrugBank identifier DrugBank Yes Yes usage
{{keggcite}} |KEGG= changed KEGG identifier KEGG Yes Yes usage
{{stdinchicite}} |StdInChI=, |StdInChIKey=,
|InChIKey=, |InChI=
changed InChI identifier ChemSpider Yes Yes usage
{{fdacite}} |UNII= changed FDA identifier FDA Yes Yes usage
{{chemboximage}} |ImageFile[L/R]= changed Chembox image file (none) No — usage

Added by the bot (_Ref=cite templates)

edit

The bot-template is added as input for a purpose-added parameter:

|CASNo=1234-56-7 (editors input)
|CASNo_Ref={{cascite|...|...}} (bot parameter added + template set)

Initially the parameters are set {{cascite|changed|??}}

The primary parameter can have an index (see its documentation):

|CASNo3=1234-56-7
|CASNo3_Ref={{cascite|...|...}}

Indexed parameters like |CASNo1= and |CASNo2= are verified too, and are treated independently. So an article can have: |CASNo={{cascite|correct|CAS}} and |CASNo3={{cascite|changed}}.

Data 'correct' or 'changed' (parameter #1)

edit

The first parameter is either correct checkY or changed ☒N always: {{cascite|correct|CAS}}. Cross-marked articles are categorized as 'changed'. With any other text like monkey ☒N, again the cross is shown and the article is categorized, now sorted under "?".

Correct by source (parameter #2)

edit

Initially, the bot sets this to |?? (='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:

|CASNo_Ref={{cascite|correct|CDC85}} → 1234-56-7 checkY[CDC85]

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

Known issues (February 2015)

edit
  • {{chemboximage}} is applied by the bot, but not read by the template (article won't show up in the category).

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Chemboximage in articles based on its TemplateData.

TemplateData for Chemboximage

Extended content

Gives details of source verification, automatically generated by CheMoBot, should not be edited manually.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

Either 'correct' or 'changed'

Stringrequired
22

Source used to verify reference or ?? for no source

Default
??
Stringrequired

See also

edit
  • Category:Chemboxes which contain changes to verified fields
  • {{Chembox}}
  • WP:WikiProject Chemicals/Chembox validation
  • User:CheMoBot
  • {{Infobox drug}}
The above documentation is transcluded from Template:Chemboximage/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Chemboximage/sandbox&oldid=645873826"
Last edited on 6 February 2015, at 09:48

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 6 February 2015, at 09:48 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop