RefToolbar 1.0, the first version of RefToolbar, is a JavaScript tool to help add references to Wikipedia articles. It adds an extra button to the editing toolbar for commonly used citation templates: ((cite web)), ((cite news)), ((cite book)), and ((cite journal)). This editing toolbar can be installed to your preferences with the script at RefToolbarLegacy.js or by unchecking "Enable enhanced editing toolbar" at "My preferences". This version 1.0 is the legacy version, as the updated RefToolbar 2.0 is now the default version, as of 25 February 2011.

Usage

It will add a "cite" button to the right side of the editing toolbar for citation templates, like this: . When you click on the button, you can choose which citation template to use and a form will appear with fields to fill in for available parameters in the citation template. Unfilled parameters will not be added to the page. The templates are already wrapped in <ref> tags. Cite web and cite news will have their "access-date" parameter filled in with the current UTC date. Click the "add citation" button to add it to the page.

The "Named references" button produces a list of all the named references in the text, for easy addition of repeated references.

Installation

My preferences

You can add the stable version of this script through the Preferences → Editing → Usability features by unchecking the "Enable enhanced editing toolbar" option, then click the "Save" button.

Monobook.js

Or to use the latest version of the script (may be different from the Gadget version, possibly broken, and not tested as extensively), add

importScript('User:Mr.Z-man/refToolbar.js');

to your monobook JS page (or whatever skin you use) and bypass your cache.

You may also copy the code at: RefToolbarLegacy.js.

Customizing

The date format used in the access-date field can be customized. Add a line like the following to the .js page for your skin and bypass the cache:

citeUserDateFormat = 'format string';

The format string should be a string that defines the date format you want to use. The following special words will be replaced with parts of the date, anything else will be left as text:

For example, to use the ISO date format:

citeUserDateFormat = '<year>-<zmonth>-<zdate>';

The default format is DMY, '<date> <monthname> <year>'.

Features

Testing versions

Screenshot of the testing version

You are invited to try the development version of RefToolbar, updated as of 13 February 2010. It has new features, but may also have bugs. Features include:

Smaller changes:

To try the testing version:

  1. If you have the refTools gadget enabled, uncheck it in your user Preferences, under the "Editing gadgets" section, then click the "Save" button.
  2. Open your monobook.js page (or whatever skin you use)
  3. Remove
    importScript('User:Mr.Z-man/refToolbar.js');
    
    if it is there, or add // in front to comment it out
  4. Add
    importScript('User:Apoc2400/refToolbar.js');
    
  5. Bypass your cache (press Ctrl+F5).

Report any bugs or problems on the talk page.

refToolPlus

Screenshot of refToolPlus development version

refToolPlus is an experimental version that introduces some major new features:

Note: This tool uses external resources, including my (Apoc2400) site at reftag.appspot.com. The owners of these sites can see you IP and browser information.

To try it, do as above but add

importScript('User:Apoc2400/refToolbarPlus.js');

instead to your monobook.js.

Userboxes

Code Result
((User:Powergate92/Userboxes/refToolbar))
This user cites sources using refToolbar.
Usage

See also