Wikipedia:Gadget

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Subject namespaces Talk namespaces
0 (Main/Article) Talk 1
2 User User talk 3
4 Wikipedia Wikipedia talk 5
6 File File talk 7
8 MediaWiki MediaWiki talk 9
10 Template Template talk 11
12 Help Help talk 13
14 Category Category talk 15
100 Portal Portal talk 101
108 Book Book talk 109
118 Draft Draft talk 119
446 Education Program Education Program talk 447
710 TimedText TimedText talk 711
828 Module Module talk 829
2300 Gadget Gadget talk 2301
2302 Gadget definition Gadget definition talk 2303
-1 Special
-2 Media

A Wikipedia gadget is a JavaScript and/or a CSS snippet that can be enabled simply by checking an option in your preferences. The gadget's function is provided by the MediaWiki extension Extension:Gadgets.

General criteria for gadgets[edit]

In order to be deployed on the English language Wikipedia, gadgets should generally pass the following conditions:

  1. Gadgets must work if just included with no further configuration. They can be configurable via personal common.js, but must work unconfigured.
  2. Gadgets must be compatible with all major browsers, i.e. they must not terminate with errors.
  3. Gadgets should be functional in most major browsers (cross-browser compatibility). Exceptions must be clearly stated.
  4. Duplication of gadgets should only be made if it's reasonable.
  5. Collections of scripts should be split if they have disparate functions.
  6. Gadgets requiring permissions must be marked and must fail gracefully if the permissions aren't present.
  7. Gadgets only working in some skins must be marked as such if that data is available.

Proposals[edit]

New gadgets should be proposed at the technical Village Pump.

Historically, new gadgets were proposed at a subpage of this page, but that page was marked historical due to low participation. Also, existing WikiProject User scripts used to be evaluated for conversion to gadgets, but that process has also been marked historical.

Installation[edit]

Gadgets can be installed after discussion at the technical section of the village pump by administrators in the following way:

  1. Add the header below and the script code to MediaWiki:Gadget-scriptname.js
  2. Optionally, add the header below and CSS code to MediaWiki:Gadget-scriptname.css
  3. Add a script description to MediaWiki:Gadget-scriptname. Please link to the script home and/or help page and state browser requirements if needed.
  4. Add to MediaWiki:Gadgets-definition under the appropriate heading
    * scriptname|scriptname.js[|scriptname.css|otherscript.js|...]
    
  5. Update the table of installed gadgets below

The gadget should now appear on Special:Gadgets.

Comments[edit]

Comments or warnings can be added to the gadget description templates in two ways:

  • noinclude tag (visible on description page with links): <noinclude> comment </noinclude>
  • HTML comments (visible in source text only): <!-- comment -->

Comments added in this way will be automatically discarded during the page creation process.

Header[edit]

The following header is to be added to the gadget files:

/*  _____________________________________________________________________________
 * |                                                                             |
 * |                    === WARNING: GLOBAL GADGET FILE ===                      |
 * |                  Changes to this page affect many users.                    |
 * | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |
 * |_____________________________________________________________________________|
 *
 * Imported from version XXXX as of DATE from [[SCRIPT_SOURCE]]
 * SHORT_DESCRIPTION, see [[SCRIPT_HOME_PAGE]]
 */

Default gadgets[edit]

A gadget with default keyword is enabled for all Wikipedia visitors and only registered users can disable it.

A gadget with [default|rights=minoredit] description would be automatically enabled only for registered users.

Currently installed gadgets[edit]

Name Function Script:
Homepage, Source, Maintainer
Gadget:
Version, Description, Script, CSS
addsection + Replace the "new section" tab text with "+"  ?
 ?
User:Random832
 ?
MediaWiki:Gadget-addsection-plus
MediaWiki:Gadget-addsection-plus.js
RightEditLinks Move section [edit] links to the right side of the screen  ?
 ?
User:Edokter
May 8, 2013
MediaWiki:Gadget-righteditlinks
MediaWiki:Gadget-righteditlinks.css
Article assessment Display an assessment of an article's quality in its page header (documentation) User:Pyrospirit/metadata
User:Pyrospirit/metadata.js
User:Pyrospirit
17:47, 4 May 2008
MediaWiki:Gadget-metadata
MediaWiki:Gadget-metadata.js
Blackskin Use a black background with green text on the Monobook skin  ?
 ?
User:Prodego
 ?
MediaWiki:Gadget-Blackskin
MediaWiki:Gadget-Blackskin.css
Citation expander Citation expander: automatically expand and format citations using Citation bot WP:Citation expander
User:Smith609/citations.js
User:Smith609
1.0
MediaWiki:Gadget-citations
MediaWiki:Gadget-citations.js
Comments in Local Time Change UTC-based times and dates, such as those used in signatures, to be relative to local time (documentation) Wikipedia:Comments in Local Time
User:Gary King/comments in local time.js
User:Gary King
MediaWiki:Gadget-CommentsInLocalTime
MediaWiki:Gadget-CommentsInLocalTime.js
Dot's syntax highlighter Make syntax stand out colorfully in the edit box. Works best in Firefox, works almost all of the time in Opera, and works most of the time in Chrome. Should not be used with the browser's page zoom feature. mw:User:Remember the dot/Syntax highlighter
mw:User:Remember the dot/Syntax highlighter.js
MediaWiki:Gadget-DotsSyntaxHighlighter
MediaWiki:Gadget-DotsSyntaxHighlighter.js
Drop-down menus MoreMenu: add Page and User dropdown menus to the toolbar with links to common tasks, analytic tools and logs (documentation: Vector, Monobook or Modern) User:Haza-w/Drop-down menus
User:Haza-w/cactions.js
User:Haza-w
4 February 2009, 15:39 UTC
MediaWiki:Gadget-dropdown-menus
MediaWiki:Gadget-dropdown-menus.js
MediaWiki:Gadget-dropdown-menus.css
DRW Gadget to file DRN (UNDER TRIAL), script homepage: User:Steven_Zhang/DRW.js, associated discussion at Wikipedia_talk:Dispute_resolution_noticeboard#Changing_the_way_DRN_threads_are_filed. User:Steven_Zhang/DRW.js
User:Steven_Zhang/DRW.js]
User:Steven_Zhang
12:17, 24 July 2012 UTC
MediaWiki:Gadget-DRW
MediaWiki:Gadget-DRW.js
Edittop (?) Adds an [edit] link for the lead section of a page.  ?
User:Alex Smotrov/edittop.js
User:Alex Smotrov
2007-06-19T04:28:52
MediaWiki:Gadget-edittop
MediaWiki:Gadget-edittop.js
Exlinks (?) Opens external links in a new tab/window.  ?
 ?
 ?
 ?
MediaWiki:Gadget-exlinks
MediaWiki:Gadget-exlinks.js
GoogleTrans GoogleTrans: open a translation popup for the selected text or the word under the cursor when pushing the shift button User:Endo999/GoogleTrans
User:Endo999/GoogleTrans.js
User:Endo999
 ?
MediaWiki:Gadget-GoogleTrans
MediaWiki:Gadget-GoogleTrans.js
Navigation popups Provides easy access to article previews and several Wikipedia functions in popup windows which appear when you hover the mouse over links. Wikipedia:Tools/Navigation_popups
User:Lupin/popups.js
User:Lupin
Sat Mar 10 21:40:16 UTC 2007
MediaWiki:Gadget-Navigation_popups
MediaWiki:Gadget-popups.js
MediaWiki:Gadget-navpop.css
RemoveAccessKeys Disables browser access keys on Wikipedia pages. Wikipedia:Tools/Disable access keys
Wikipedia:WikiProject User scripts/Scripts/removeAccessKeys
 ?
 ?
MediaWiki:Gadget-removeAccessKeys
MediaWiki:Gadget-removeAccessKeys.js
UTC Live Clock (?) A clock in the personal toolbar that shows the current time in UTC, and provides a purge link.  ?
 ?
User:AzaToth
 ?
MediaWiki:Gadget-UTCLiveClock
MediaWiki:Gadget-UTCLiveClock.js
wikEd A full-featured text editor for Firefox, Mozilla, Google Chrome, Webkit, and Safari wikEd
User:Cacycle/wikEd.js
User:Cacycle
(Loads current version)
MediaWiki:Gadget-wikEd
MediaWiki:Gadget-wikEd.js
-
revisionjumper Using this script allows you to easily navigate diffs, articles' histories and articles themselves. A feature-rich drop down menu offers various functions to jump to a certain revision which is situated before or after the selected revision. Besides default parameters, configurable requests can be done. Further, the default setting can be personalized. revisionjumper
de:User:DerHexer/testrevisionjumper.js
User:DerHexer
1.2.3
MediaWiki:Gadget-revisionjumper
MediaWiki:Gadget-revisionjumper.js
-
NoSmallFonts Disables smaller font sizes of elements such as Infoboxes, Navboxes and References lists.  ?
 ?
User:Edokter
 ?
MediaWiki:Gadget-NoSmallFonts
MediaWiki:Gadget-NoSmallFonts.css
MenuTabsToggle Enable toggling between tabs and dropdown menus in the Vector skin. (Please report bugs here.)  ?
User:Edokter/MenuTabsToggle.js
User:Edokter
 ?
MediaWiki:Gadget-MenuTabsToggle
MediaWiki:Gadget-MenuTabsToggle.js
MediaWiki:Gadget-MenuTabsToggle.css
ProveIt ProveIt, a powerful GUI tool for viewing, editing, adding, and inserting references (screenshot, working demo). ProveIt MediaWiki:Gadget-ProveIt
MediaWiki:Gadget-ProveIt.js
HistoryNumDiff Shows the number of characters added or removed, rather than the size of the revision. [Illustration]  ?
fr:MediaWiki:Gadget-HistoryNumDiff.js
Author: User:The RedBurn.
English Wikipedia uploader: User:Superm401.
MediaWiki:Gadget-HistoryNumDiff
MediaWiki:Gadget-HistoryNumDiff.js
Teahouse "Ask a question" feature for the Foundation's teahouse project. Andrew Garrett • talk MediaWiki:Gadget-teahouse.js
MediaWiki:Gadget-teahouse/content.js
MediaWiki:Gadget-teahouse.css
ReferenceTooltips Roll over any inline citation to see reference information, instead of having to jump away from the article text. MediaWiki:Gadget-ReferenceTooltips.js;
MediaWiki:Gadget-ReferenceTooltips.css
Yet Another AFC Helper Script Easily review Articles for creation submissions and redirect requests WP:AFCH MediaWiki:Gadget-afchelper;
MediaWiki:Gadget-afchelper.js
Direct imagelinks to Commons Redirect image links to Commons for files that are hosted there Krinkle MediaWiki:Gadget-imagelinks.js
Switcher Show radio buttons to switch between views of certain content, such as some maps User:Jackmcbarn/switcher
User:Jackmcbarn/switcher.js
Jackmcbarn
02:00, 2 December 2014‎ (UTC)
MediaWiki:Gadget-switcher
MediaWiki:Gadget-switcher.js

See also[edit]