This is a list ofuser 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 ishighly recommended you installUser: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 toyour common.js:
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.
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).
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.
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.
This script automatically adds all labels with the help of the interwiki links and adds descriptions from an editable list. To use it, click onAutomatic addition inTools.
Automatically 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.
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.
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.
Whenever you add aretrieved(P813) property to a reference or somewhere else, this user script automatically pre-fills the input field with the current date.
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.
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.
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.
mw.loader.load('//www.wikidata.org/w/index.php?title=User:Jon_Harald_S%C3%B8by/mulAdder.js&action=raw&ctype=text/javascript');// [[User:Jon Harald Søby/mulAdder.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 presetsyou 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 thescript-site to learn how to customize.
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.
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 exampleUser: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.
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.
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.
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.
Please write the following line into yourcommon.js:
When adding a new property to an item, if the property is anexternal identifier, add amagnifier lens button to quickly search the current item in that external website. - Useful when creating an item with many external identifiers like amovie or aperson.
Please write the following line into yourcommon.js:
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 withBarack Obama(Q76)!
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:Jon_Harald_S%C3%B8by/Panoviewer.js&action=raw&ctype=text/javascript');// [[User:Jon Harald Søby/Panoviewer.js]]
This script sorts the values of the propertysoftware 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 onUbuntu(Q381).
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.
ShortWdSummaryShort declarations in it's opened state
Adds a compact, collapsible summary of Wikidata properties at the top. It helps you quickly scan key information without scrolling through long property lists.
Important features:
Displays property labels and values in a clean short list.
Adds direct links to jump to each property in the full list.
Works on all sections like "Statements" (claims) and "Identifiers".
Automatically includes a thumbnail, if available.
Useful when you want to:
Get a quick overview of an item's data.
Compare items to easily figure out who is who etc.
Allows you to check whether an item conforms to a shex entitySchema (e.g.E10 for ahuman(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))).
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 toWikiProject 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.
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.
Allows you to check whether an item conforms to a shex entitySchema (e.g.E10 for ahuman(Q5) and displays whether each property and statement in an entity conforms to that entityschema. Only works for relatively straightforward schemas at the moment.
This script displays an alert at the top of the Item pages on wikidata.org and a link to theMismatch Finder tool to learn more about the potential mismatches.
Inspired by the originalWikiTrust, 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 inbeta, but should work fine.
Inspired byUser:Mateusz Konieczny/failing testcases, this warns editors when they select a value forinstance of(P31) orsubclass 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 inalpha -- 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!
A userscript to assist with determining Wikidata notability of items. Displays number of incoming links with mouseover, subscribed wikis with mouseover and marks identifiers that does or does not imply notability.
A userscript to display links from OpenStreetMap to Wikidata. Displays number of incoming links from OSM with mouseover, and indicates with colors if a link can be added on Wikidata.
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.
ancestry_opts={lang:'en',// display language falls back to enlevels:4,// number of generations to show, minimum 2, maximum 6boxsize:165,// width of person cellstruncate: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');
propertiesBelow each property a link titled "List entities with this property", and below each value a link titled "List entities with this claim".
For every claim, this tool adds a link below the property to a query listing entities that use this property, and additional links below each value to queries listing entities that have this property-value combination.
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:
Checks commons for a nearby photo if noimage(P18) statement and hascoordinate location(P625). Displays above the Statements heading. Defaults to a 500 meter radius. Displays a link to WikiShootMe.
ProVeThe itembeer(Q44) with the ProVe results applied to the Wikidata item.
Displays reference verification results for each claim in the Wikidata item, based on AI/ML models, particularly language models, to assist Wikidata editors. This tool checks whether the claims of Wikidata items are indeed supported by their references, giving them an indicative quality score. See detail:Wikidata:ProVe
Provides a few keyboard shortcuts: pressL orD to start editing an entity's label or description respectively,S,J, orI to scroll to the statements, identifiers, or sitelinks sections respectively,A to start adding a new statement.
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.
Hover over thediff link in watchlists or thecur orprev 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.
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 usesTemplate: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:Tomodachi94/ping_all_users_involved_in_discussion.js&action=raw&ctype=text/javascript');// [[User:Tomodachi94/ping all users involved in discussion.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 inWikidata usage instructions(P2559) statements.
mw.loader.load('//www.wikidata.org/w/index.php?title=User:Jon_Harald_S%C3%B8by/linkItemsInDescriptions.js&action=raw&ctype=text/javascript');// [[User:Jon Harald Søby/linkItemsInDescriptions.js]]
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).
A script that gets usage instructions for Wikidata properties and displays the instructions next to an information (🛈) button next to the property name.
A simple script that adds a 📆 icon to each Wikidata entity that has bothstart time(P580) andend time(P582) properties. Clicking the icon will download aniCal file, assuming it is an event. Also adds an iCal to each date property.
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.
This script adds a small box on a Commons category page, if there is a corresponding article-like item on Wikidata with aCommons category(P373) pointing to the Commons category page
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 alsoa fork which de-links the QID part, for easier copypasting.
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.
Please add the following to yourglobal.js (or your common.js on a specific project):
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 yourcommon.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.
Browser extension forMozilla Firefox andChromium (Google Chrome and Microsoft Edge) that displays Data from Wikidata on various websites and also allows extraction of data from these websites.