TechInfoDepot:RefToolbar/1.0

RefToolbar 1.0, the first version of RefToolbar, is a JavaScript tool to help add references to TechInfoDepot 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  tags. Cite web and cite news will have their "accessdate" 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.

My preferences
You can add the stable version of this script through the 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 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 accessdate field can be customized. Add a line like the following to the .js page for your skin and bypass the cache: 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:
 * — The day of the month (1–31)
 * — The day of the month (01-31), zero-padded to 2 digits
 * — The month number (1–12)
 * — The month number (01–12), zero-padded to 2 digits
 * — The month name
 * — The 4-digit year

The default format is DMY,.

Features

 * Easily add commonly used citation templates.
 * Ability to add named references already used in the article.
 * Error checking, checks for common citation issues:
 * tags with no closing
 * Multiple references that contain the same content
 * References that do not use a citation template (often important for consistency)
 * References assigned the same name
 * Usage of undefined named references

Testing versions
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:
 * Support for cite encyclopedia and cite press release templates.
 * A button to quickly make a reference section with if it is there, or add // in front to comment it out
 * 1) Add
 * 2) Bypass your cache (press Ctrl+F5).

Report any bugs or problems on the talk page.

refToolPlus
refToolPlus is an experimental version that introduces some major new features:
 * Enter an ISBN or Google Books URL for a book, press a button, and other fields are filled in automatically with information from reftag or Diberri's tool.
 * Enter a DOI, and a journal citation is automatically fetched from Crossref.org. PMID is coming.
 * Enter a New York Times URLs for a news citation, and title, author, date and page is filled in. For other URLs, only the page title is fetched.
 * Preview citations before inserting into an article.
 * The cite book section has many new fields and functions. It could still use some design fixes.

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  instead to your monobook.js.