MediaWiki:Gadget-citations.js explained

/* _____________________________________________________________________________ * | | * |

WARNING: GLOBAL GADGET FILE

| * | Changes to this page affect many users. | * | Please discuss changes on the talk page or on before editing. | * |_____________________________________________________________________________| * * Imported from version 1.0 as of 17:18, 9 April 2011 (UTC) from * Adds a "Citation bot" link to the toolbox, and a button beneath edit fields, see */

// @Version 1.0 - Adds an "Expand citations" link to the toolbox, and a button beneath edit fields.// @Version 1.1 - Modify gadget to use jQuery and Citation Bot's new gadgetapi on Tool Labs// @Version 1.2 - Make use of new oojs-ui widget style

var $spinnerspan;var cbButton;

function addCBToToolbox

// Add a citation bot button next to the "Show changes" buttonfunction addCitationButton

// Add a button to allow expanding citations in the text in the edit textboxmw.hook('wikipage.editform').add(function);

// Add a toolbox button that runs Citation Bot on the most recent saved revision of the pageif ($.inArray(mw.config.get('skin'), ['monobook', 'modern', 'vector', 'vector-2022', 'timeless']) !