Wikidata:Tools/Enhance user interface
Enhance user interface | ||
This is a list of user scripts that you can add to enhance the looks and features of Wikidata and make editing faster and more productive. Anyone is free to add their own script to this list. |
Before you install any of the scripts on this list, it is highly recommended you install User:So9q/ScriptInstaller.js so that you can easily install scripts by clicking an "Install" button on their source page. You can do so by adding this to your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ASo9q%2FScriptInstaller.js&action=raw&ctype=text%2Fjavascript' ); // [[User:So9q/ScriptInstaller.js]]
Userscripts to aid editing[edit]
Userscripts to add basic editing features that Wikibase lacks[edit]
Adds a link to copy an item under the tools menu to the left. DarwIn made a fork that does not copy aliases: User:DarwIn/duplicate item.js and So9q improved it further with a working ok/cancel dialog to avoid accidental duplication: User:So9q/duplicate_item.js

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AMagnus_Manske%2Fduplicate_item.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Magnus_Manske/duplicate_item.js]]

Adds a link to copy references and add them to other statements on the same item.


Temporarily intercepts all edit requests (including statement deletions) for items, properties and lexemes and prompts for edit summary, which will be appended to auto-generated one. Useful for providing an explanation for non-trivial edits.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALockal%2FEditSum.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lockal/EditSum.js]]

Adds a move tool to the sitelink edit toolbar to move one or all sitelinks to another item.


Adds a "move" button to statements, for moving or copying them to another item, lexeme or property, or changing the property in the same item.

Allows user to easily change order of values for any statement, e.g. change random order to a chronological order.

Userscripts for more convenient editing[edit]

Add a "create new item" link in the dropdown menu for when you want to add an item to a property, but the item does not exist. (phab:T107693). Improved version from So9q that supports lexemes and the main search box also (still in beta).

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AEfly%2FGadget-CreateNewItem.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Efly/Gadget-CreateNewItem.js]]
This script provides a JavaScript function for other scripts to use that allows you to automatically add a statement manually through the interface. That way you don't need to refresh the page after making an API call instead to add a statement.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2FAddStatement.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/AddStatement.js]]
If you're viewing an item for which there's no label in your current language this will insert the 3 most common labels across other languages below the input box. A simple click on one of them will approve & submit it for the current user language.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AJoern%2FaltLabels.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Joern/altLabels.js]]

This script automatically adds all labels with the help of the interwiki links and adds descriptions from an editable list. To use it, click on Automatic addition in Tools.

Automately create class numbers for literary authors and works using the Colon Classification bibliographic scheme based on properties available into Wikidata items. No need to know Colon Classification.
by Bargioni and Carlobia
Add sources more easily by using Citoid. If you provide a URL one click on 'autofill' will add all the information about this source (Title, access date, language, etc) automatically.
by Aude
Add a "create new item" link in the dropdown menu for when you want to add an item to a property, but the item does not exist. (phab:T107693). Also works for lexemes and features a popup to select languages.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ASo9q%2FCreateNewEntity.js&action=raw&ctype=text%2Fjavascript' ); // [[User:So9q/CreateNewEntity.js]]
Whenever you add a retrieved (P813) property to a reference or somewhere else, this user script automatically pre-fills the input field with the current date.


Drag sitelinks onto claims to make "imported from" references.

Add statements and references from Wikidata or Wikipedia by dragging and dropping them.
- Duplicate an existing statement reference to another statement
- Drag a (URL-based) reference from Wikipedia to a Wikidata statement
- Drag a Wikipedia link to use as a statement in Wikidata (will ask for property)

Adds a "Find redirects" button in a submenu next to the "Watch" button that, when clicked, displays a list of Wikipedia redirects and allows the user to select some of them to add as aliases.

When adding an identifier property it tries to strip that identifier out of the full URL

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3A1Veertje%2FidentifierInput.js&action=raw&ctype=text%2Fjavascript' ); // [[User:1Veertje/identifierInput.js]]

A script to semi-automatically import labels, descriptions and aliases for multiple languages based on the articles in Wikipedia and other Wikimedia projects.
Suggests descriptions by extracting definitions from article introductions, aliases based on what's bolded in the article introduction, and labels from the article title, and provides a mask to compare existing values with the suggestions made and the article introductions, and to review and edit them all at once. When finished, optionally the next item with no label or description can be loaded automatically, allowing fast processing of many items.
See this page for a more detailed documentation.
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AYMS%2Flabelcollect.js&action=raw&ctype=text%2Fjavascript' ); // [[User:YMS/labelcollect.js]]
This script shows a list of all labels in all languages that are supported in the specific item. And edit label without having to change your main language. Abandoned as of October 2021.

Adds a "Merge it with ..." button in a submenu next to the "Watch" button. When clicked, it allows to merge items and automatically turn the merged item into a redirect.

Allows you to add authority control IDs from VIAF (VIAF ID (P214)) with few edits. It is thought to be customizeable. Detailed instruction in User:Bargioni/moreIdentifiers

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ABargioni%2FmoreIdentifiers.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Bargioni/moreIdentifiers.js]]
Fill in labels, descriptions and aliases of name items. See Wikidata:Namescript for more information.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AHarmonia_Amanda%2Fnamescript.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Harmonia Amanda/namescript.js]]

quickpresets is a User script, that allows you to add common statements with only one click. It is meant to be customizable. You can configure it to present you the presets you use most often with as little clicks as possible. For example if you often edit items of persons it can present you gender, citizenship, occupation, etc. Look at the script-site to learn how to customize.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AMichaelSchoenitzer%2Fquickpresets.js&action=raw&ctype=text%2Fjavascript' ); // [[User:MichaelSchoenitzer/quickpresets.js]]

This script imports automatically all interwiki-links from one Wikipedia article. The gadget then can be launched by clicking on the "Import interwiki" link in the toolbox. After that a dialog appears where a language for import can be selected.


Tool to patrol and rollback unpatrolled recent changes on Wikidata, especially on mobile devices.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALucas_Werkmeister%2FSpeedPatrolling&action=raw&ctype=text%2Fjavascript' ); // [[User:Lucas_Werkmeister/SpeedPatrolling]]
Adds a movable box to the right side of the page. There are some predefined property-items (man, woman, some occupations), which get activated by clicking on them.
But the main feature is that the user can input property-item pairs for repeated use. First, there is a flexible storage system, which uses cookies. After the start there is only one row for a property (p) and one for a value (q). By clicking p+ and q+ you can add as many rows as you need. If you write in a property, an item, or a short text (label) this will be saved in the cookies. That means, after checking a property-item pair, which transfers the inputs to the Wikidata datasource, you can go to the next item and what you typed into the storage system is still there and can be used again. The newest version of this tool has further an input for item descriptions. The second option is a file in the Wikidata userspace. Each user has a separate wikipage in its own userspace where they could write in some property-item pairs, which uses the tool to fill an additional selection. The address is User:your username/data. Take as example User:Goldzahn/data.
In this way data is stored until it is deleted, while the data stored in cookies last only as long as the browser is not closed.
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AGoldzahn%2Fwikidata_useful.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Goldzahn/wikidata useful.js]]
Allows you to add references to statements using external IDs as sources. Detailed instruction in User:Bargioni/UseAsRef.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ABargioni%2FUseAsRef.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Bargioni/UseAsRef.js]]

Adds a UI element in Wikidata that proposes statements to be inserted into Wikidata. The statements are currently extracted from Wikipedia by a machine-learning algorithm. Approved statements are added to Wikidata. This YouTube video briefly describes the tool.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AData-Complete-Gadget%2FWikidataComplete.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Data-Complete-Gadget/WikidataComplete.js]]

Adds a box of quick "add statement" links to the right side of the page. Entity and phylogeny types, countries (location and citizenship). Also, tries to load and display a blurb from en or de Wikipedia.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AMagnus_Manske%2Fwikidata_useful.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Magnus Manske/wikidata_useful.js]]
Adds an arrow next to the main label (page title) which upon double click (a tap and a confirmation on touch devices) automatically makes the label's first letter lowercase for the current interface language. If there was already a matching alias it gets removed.
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Base/Scripts/HaveWikibaseLabelLowercased.js&action=raw&ctype=text/javascript');
When adding a new property to an item, if the property is an external identifier, add a magnifier lens button to quickly search the current item in that external website. - Useful when creating an item with many external identifiers like a movie or a person.

mw.loader.load('//www.wikidata.org/wiki/User:Luca.favorido/linkypop.js&action=raw&ctype=text/javascript');
Userscripts to enhance the display of values[edit]
For items with 'Authority Control' properties, set the corresponding codes as links to the online Authority Control tool. Moreover, if the user clicks 'edit', the link disappears instantly. Check it out with Barack Obama (Q76)!


This gadget displays SMILES, CXSMILES, and SMARTS renderings for chemical compounds, and chemical compound classes, where the item contains statements for canonical SMILES (P233) and isomeric SMILES (P2017), CXSMILES (P10718), and SMARTS notation (P8533). Check it out with acetic acid (Q47512) (SMILES) or PG-D-Ala (R1,R2) (Q46328873) (CXSMILES).

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AEgon_Willighagen%2Fcdkdepict_gadget.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Egon Willighagen/cdkdepict gadget.js]]

Adds maps to OpenStreetMap relation ID (P402) or geoshape (P3896) statements

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATeester%2FClaimMaps.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Teester/ClaimMaps.js]]
Adds a colour swatch to statements using sRGB color hex triplet (P465). Additionally, a colour swatch will be displayed on color (P462), flower color (P2827) or official color (P6364) and the statement's item has a sRGB color hex triplet (P465).

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATeester%2FDisplayColourSwatches.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Teester/DisplayColourSwatches.js]]
Makes all dates in claims appear as "dd month-name-in-your-language yyyy". Requires the "date" option to be set to "dmy".

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ARicordisamoa%2FDMYdates.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Ricordisamoa/DMYdates.js]]

This script shows embeds on external ID statements such as YouTube videos, Spotify playlists, Twitter tweets, Genius lyrics, and more!
This helps you validate the accuracy of external identifiers, provides an interface to explore further document the data present in embeds, and makes editing fun!

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2Fembeds.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/embeds.js]]
Inserts an iframe from the Panoviewer tool for photosphere image (P4640) statements.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AJon_Harald_S%C3%B8by%2FPanoviewer.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Jon Harald Søby/Panoviewer.js]]
This script sorts the values of the property software version identifier (P348) in the classical order for software versions. If you want other properties be sorted, ask me, I can generalise the scripts for other properties and other orders (alphabetical, etc.). You can see an example on Ubuntu (Q381).

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ASeb35%2FsortValues.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Seb35/sortValues.js]]
Converts from 20 currencies to a selected currency. Converts metric units (mass, dimensions, area, temperature, speed) to/from United States units. The currency amounts are inflation adjusted if data is available.

Bamyers99_UnitsConverter_currency = 'EUR'; // AUD,BRL,CAD,CHF,CNY,DKK,EUR,GBP,INR,ISK,JPY,MXN,NOK,NZD,PLN,RUB,SEK,TRY,USD,ZAR
importScript("User:Bamyers99/UnitsConverter.js");
It provides a link to Wikispecies for elements with taxon name (P225), and an image for IUCN conservation status (P141).

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ARicordisamoa%2FWikispecies.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Ricordisamoa/Wikispecies.js]]
Userscripts to link Wikidata frontends[edit]
For people with kinship relations, adds a link to GeneaWiki for viewing a family tree.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ARicordisamoa%2FGeneaWiki.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Ricordisamoa/GeneaWiki.js]]
Adds a link to [ordia.toolforge.org] which is a tool to visualize and search for existing lexemes as well as aid in creating new lexemes.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ASo9q%2Fordia-link.js&action=raw&ctype=text%2Fjavascript' ); // [[User:So9q/ordia-link.js]]
Adds a link in your toolbox to view the current item in Reasonator.

Adds a Scholia link on items in the Tools section on items.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AFnielsen%2Fscholia-link.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Fnielsen/scholia-link.js]]
Userscripts for improving data quality[edit]

Allows you to check whether an item conforms to a shex entitySchema (e.g. E10 for a human (Q5))). An input field is also added to entitySchema pages (e.g. E10) to allow you to enter an item to check (e.g. Douglas Adams (Q42))).

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATeester%2FCheckShex.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Teester/CheckShex.js]]

Information about the classes to which the item belongs (instance of (P31)), and/or all the parent classes of a class (subclass of (P279)).
- Allows to visualise the parent classes tree thanks to the query service, allows to find the path between a class and one of its parent — useful if it seems that it’s an incorrect parent class, for example if all knives happens to be abstract object according to Wikidata)
- Provides the a link to report incorrect relationships to WikiProject Ontology for discussion with community on how to fix this.
- Detects loops in the superclass tree
- Detects if a class if a subclass is a subclass of disjoint classes, or if an instance is an instance of several classes.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATomT0m%2Fclassification.js&action=raw&ctype=text%2Fjavascript' ); // [[User:TomT0m/classification.js]]

This script adds status indicators to Wikidata items summarizing the item's constraint violations and warnings. Mousing over the indicators shows a breakdown of violation and warning types. Clicking on the indicator brings you to the item's Special:ConstraintReport page.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATeester%2FConstraintSummary.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Teester/ConstraintSummary.js]]
A tool to check consistencies of statements, that is, if B is "child" of A, then A should be "father" or "mother" of B.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AJonnyJD%2Fconsistency_check.js&action=raw&ctype=text%2Fjavascript' ); // [[User:JonnyJD/consistency_check.js]]
A tool to check consistencies of statements and to add missing inverse properties.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AFrettie%2Fconsistency_check_add.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Frettie/consistency check add.js]]

Allows you to check whether an item conforms to a shex entitySchema (e.g. E10 for a human (Q5) and displays whether each property and statement in an entity conforms to that entityschema. Only works for relatively straightforward schemas at the moment.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATeester%2FEntityShape.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Teester/EntityShape.js]]
This adds a warning next to instance of (P31) statements on classes if their values are not metaclasses.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2Fmetaclass-check.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/metaclass-check.js]]
This script displays an alert at the top of the Item pages on wikidata.org and a link to the Mismatch Finder tool to learn more about the potential mismatches.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AGuergana_Tzatchkova_%28WMDE%29%2FMismatchFinderWidget.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Guergana Tzatchkova (WMDE)/MismatchFinderWidget.js]]

This script adds a status indicator and an expandable list of important absent properties to Wikidata. More details are on the tool's page.

This script is a derivative from Recoin and adds a expandable lists of important absent IDs to Wikidata. More details are on the tool's page.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AVvekbv%2Frecoin_id.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Vvekbv/recoin_id.js]]
Counts the number of references that support a qualifier using supports qualifier (P10551).

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ANw520%2FQualiRef.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Nw520/QualiRef.js]]

Inspired by the original WikiTrust, it's a fairly simple algorithm which loops into all revisions of the current entity and attributes changes of claims, sitelinks, labels and descriptions to the users who made them. It is still in beta, but should work fine.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ARicordisamoa%2FWikidataTrust.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Ricordisamoa/WikidataTrust.js]]
Inspired by User:Mateusz Konieczny/failing testcases, this warns editors when they select a value for instance of (P31) or subclass of (P279) that would change various "fundamental" superclasses (i.e. physical vs abstract, processes vs objects, fictional vs actual, etc.) for the item. It is in alpha -- it works (for edits, not additions (but I'll add that eventually)) but needs more examples of conflicting items and other feature improvements and bug fixes. Suggestions very welcomed!

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AJesseW%2Fconflicting_superclass_warnings.js&action=raw&ctype=text%2Fjavascript' ); // [[User:JesseW/conflicting_superclass_warnings.js]]
Userscripts to speed up wiki tasks[edit]
It works only in Wikidata:Requests for deletions, on items that haven't been deleted yet.
- it highlights empty ones;
- for non-empty ones, it shows how many sitelinks are already present;
- displays a link (next to edit) to tag the current RfD as done.

Tool to report an interwiki conflict at Wikidata:Interwiki conflicts.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ABene%2A%2Fiwconflict.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Bene*/iwconflict.js]]

This script adds a small link to the top of the page of each item with a link for quickly requesting a deletion at Wikidata:Requests for deletion.

Tool to add warn templates to users' talk pages

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ABene%2A%2Fuserwarn.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Bene*/userwarn.js]]
This script enables you to easily install and uninstall scripts by visiting the page of the script.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ASo9q%2FScriptInstaller.js&action=raw&ctype=text%2Fjavascript' ); // [[User:So9q/ScriptInstaller.js]]
[edit]
This tool adds a sidebar link to show an ancestry/pedigree chart of the person you are currently viewing and to be able to navigate around their relations. A pedigree chart is different from a family tree, it only shows the father and mother of each person up through the generations, but if you click on the person in the chart it will load spouses and other children to allow you to jump to that person and view their ancestry instead.

mw.loader.load('//www.wikidata.org/w/index.php?title=User:Ch1902/ancestry.js&action=raw&ctype=text/javascript');
To customise the options use this instead:
ancestry_opts = {
lang: 'en', // display language falls back to en
levels: 4, // number of generations to show, minimum 2, maximum 6
boxsize: 165, // width of person cells
truncate: 22 // truncate names longer than this
};
mw.loader.load('//www.wikidata.org/w/index.php?title=User:Ch1902/ancestry.js&action=raw&ctype=text/javascript');
Shows chronological music discography data on release group items and functions to automatically create new release groups and releases

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2Fdiscographies3.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/discographies3.js]]

This script adds one or two tabs next to the watchlist star tabs, to jump to the previous or the next item, respectively. Works only in Vector skin.


Enhances video-game related item pages:
- on video game (Q7889):
- its video game expansion pack (Q209163) and video game mod (Q865493)
- the video game compilation (Q16070115) it’s on
- the remakes/remasters based on it.
- on game engine (Q193564): the games using the engine
- on video game series (Q7058673): the games of the series

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AJean-Fr%C3%A9d%C3%A9ric%2FExLudo.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Jean-Frédéric/ExLudo.js]]
Shows what properties this qualifier is a required and allowed qualifier on by the sitelinks

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2Fqualifier-constraint-usage.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/qualifier-constraint-usage.js]]
Adds at the end of all item pages a new button to display inverse statements

[edit]
This script adds a link to https://tools.wmflabs.org/depicts in the sidebar to view depictions (depicts (P180)) of Wikidata items on Wikimedia Commons.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AStevenliuyi%2Fdepicts.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Stevenliuyi/depicts.js]]

Shows a "preview" button next to each linked article to get a preview of the article right next to the table.

WikiBridge is a user script, that allows you to visualize in a box under labels, descriptions and aliases the incipit of the Wikipedia articles in the same languages of the labels, descriptions and aliases you visualize; it can be useful in order to enhance the descriptions in these languages on Wikidata. The script is meant to be customizable, so you should add in your common.js also the default configuration, or create a configuration on your own:
importScript( 'User:Bargioni/WikiBridge_conf.js' );
importScript( 'User:Bargioni/WikiBridge.js' );

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ABargioni%2FWikiBridge.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Bargioni/WikiBridge.js]]

Shows the taxobox for each item which has taxon name (P225).

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ASuccu%2Ftaxobox.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Succu/taxobox.js]]
[edit]

This script shows the cover art of music albums items that have a MusicBrainz release group ID (P436) or MusicBrainz release ID (P5813) statement next to the title of the item.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2Fmusica.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/musica.js]]

Embeds a map displaying features tagged with the current item in OpenStreetMap. Powered by overpass turbo.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AMxn%2Foverpass.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Mxn/overpass.js]]
Userscripts for key shortcuts[edit]
Provides a few keyboard shortcuts: press L or D to start editing an entity's label or description respectively, S, J, or I to scroll to the statements, identifiers, or sitelinks sections respectively, A to start adding a new statement.


User-script for faster navigation:
- Press the key t or the ☰-icon on the bottom-right to toggle a sticky menu that allows you to jump to a statement
- If there are a lot of values for one property it will add arrows that allow you to jump to the first/last value.
- With the keys j and k you can jump to the next/previous statement.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AMichaelSchoenitzer%2Fupdown.js&action=raw&ctype=text%2Fjavascript' ); // [[User:MichaelSchoenitzer/updown.js]]
Userscripts that enhance Wikibase[edit]

This stylesheet reduces the use of vertical space on the screen by compacting statements as much as possible and changing action links to just icons.

Filters your watchlist to show changes to labels, descriptions, and aliases that are only in the languages you specify.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2Ffilter-watchlist-languages.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/filter-watchlist-languages.js]]

This script shows the labels of entities in your notifications so that you know what they are and are not just shown their IDs.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AZvpunry%2FWikibaseEcho.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Zvpunry/WikibaseEcho.js]]
Userscripts that enhance MediaWiki[edit]

Replaces autogenerated summaries in watchlists, recent changes, related changes, history pages, and contributions pages with concise versions of the changes to the page. Also allows filtering to only show certain types of changes.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AYair_rand%2FDiffLists.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Yair rand/DiffLists.js]]
Adds a link to a diff page when clicked will open a new topic on the talk page that mentions the revision and the user.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2FDiscuss.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/Discuss.js]]

Hover over the diff link in watchlists or the cur or prev link on a page history to get a popup in the style of Wikipedia's preview popups showing the changes without having to visit the link. The popup tries to parse the wikitext in the diff, but the nature of diffs mean that in some cases (particularly when tables or multi-line templates are used), raw wikitext may be shown. This user script also works on Wikipedia sites.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATeester%2FHoverDiff.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Teester/HoverDiff.js]]

This script shows a small link right to the search field which provides a search form to search items directly by its sitelink. Works only in Vector or Monobook skins.

This script tags admins, bureaucrats, CheckUsers, oversighters and stewards with (A), (B), (CU), (OS) or (S), respectively.

This script uses Template:Ping to ping all participants of a discussion. It is intended to be used for closing property proposal discussions, but it could be used for pretty much anything.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATomodachi94%2Fping_all_users_involved_in_discussion.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Tomodachi94/ping all users involved in discussion.js]]
This adds a "Contributions" link next to "User page" and "Discussions" on user pages that is more convenient to click than using the tool sidebar.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2FUserContributionsHeaderLink.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/UserContributionsHeaderLink.js]]
Other userscripts[edit]
Generates a list of "old" interwiki links from an item, to be quickly copied.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ARicordisamoa%2FInterwikiList.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Ricordisamoa/InterwikiList.js]]
Some entities (especially properties) mention other entities in the description. This script makes these render as if they had been linked with the {{Q|...}}
or {{P|...}}
templates. Works in descriptions and in Wikidata usage instructions (P2559) statements.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AJon_Harald_S%C3%B8by%2FlinkItemsInDescriptions.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Jon Harald Søby/linkItemsInDescriptions.js]]

This script highlights the language used at the moment, and shows it on the top. It is also possible to do this for a list of languages.

personal sort identifiers is a user script, that allows you to order identifiers as you prefer. It is meant to be customizable. The default order is by ascending P number, however you can set a personalized order (example).

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ABargioni%2Fpersonal_sort_identifiers.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Bargioni/personal_sort_identifiers.js]]

A simple script that adds a 📆 icon to each Wikidata entity that has both start time (P580) and end time (P582) properties. Clicking the icon will download an iCal file, assuming it is an event. Also adds an iCal to each date property.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AShisma%2Fwikidata2ical.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Shisma/wikidata2ical.js]]

Allows to make Mix'n'match matches from Wikidata.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AMagnus_Manske%2Fmixnmatch_gadget.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Magnus_Manske/mixnmatch_gadget.js]]
Displays presence/absence of specific properties (configurable) after the Statements heading. Clicking a property name will jump to that properties section. For absent property, clicking property name will jump to the end of the page.

importScript("User:Bamyers99/HasProperty.js");
Userscripts specific to lexemes[edit]
Replaces "|" with "‧" when entering hyphenation (P5279) on lexeme forms.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALucas_Werkmeister%2Fhyphenation-point.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lucas Werkmeister/hyphenation-point.js]]
Looks up the current lemma in Merriam Websters online dictionary and displays the result in an iframe. Based on User:Jon Harald Søby/ordbokIframe.css

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ASo9q%2Fmerriam-webster.js&action=raw&ctype=text%2Fjavascript' ); // [[User:So9q/merriam-webster.js]]

Adds a button on items to show what senses are linked to it.

mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2FSenseForThisItem.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/SenseForThisItem.js]]
Userscripts for other websites[edit]

This script adds a small box on a Commons category page, if there is a corresponding article-like item on Wikidata with a Commons category (P373) pointing to the Commons category page
importScript('User:Jheald/wdcat.js');

Insert a link to Wikiversity in the title of Wikipedia.

// [[d:User:Karima Rafes/DisplayCodeWikidata.js]]
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Karima Rafes/LinkUniversity.js&action=raw&ctype=text/javascript");
This script adds a small box under a Wikipedia article's title displaying a label (which links to Wikidata's entry), description, and aliases, or a small "Wikidata item not found." linking to CreateItem if Wikidata does have a item for it yet. There is also a fork which de-links the QID part, for easier copypasting.

// <tvar name=1>[[d:User:Yair rand/WikidataInfo.js]]</tvar>
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript");

Works on an article page on a wikipedia or another project. It finds items which are related to the topic of the page, but which have no article on the wiki.
As your wiki does not have articles about that topic, you never will see language links to jump to them. This gadget is here to solve that issue.
The extra language links are found by looking the statement main value in the item of your article. Optionally if there are not too much of them, items with statements our article's topic is the main value are also added. mw.loader.load("//fr.wikipedia.org/w/index.php?title=User:TomT0m/extraInterwiki.js&action=raw&ctype=text/javascript");
// [[w:fr:Utilisateur:TomT0m/extraInterwiki.js]], more language links with no articles on the language
For French wikipedia use only, add the following to your common.js there:
importScript('Utilisateur:TomT0m/extraInterwiki.js'); // [[Utilisateur:TomT0m/extraInterwiki.js]] des liens de langues supplémentaires pour les éléments qui n'ont pas d'article
Adds labels to P-numbers and Q-numbers (properties and items) for Wikidata edits.
For example, "Created claim: instance of (P31): bus station (Q494829)" instead of "Created claim: Property:P31: Q494829". It also lets you know when the Wikidata edit was not the item for the listed page, but to another item used on that page. E.g.
- Wikipedia:Wikidata (Q183) ... ... ... (Created claim: Property:P463: Q1928989) appears to be an edit to the item for 'Wikipedia:Wikidata'. With this script installed, it will be expanded to
- Wikipedia:Wikidata (Germany (Q183)) ... ... ... (Created claim: member of (P463): Treaty on Open Skies (Q1928989)) showing the edit is to the item for a different page, in this case Germany.
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Evad37/WikidataWatchlistLabels.js&action=raw&ctype=text/javascript"); // [[w:User:Evad37/WikidataWatchlistLabels.js]]
For English Wikipedia use only, add the following to your common.js there:
importScript('User:Evad37/WikidataWatchlistLabels.js'); // [[User:Evad37/WikidataWatchlistLabels]]
Browser extensions for other websites[edit]
![]() | Browser extensions can access any web page, so you should make sure you trust the developer of the extension before you install it. |
Chrome browser extension that allows you to discover links and information about a topic you are browsing on other sites. Data live from Wikidata.
On-wiki documentation and discussion page: Wikidata:Entity Explosion
Examples from video demonstration:
- Platypus (Q15343) on iNaturalist.
- Jimmy Barnes (Q1689312) on Spotify.
Browser extension for Mozilla Firefox and Chromium (Google Chrome and Microsoft Edge) that displays Data from Wikidata on various websites and also allows extraction of data from these websites.
by Shisma