Open main menu

Wikidata:Tools/Enhance user interface


Enhance user interface
Other languages:
Deutsch • ‎English • ‎dansk • ‎français • ‎svenska • ‎العربية • ‎हिन्दी • ‎ไทย • ‎中文 • ‎日本語
AddNewItem
AddNewItem

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. (https://phabricator.wikimedia.org/T107693)

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Efly/Gadget-CreateNewItem.js&action=raw&ctype=text/javascript' ); // [[User:Efly/Gadget-CreateNewItem.js]]

by Efly (source)

Ancestry viewer

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.

Add the following to your common.js

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');

by Ch1902 (source)

AuthorityControl

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!

This script is a gadget. You can enable it in your preferences.

by Ricordisamoa (source)

CheckShex

Allows you to check whether an item conforms to a shex schema. An input field is added to entitySchema pages (e.g. E10) to allow you to enter an item to check and on item pages (e.g. Douglas Adams (Q42)) to allow you to enter an entityschema.

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Teester/CheckShex.js&action=raw&ctype=text/javascript' ); // [[User:Teester/CheckShex.js]]

by Teester (source)

ClaimMaps
ClaimMaps

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

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Teester/ClaimMaps.js&action=raw&ctype=text/javascript' ); // [[User:Teester/ClaimMaps.js]]

by Teester (source)

CiteTool

Add sources more easier 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. There is an improved version available here: User:MichaelSchoenitzer/CiteTool.js

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Aude/CiteTool.js&action=raw&ctype=text/javascript' ); // [[User:Aude/CiteTool.js]]

by Aude (source)

Commons cat → Wikidata lookup
Commons cat → Wikidata lookup

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

Please add the following to your common.js on Commons:

importScript('User:Jheald/wdcat.js');

by TheDJ

Commonsmedia
Commonsmedia

Allows you to view a Wikimedia Commons image from Wikidata.

This script is a gadget. You can enable it in your preferences.

by Bene* (source)

Commons Depicts

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

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Stevenliuyi/depicts.js&action=raw&ctype=text/javascript' ); // [[User:Stevenliuyi/depicts.js]]

by Stevenliuyi (source)

Constraint Summary
Constraint Summary

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.

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Teester/ConstraintSummary.js&action=raw&ctype=text/javascript' ); // [[User:Teester/ConstraintSummary.js]]

by Teester (source)

Consistency check

A tool to check consistencies of statements, that is, if B is "child" of A, then A should be "father" or "mother" of B.

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:JonnyJD/consistency_check.js&action=raw&ctype=text/javascript' ); // [[User:JonnyJD/consistency_check.js]]

by Magnus Manske forked by JonnyJD (source)

Consistency check add

A tool to check consistencies of statements and to add missing inverse properties.

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Frettie/consistency_check_add.js&action=raw&ctype=text/javascript' ); // [[User:Frettie/consistency check add.js]]

by Frettie (source)

CurrentDate

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.

This script is a gadget. You can enable it in your preferences.

by TMg (source)

Daty (Q60949478)
Daty

Daty is a cross-platform free Wikidata editor adhering to GNOME (Q44316) Human Interface Guidelines, intended to enable a better editing workflow and faster deployment of requested user features for Wikidata.

by Ogoorcs

DeletionHelper

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.
This script is a gadget. You can enable it in your preferences.

by Ricordisamoa (source)

DiffLists.js
DiffLists.js

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.

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Yair_rand/DiffLists.js&action=raw&ctype=text/javascript' ); // [[User:Yair rand/DiffLists.js]]

by Yair rand (source)

DisplayColourSwatches

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).

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Teester/DisplayColourSwatches.js&action=raw&ctype=text/javascript' ); // [[User:Teester/DisplayColourSwatches.js]]

by Teester (source)

Display the code of Wikidata in the title

Show the code of Wikidata in the title of Wikipedia like in the title of Wikidata.

Please add the following to your common.js on Wikipedia or to your global.js:

// [[d:User:Karima Rafes/DisplayCodeWikidata.js]]
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Karima Rafes/DisplayCodeWikidata.js&action=raw&ctype=text/javascript");

by Karima Rafes (source)

Display the link to Wikiversity in the title of Wikipedia
Display the link to Wikiversity in the title of Wikipedia

Insert a link to Wikiversity in the title of Wikipedia.

Please add the following to your common.js on Wikipedia or to your global.js:

// [[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");

by Karima Rafes (source)

Display Wikidata Info on sister projects

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.

Please add the following to your common.js on Wikipedia or to your global.js:

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

by Yair rand (source)

DMY dates

Makes all dates in claims appear as "dd month-name-in-your-language yyyy". Requires the "date" option to be set to "dmy".

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Ricordisamoa/DMYdates.js&action=raw&ctype=text/javascript' ); // [[User:Ricordisamoa/DMYdates.js]]

by Ricordisamoa (source)

EnumItems
EnumItems

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.

This script is a gadget. You can enable it in your preferences.

by Arkanosis (source)

GeneaWiki

For people with kinship relations, adds a link to GeneaWiki for viewing a family tree.

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Ricordisamoa/GeneaWiki.js&action=raw&ctype=text/javascript' ); // [[User:Ricordisamoa/GeneaWiki.js]]

by Ricordisamoa (source)

HoverDiff
HoverDiff

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.

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Teester/HoverDiff.js&action=raw&ctype=text/javascript' ); // [[User:Teester/HoverDiff.js]]

by Teester (source)

Improved search
Improved search

This script shows a small link right to the search field which provides a search form to search items directly by its sitelink.

This script is a gadget. You can enable it in your preferences.

by Bene* (source)

InterwikiList

Generates a list of "old" interwiki links from an item, to be quickly copied.

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Ricordisamoa/InterwikiList.js&action=raw&ctype=text/javascript' ); // [[User:Ricordisamoa/InterwikiList.js]]

by Ricordisamoa (source)

iwconflict.js

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

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Bene*/iwconflict.js&action=raw&ctype=text/javascript' ); // [[User:Bene*/iwconflict.js]]

by Bene* (source)

KeyShortcuts

Provides a few keyboard shortcuts: press L and D to start editing an entity's label and description respectively, S and I to scroll to the statements and sitelinks sections respectively, A to start adding a new statement.

This script is a gadget. You can enable it in your preferences.

by Ricordisamoa (source)

Main language first
Main language first

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.

This script is a gadget. You can enable it in your preferences.


(source)

markAdmins

This script tags Admins, Bureaucrats, Stewards and Global Sysops with (A), (B), (S) or (GS).

This script is a gadget. You can enable it in your preferences.

by NordNordWest (source)

overpass

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

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Mxn/overpass.js&action=raw&ctype=text/javascript' ); // [[User:Mxn/overpass.js]]

by mxn (source)

Preview
Preview

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

This script is a gadget. You can enable it in your preferences.

by Bene* (source)

quickpresets
quickpresets

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.

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:MichaelSchoenitzer/quickpresets.js&action=raw&ctype=text/javascript' ); // [[User:MichaelSchoenitzer/quickpresets.js]]

by MichaelSchoenitzer (source)

Reasonator

Adds a link in your toolbox to view the current item in Reasonator.

This script is a gadget. You can enable it in your preferences.

by Multichill (source)

Recoin
Recoin

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

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Vvekbv/recoin.js&action=raw&ctype=text/javascript' ); // [[User:Vvekbv/recoin.js]]

by Ls1g (source)

Recoin_ID

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.

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Vvekbv/recoin_id.js&action=raw&ctype=text/javascript' ); // [[User:Vvekbv/recoin_id.js]]

by Ls1g (source)

related items

Adds at the end of all item pages a new button to display inverse statements

This script is a gadget. You can enable it in your preferences.

by Pasleim (source)

RequestDeletion
RequestDeletion

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.

This script is a gadget. You can enable it in your preferences.

by Bene* (source)

Sitenames in user-language
Sitenames in user-language

Makes language names in sitelinks appear in your language.

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Ricordisamoa/SitenamesInUserLanguage.js&action=raw&ctype=text/javascript' ); // [[User:Ricordisamoa/SitenamesInUserLanguage.js]]

by Ricordisamoa (source)

Sort values

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).

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Seb35/sortValues.js&action=raw&ctype=text/javascript' ); // [[User:Seb35/sortValues.js]]

by Seb35 (source)

Taxobox
Taxobox

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

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Succu/taxobox.js&action=raw&ctype=text/javascript' ); // [[User:Succu/taxobox.js]]

by Succu (source)

Units converter

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.

Add the following to your common.js

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");

by Bamyers99 (source)

UpDown
UpDown

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 statementstatement.
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:MichaelSchoenitzer/updown.js&action=raw&ctype=text/javascript' ); // [[User:MichaelSchoenitzer/updown.js]]

by MichaelSchoenitzer (source)

userwarn

Tool to add warn templates to users' talk pages

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Bene*/userwarn.js&action=raw&ctype=text/javascript' ); // [[User:Bene*/userwarn.js]]

by Bene* (source)

WikidataTrust
WikidataTrust

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.

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Ricordisamoa/WikidataTrust.js&action=raw&ctype=text/javascript' ); // [[User:Ricordisamoa/WikidataTrust.js]]

by Ricordisamoa (source)

WikidataWatchlistLabels

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.

appears to be an edit to the item for 'Wikipedia:Wikidata'. With this script installed, it will be expanded to

showing the edit is to the item for a different page, in this case Germany.

Please add the following to your global.js (or your common.js on a specific project):

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]]

by Evad37

Wikispecies

It provides a link to Wikispecies for elements with taxon name (P225), and an image for IUCN conservation status (P141).

Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Ricordisamoa/Wikispecies.js&action=raw&ctype=text/javascript' ); // [[User:Ricordisamoa/Wikispecies.js]]

by Ricordisamoa (source)