User:Mr.Z-man/refToolbar

From Wikipedia, the free encyclopedia

refToolbar.js is a JavaScript tool that adds an extra button to the editing toolbar for commonly used citation templates - {{cite web}}, {{cite news}}, {{cite book}}, and {{cite journal}}.

Usage

It will add a "cite" button to the right side of the editing toolbar for citation templatesImage:Button easy cite.png. 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 "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.

This script will not work with wikEd.

Installation

You can add the stable version of this script through the Gadgets tab in your Preferences, "refTools" under the "Editing gadgets" section.

Or to use the latest version of the script (may be differnt 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.