<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Wikipedia%3AGadget</id>
	<title>Wikipedia:Gadget - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Wikipedia%3AGadget"/>
	<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Wikipedia:Gadget&amp;action=history"/>
	<updated>2026-05-16T00:34:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.tachyony.co.uk/w/index.php?title=Wikipedia:Gadget&amp;diff=1373&amp;oldid=prev</id>
		<title>Tachyony: Imported page</title>
		<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Wikipedia:Gadget&amp;diff=1373&amp;oldid=prev"/>
		<updated>2021-12-06T12:00:05Z</updated>

		<summary type="html">&lt;p&gt;Imported page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Wikipedia programs}}&lt;br /&gt;
{{Information page|WP:GADGET|WP:GADGETS}}&lt;br /&gt;
{{Tool warning|any gadget}}&lt;br /&gt;
{{Namespaces}}&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;Wikipedia gadget&amp;#039;&amp;#039;&amp;#039; is a [[JavaScript]] program and/or a [[CSS]] [[Snippet (programming)|snippet]] that can be enabled simply by checking an option in your [[Special:Preferences#mw-prefsection-gadgets|preferences]]. The gadget&amp;#039;s function is provided by the [[MediaWiki]] extension [[mw:Extension:Gadgets|Gadgets]].&lt;br /&gt;
&lt;br /&gt;
Many gadgets started out as [[Wikipedia:User scripts|user scripts]]. Once a user script is approved as a gadget, it is removed from [[Wikipedia:User scripts/List]].&lt;br /&gt;
&lt;br /&gt;
== General criteria for gadgets ==&lt;br /&gt;
In order to be deployed on the English language Wikipedia, gadgets should generally pass the following conditions:&lt;br /&gt;
&lt;br /&gt;
# Gadgets &amp;#039;&amp;#039;&amp;#039;must&amp;#039;&amp;#039;&amp;#039; work if just included with no further configuration. They can be configurable via [[Special:MyPage/common.js|personal common.js]], but must work unconfigured.&lt;br /&gt;
# Gadgets &amp;#039;&amp;#039;&amp;#039;must&amp;#039;&amp;#039;&amp;#039; be compatible with all major browsers, i.e., they must not terminate with errors.&lt;br /&gt;
# Gadgets &amp;#039;&amp;#039;&amp;#039;should&amp;#039;&amp;#039;&amp;#039; be functional in most major browsers (cross-browser compatibility). Exceptions must be clearly stated.&lt;br /&gt;
# Duplication of gadgets &amp;#039;&amp;#039;&amp;#039;should&amp;#039;&amp;#039;&amp;#039; only be made if it is reasonable.&lt;br /&gt;
# Collections of scripts &amp;#039;&amp;#039;&amp;#039;should&amp;#039;&amp;#039;&amp;#039; be split if they have disparate functions.&lt;br /&gt;
# Gadgets requiring permissions &amp;#039;&amp;#039;&amp;#039;must&amp;#039;&amp;#039;&amp;#039; be marked and must fail gracefully if the permissions aren&amp;#039;t present.&lt;br /&gt;
# Gadgets only working in some skins &amp;#039;&amp;#039;&amp;#039;must&amp;#039;&amp;#039;&amp;#039; be marked as such if that data is available.&lt;br /&gt;
&lt;br /&gt;
== Proposals ==&lt;br /&gt;
&lt;br /&gt;
New gadgets should be proposed at [[WP:VPT|the technical Village Pump]].&lt;br /&gt;
&lt;br /&gt;
Historically, new gadgets were proposed at [[Wikipedia:Gadget/proposals|a subpage of this page]], but that page was marked historical due to low participation. Also, existing [[Wikipedia:WikiProject User scripts|WikiProject User scripts]] used to be [[Wikipedia:Gadget/evaluation|evaluated]] for conversion to gadgets, but that process has also been marked historical.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Gadgets can be installed after discussion at the [[Wikipedia:Village pump (technical)|technical section of the village pump]] by [[Wikipedia:Interface administrators|interface administrator]]s in the following way:&lt;br /&gt;
&lt;br /&gt;
# Add the [[#Header|header]] below and the script code to MediaWiki:Gadget-&amp;#039;&amp;#039;scriptname&amp;#039;&amp;#039;.js&lt;br /&gt;
# Optionally, add the [[#Header|header]] below and [[Cascading Style Sheets|CSS]] code to MediaWiki:Gadget-&amp;#039;&amp;#039;scriptname&amp;#039;&amp;#039;.css&lt;br /&gt;
# Add a script description to MediaWiki:Gadget-&amp;#039;&amp;#039;scriptname&amp;#039;&amp;#039;. Please link to the script home and/or help page and state browser requirements if needed.&lt;br /&gt;
# Add to [[MediaWiki:Gadgets-definition]] under the appropriate heading &lt;br /&gt;
#: &amp;lt;syntaxhighlight lang=&amp;quot;moin&amp;quot;&amp;gt; * scriptname|scriptname.js[|scriptname.css|otherscript.js|...]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The gadget should now appear on [[Special:Gadgets]].&lt;br /&gt;
&lt;br /&gt;
=== Comments ===&lt;br /&gt;
&lt;br /&gt;
Comments or warnings can be added to the gadget description templates in two ways:&lt;br /&gt;
&lt;br /&gt;
* noinclude tag (visible on description page with links): &amp;#039;&amp;#039;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;noinclude&amp;gt; comment &amp;lt;/noinclude&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;#039;&amp;#039; &lt;br /&gt;
* HTML comments (visible in source text only): &amp;#039;&amp;#039;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;!-- comment --&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
Comments added in this way will be automatically discarded during the page creation process.&lt;br /&gt;
&lt;br /&gt;
=== Header ===&lt;br /&gt;
&lt;br /&gt;
The following header is to be added to the gadget files:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;js&amp;quot;&amp;gt;&lt;br /&gt;
/*  _____________________________________________________________________________&lt;br /&gt;
 * |                                                                             |&lt;br /&gt;
 * |                    === WARNING: GLOBAL GADGET FILE ===                      |&lt;br /&gt;
 * |                  Changes to this page affect many users.                    |&lt;br /&gt;
 * | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |&lt;br /&gt;
 * |_____________________________________________________________________________|&lt;br /&gt;
 * &lt;br /&gt;
 * Imported from version XXXX as of DATE from [[SCRIPT_SOURCE]]&lt;br /&gt;
 * SHORT_DESCRIPTION, see [[SCRIPT_HOME_PAGE]]&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Default gadgets ===&lt;br /&gt;
A gadget with [[mw:Extension:Gadgets#Options|&amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt;]] keyword is enabled for all Wikipedia visitors and only registered users can disable it. &lt;br /&gt;
&lt;br /&gt;
A gadget with &amp;lt;code&amp;gt;[default|rights=minoredit]&amp;lt;/code&amp;gt; description would be automatically enabled only for registered users.&lt;br /&gt;
&lt;br /&gt;
== Currently installed gadgets ==&lt;br /&gt;
Users can browse a list of all available gadgets in the gadgets section of their preferences page:&lt;br /&gt;
&lt;br /&gt;
{{myprefs|Gadgets}}&lt;br /&gt;
&lt;br /&gt;
See [[Special:Gadgets]] for a list of all active gadgets and links to their script files.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MediaWiki talk:Gadgets-definition]], discussing technical details of making and maintaining gadgets&lt;br /&gt;
* [[Special:GadgetUsage]], provides statistics on gadget usage&lt;br /&gt;
* [[mw:Extension:Gadgets]], the Mediawiki gadget extension page&lt;br /&gt;
* [[Template:Bug report]], template message asking for detailed bug-related information&lt;br /&gt;
* [[mw:Gadget kitchen]], tutorial on writing gadgets&lt;br /&gt;
* [[Wikipedia:Gadget/Repositories]], a list of version control repositories for gadgets and user scripts&lt;br /&gt;
&lt;br /&gt;
{{Wikipedia technical help|collapsed}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Wikipedia scripts| ]]&lt;/div&gt;</summary>
		<author><name>Tachyony</name></author>
	</entry>
</feed>