User:Citation bot

{{redirects|WP:CBOT|other uses|WP:CONTEXTBOT|and|WP:COSMETICBOT}}

{{shortcuts|WP:CBOT|WP:CITEBOT|WP:CITATIONBOT}}

{{mbox|image=60px|text= Editors who activate this bot should carefully check the results to make sure that they are as expected. While the bot does the best it can, it cannot anticipate the existing misuse of template parameters or anticipate bad/incomplete metadata from citation databases.

See also OABot, which is better at finding free/open access versions of citations.

}}

{{bot|Smith609|status=Active}}

{{WMFLabsBot}}

style=text-align:center;

| width=25%|File:Crystal Clear action go.svg

| width=25%| File:Crystal Clear action run v3.svg

| width=25%| File:Crystal128-memory.svg

| width=25%|File:Crystal Clear action exit.svg

style="vertical-align: top; font-size:150%"

| [https://citations.toolforge.org/ Activate]

| Guide

| Bugs/Features

| Emergency shutoff

style="vertical-align: top;"

| Activate the bot on a specific page or all articles in a category.

| How do you get the best results? Want an activation link on every page you edit? Consult the guide!

| Something wrong? Report it!
Have an idea? Suggest it!
Source code available at [https://github.com/ms609/citation-bot GitHub].

| Admins: Follow instructions.
Non-admins: Report to WP:ANI.

Function summary

This bot was originally designed to add digital object identifiers (DOIs) to references; it now does much more, adding other identifiers (PMIDs, ISBNs), links to open access repositories, and fixing common formatting errors.

The bot obtains citation data from a range of sources, including Google Books, Google Books API Family, CrossRef, AdsAbs, arXiv, [https://oadoi.org/ oaDOI] and PubMed. Because scraping data from web pages is unreliable and resource-intensive, these databases are the main source of data; unfortunately, the bot is unable to tell when these databases contain errors or incomplete information. Any such error or omission should be reported directly to the data repository maintainer. The bot also corrects citations to match WP:CITALICSRFC and similar. Note that a 503 error means that the bot is overloaded and you should try again later – wait at least an hour.

= Data sources =

Open source links are from mostly [https://oadoi.org oaDOI].

= Development =

A stable version of the bot is always available at https://citations.toolforge.org/

Time commitments preclude regular updates; maintenance is attempted every few months. The source code can be found at https://github.com/ms609/citation-bot.

= Interpreting bot edit summaries =

The bot edit summaries try to strike a balance between providing too little information to be useful and so much information as to exceed the line limits and to just duplicate the edit content itself. Sometimes the edit summary will include items that did not occur in the final edit because multiple actions cancelled each other out. Also, if a URL is removed, then the edit summary might say that other things (such as access-date) were removed because there was no URL, even though there was originally a URL: this is because the bot works in phases.

Stopping the bot from editing

{{See also|User:Citation bot/use#... the bot made a mistake?}}

  1. To prevent Citation bot from editing a particular page, add the following text anywhere on the page
    {{bots|deny=Citation bot}}
  2. To prevent Citation bot from changing template types, add a comment to the citation template before the first {{!}}, such as
    {{cite journal  |last=Smith |first=John |year=2018 |...}}
  3. If the bot is erroneously adding or modifying a parameter (e.g. adding a wrong {{para|last}}/{{para|first}}, or a wrong {{para|doi}}) to a citation), put a comment in place of the appropriate parameter such as
    |doi = 
    or
    |volume=7A  

Although the content of the comment is not relevant to the Citation Bot, it is best to include some text within the comment so that human editors understand why there is a comment. Also, it makes it clear why, such if the comment was "Citation bot grabs invalid issue number from pubmed", then a human might know that they too should not believe pubmed. Lastly, random empty comments are prone to being deleted by human editors as "extraneous".

It may be possible to fix the underlying problem if you report the error – but there are a few, rare instances (such as false positives and editor preference) where it is impossible to implement an automatic fix.

= False positives =

If the bot is adding seemingly-unrelated data to a citation, it is probably receiving a false positive from the citation databases it consults. Unfortunately, there's no way for the bot to know this, so there are two ways of avoiding it:

  • Change the citation template to one which the bot doesn't modify, such as cite news, etc;
  • Add a comment into one or more of the parameters – these comments will not be over-ridden by the bot, and will reduce the chance of the citation databases throwing false positives.
  • If the journal title has non-standard casing (Such as PLOS One), then special code should be requested on the bug report page, or better yet, make a pull request on https://github.com/ms609/citation-bot/blob/master/constants.php

= Page numbers with hyphens =

The bot replaces hyphens with en dash in page number ranges. On rare occasions when a hyphen is right and an en dash is wrong (hyphen in the page number itself, often because the page number includes the chapter too), manually use the {{tl|hyphen}} template instead of the dash/hyphen character. An alternative is to use the template's {{para|at}} parameter.

= Valid parameters =

The bot draws all parameters specified in Module:Citation/CS1/Whitelist with the format "['parameter_name'] = true", and treats these as valid spellings. The bot maintains its own copy at https://github.com/ms609/citation-bot/blob/master/constants/parameters.php

Internationalization

There have been a number of requests for the bot to be adapted to foreign-language wikipedias. When time permits, I will be happy to work towards this. For me to adapt the bot for a foreign wiki I first need:

  • A valid bot account on that wiki with the appropriate permission for its edits
  • A translation of each of the template names and parameters used.

If you have both of these available, please let me know and I will set to work on the necessary coding.

The Gadget method does not require a bot login, so users can do that without any work on our end.

Function

{{See also|User:Citation bot/use}}

Automatic or manually Assisted: Automatic

Programming language(s): PHP

Function summary: Maintains and expands citations; ensures standards are complied to.

Edit period(s): Can run in a continuous mode that automatically revisits articles, but currently used on specific articles whenever requested by a user.

Function details:

  1. Replaces "id=identifier" or "url=http://resource.org/identifier=# with "identifier=#"
  2. Fixes common typos in parameter names (not values), using the closest match if the typo is not in a list of frequent mistakes https://github.com/ms609/citation-bot/blob/master/constants/parameters.php
  3. Removes redundant parameters
  4. Searches for missing parameters (including URL), then adds them if available. This is especially convenient when only an identifier is included within the template
  5. * The bot uses a range of databases including Google Books API, Google Books, PubMed, CrossRef, AdsAbs, doi.org, and JSTOR
  6. Converts an endnote citation to a Wikipedia citation — [//en.wikipedia.org/w/index.php?title=Sea_butterfly&diff=prev&oldid=365263573 Example]
  7. Is authorized to, but not currently add names to references and combine duplicates
  8. Expands {{tl|cite arXiv}} templates with an eprint parameter, and updates them to use {{tl|cite journal}} where appropriate
  9. Where a mixture of {{tl|citation}} and {{cite xxx}} family templates are used in an article, is authorized to standardize to the dominant format, but does not currently do that
  10. Convert bare references to citation template based references

User box you can add to show support

{{yytop}}

{{yy|User wikipedia/Citation bot}}

{{yyend}}

Bot approval

See also – Other great tools to use

Bot Recognitions

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Original Barnstar

style="vertical-align: middle; padding: 3px;" | Thank you, you have been very helpful to me as a new user and contributor. Tonythetiger89 (talk) 16:29, 15 August 2013 (UTC)

File:Cute grey kitten.jpg This kitten is {{fixed}}

Vivian

Kashment (talk) 20:51, 20 July 2014 (UTC)


{{(-:}} Martin (Smith609 – Talk) 05:13, 29 July 2014 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Citation Barnstar

style="vertical-align: middle; padding: 3px;" | For all of your citation fixes! Quinton Feldberg (talk) 05:49, 24 August 2017 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Editor's Barnstar

style="vertical-align: middle; padding: 3px;" | Amazing,

Im out of words!

It's Indeed very helpful Dadhush (talk) 12:52, 16 November 2018 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Editor's Barnstar

style="vertical-align: middle; padding: 3px;" | Good job. Keep it up man !!! Taal Saptak (talk) 10:09, 7 July 2018 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|style="vertical-align: middle; padding: 5px;" | 120px

|style="vertical-align: middle; padding: 3px;" | That's really great Jackwilliam2 (talk) 12:20, 3 December 2018 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Technical Barnstar

style="vertical-align: middle; padding: 3px;" | Thank you for your dedication that eases my workload! It's gonna be awesome!Talk♬ 13:36, 5 January 2019 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Original Barnstar

style="vertical-align: middle; padding: 3px;" | Thank you Ackee123 (talk) 11:38, 30 August 2019 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|style="vertical-align: middle; padding: 5px;" | 135px

|style="vertical-align: middle; padding: 3px;" | Good job! Azilmark89 (talk) 12:53, 22 August 2019 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Citation Barnstar

style="vertical-align: middle; padding: 3px;" | Hey, I was just there suffering in cite date. Any way thanks CBOT. F5pillar (talk) 19:18, 21 January 2020 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Citation Barnstar

style="vertical-align: middle; padding: 3px;" | This Bot is very useful. Swapout (talk) 10:44, 27 October 2020 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|style="vertical-align: middle; padding: 5px;" | 120px

|style="vertical-align: middle; padding: 3px;" | Why not send a cup! IWikepidsacusk (talk) 14:17, 4 December 2020 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Original Barnstar

style="vertical-align: middle; padding: 3px;" | thank bot Mohamed Taqi (talk) 11:44, 25 May 2021 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | 편집자 반스타

style="vertical-align: middle; padding: 3px;" | Thank you for your detail editing. May the Lord bless you. 칼빈500 (talk) 14:04, 18 September 2021 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Original Barnstar

style="vertical-align: middle; padding: 3px;" | Awesome! DIACHRONY (talk) 14:30, 16 November 2021 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Editor's Barnstar

style="vertical-align: middle; padding: 3px;" | Thank you for your edit on Pokémon Go, where you added the title of "Kalos Celebration Event - Pokémon Go" by Serebii, which I pasted the URL to. Kurisumasen (talk) 22:07, 7 December 2021 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Citation Barnstar

style="vertical-align: middle; padding: 3px;" | Thank you, bot. We will always remember your citations ;) Imurmate I'ma editor2022 (talk) 03:26, 9 January 2022 (UTC)

File:Házikecske portré.JPG

A goat friend for a bot, why not?

Cobrafang (talk) 13:25, 30 May 2022 (UTC)


style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; heigth: 1.5em;" | The Original Barnstar

style="vertical-align: middle; padding: 3px;" | thank bot {{Emoji presentation|😁}} Einahr11 (talk) 19:22, 12 August 2022 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Brilliant Idea Barnstar

style="vertical-align: middle; padding: 3px;" | This bot is great! Andre🚐 02:47, 8 August 2022 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Technical Barnstar

style="vertical-align: middle; padding: 3px;" | thanks chad Von bismarck (talk) 18:55, 6 February 2023 (UTC)

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Anti-Vandalism Barnstar

style="vertical-align: middle; padding: 3px;" | Thanks for keeping Wikipedia a fairly accurate source of information! PJFootball (talk) 19:26, 6 July 2024 (UTC)

A brownie for you!

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|style="vertical-align: middle; padding: 5px;" | 120px

|style="vertical-align: middle; padding: 3px;" | Yum! Arhan D (talk) 23:15, 22 February 2024 (UTC)

A barnstar for you!

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Original Barnstar

style="vertical-align: middle; padding: 3px;" | Thank you for editing a lot. I have seen a lot of your edits. I-ready Fan (talk) 22:04, 29 January 2024 (UTC)

YOUR BOT IS AMAZING:: ONE MORE BARNSTAR

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Citation Barnstar for Timeline of Salem, MA ..always amazing work.. THANKS AGAIN..

style="vertical-align: middle; padding: 3px;" | Add: date, title. Changed bare reference to CS1/2....For all of your citation fixes on the Timeline of Salem, MA ..always amazing work.. THANKS AGAIN..3rd of October 2024.!(UTC)

Good robot Two is superior....Another barnstar for you! always amazing work.Good robot

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Resilient Barnstar

style="vertical-align: middle; padding: 3px;" | Good robot 3rd of October 2024(UTC)

A barnstar for you!

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | The Resilient Barnstar

style="vertical-align: middle; padding: 3px;" | Good robot Susbush (talk) 15:21, 27 September 2024 (UTC)

GOOD BOT

Congratulations, wonderful robot! I see you have helped us improve article citations over 5 million times!! That's a very impressive milestone, IMHO, and we are so glad to help your help. Bravo you, and keep up the good work. Best, jengod (talk) 23:53, 21 August 2024 (UTC)

:For all the problems I've had with / cleanup I've done after Citation bot, its work is overwhelmingly positive, and it's far and away the least problematic of the citation scripts. Folly Mox (talk) 09:46, 27 August 2024 (UTC)

A kitten for you!

File:Youngkitten.JPG

Pygos (talk) 03:21, 12 November 2024 (UTC)


you have one of the best bots.. keep up the amazing work

style="border: 1px solid {{{border|gray}}}; background-color: {{{color|#fdffe7}}};"

|rowspan="2" style="vertical-align:middle;" | {{{{{|safesubst:}}}#ifeq:{{{2

}}|alt|100px|{{{{
safesubst:}}}#ifeq:{{{3
}}|alt|100px|100px}}}}

|rowspan="2" |

|style="font-size: x-large; padding: 0; vertical-align: middle; height: 1.1em;" |{{{{

safesubst:}}}#ifeq:{{{2}}}|alt|Bot Operator's Barnstar|{{{2|Bot Operator's Barnstar}}}}}
style="vertical-align: middle; border-top: 1px solid gray;" |The Citation bot is a Tremendous Bot, keep up the amazing work on editing.

Good bot

style="background-color: #fdffe7; border: 1px solid #fceb92;"

|rowspan="2" style="vertical-align: middle; padding: 5px;" | 100px

|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | ReallyGoodBotAward(R)

style="vertical-align: middle; padding: 3px;" | w/ love Hym3242 (talk) 17:09, 28 November 2024 (UTC)

An emoji of a fox for you!

File:Twemoji12 1f98a.svg

i used it and to be honest, its cool!

Nail123Real (talk) 16:57, 29 December 2024 (UTC)

A cheeseburger for you!

style="background-color: var(--background-color-success-subtle, #fdffe7); border: 1px solid var(--border-color-success, #fceb92); color: var(--color-base, #202122);"

|style="vertical-align: middle; padding: 5px;" | 120px

|style="vertical-align: middle; padding: 3px;" | To the best bot on Wikipedia! Plasticwonder (talk) 02:26, 19 April 2025 (UTC)