Wikipedia:RefToolbar
RefToolbar refers to a series of JavaScript/jQuery scripts that help editors add citation templates to articles. It works in conjunction with the MediaWiki extension WikiEditor. The Reftoolbar implementation is scattered across several scripts (see, for example, this, this or this prefix search). The newest version, RefToolbar 2.0 is turned on by default for new users.
Originally an opt-in Wikipedia Gadget, Reftoolbar was moved to a site-wide script on February 25, 2011, and to an opt-out gadget in April 2014.[1][2] It comes in two versions, depending on the settings at Preferences → Editing → Editor.
VersionsEdit
The default for all users, logged in or not, is refToolbar 2.0.
Click on the version number for more information about each refToolbar implementation.
Enable enhanced... | RefToolbar version |
RefToolbar style | Script |
---|---|---|---|
Off | RefToolbar 1.0 | Cite icon on right |
MediaWiki:RefToolbarLegacy.js |
On | RefToolbar 2.0 | Cite menu item on right |
MediaWiki:RefToolbar.js |
Table headings are abbreviations of the names seen at Preferences → Editing:
- Enable enhanced... will say Enable the editing toolbar.
The RefToolbar style column indicates the widget that activates the cite mechanism.
Before 2017, there were three versions of Refoolbar: 1.0, 2.0a and 2.0b. Version 2.0a was removed on June 14, 2017, since it was no longer needed.
VisualEditorEdit
If your toolbar looks like this:
Then you are using the rich-text VisualEditor. It also has a Cite button, with an autofilling citoid service, but that one is NOT RefToolbar. If you want to learn how to use that Cite menu, please refer to the VisualEditor user guide.
Related scriptsEdit
- MediaWiki:Gadgets-definition — this defines the module "ext.gadget.refToolbar" (loaded for everybody), responsible by loading the appropriated components of the RefToolbar, such as the module "ext.gadget.refToolbarBase"
- MediaWiki:Gadget-refToolbar.js — this is the main script that generates the editing window and is where RefToolbar gets included
- MediaWiki:Gadget-refToolbarBase.js — common variables and functions for all scripts
- MediaWiki:RefToolbarMessages-en.js — English UI translations
- MediaWiki:RefToolbarMessages-de.js — German UI translations
- MediaWiki:RefToolbarConfig.js
- toollabs:reftoolbar/lookup.php Provides the autofill capability used to auto-complete forms based on ISBN, DOI, and PMID values.
You can also do a "subpages with prefix searches" to find other related pages, in particular MediaWiki and Wikipedia namespace searches are useful.
Call graphEdit
This image file is found at commons:File:Wikipedia reftoolbar dependency graph.svg.
See alsoEdit
- Help:Citation tools – contains a list of citation related tools
- Help:Edit toolbar
- User:Odie5533/SnipManager