Wikidata:Tools
|
Tools
|
This page is a list of tools you can use to work at Wikidata more quickly and comfortable. If you have written a script just add it and help many other users.
Contents |
Special pages [edit]
Gadgets [edit]
SlurpInterwiki
- by Tpt
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.
- Bugs
- Feature request: when some imports fail, because the sites are already used by another option, add an button to ignore these and import the others. -- MichaelSchoenitzer (talk) 21:56, 6 February 2013 (UTC)
- Importation of interwiki links from /doc pages isn't working, see User talk:Tpt#slurp /doc pages. Mabdul (talk) 11:45, 4 April 2013 (UTC)
- ...
- How to use
This script is a gadget now. You can enable it in your preferences.
LabelLister
- by Jitrixis
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.
- Bugs
- feature request: make labels/descriptions editable by clicking on it instead of entering the language-code --Akkakk (talk) 04:31, 6 March 2013 (UTC)
- feature request: add the ability to transfer all labels/descriptions/aliases from one entry to another. So many entries are dupes, and when the dupes get deleted the labels/descriptions/aliases are often taken with them. Buttons to Push Buttons (talk) 13:42, 11 March 2013 (UTC)
- ...
- How to use
This script is a gadget now. You can enable it in your preferences.
EnumItems
- by Arkanosis
This script adds one or two tabs next to the watchlist star tabs, to jump to the previous or the next item, respectively.
- How to use
This script is a gadget now. You can enable it in your preferences.
autoEdit
- by Jitrixis
This script adds automatically all labels with the help of the interwiki links and adds descriptions from an editable list.
- How to use
This script is a gadget now. You can enable it in your preferences.
Find redirects for aliases
- by Yair rand
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.
- How to use
This script is a gadget now. You can enable it in your preferences.
markAdmins
- by NordNordWest
This script tags Admins, Bureaucrats, Stewards and Global Sysops with (A), (B), (S) or (GS).
- How to use
This script is a gadget now. You can enable it in your preferences.
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.
- How to use
This script is a gadget now. You can enable it in your preferences.
DeletionRequest
- by Bene*
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.
- Bugs
- Does not prefix with [[Property:]] when requesting deletion of a property. --Magnus Manske (talk) 15:58, 24 February 2013 (UTC)
- How to use
This script is a gadget now. You can enable it in your preferences.
Improved search
- by Bene*
This script shows a small link right to the search field which provides a search form to search items directly by its sitelink.
- Bugs
- It doesn't work. I use Google Chrome on Windows 7. -- Yiyi (A tua disposizione!) 14:08, 11 November 2012 (UTC)
- I hope I can fix it. Do you see the arrow in the top right corner? --Bene* (talk) 15:23, 11 November 2012 (UTC)
- Now it doesn't work very well. I use Google Chrome on Windows 7 like Yiyi and display this. Raoli (talk) 16:04, 11 November 2012 (UTC)
- Purge your cache. It should work now --Bene* (talk) 16:09, 11 November 2012 (UTC)
- Ok, now it works! Thanks :) -- Yiyi (A tua disposizione!) 17:17, 11 November 2012 (UTC)
- Purge your cache. It should work now --Bene* (talk) 16:09, 11 November 2012 (UTC)
- Now it doesn't work very well. I use Google Chrome on Windows 7 like Yiyi and display this. Raoli (talk) 16:04, 11 November 2012 (UTC)
- I hope I can fix it. Do you see the arrow in the top right corner? --Bene* (talk) 15:23, 11 November 2012 (UTC)
- Yes, now it's OK. --Raoli (talk) 17:26, 11 November 2012 (UTC)
- ...
- How to use
This script is a gadget now. You can enable it in your preferences.
DeletionHelper
- by Ricordisamoa
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.
- How to use
This script is a gadget now. You can enable it in your preferences.
AuthorityControl.js
- by Ricordisamoa
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!
- How to use
This script is a gadget now. You can enable it in your preferences.
Properties tool
- by Reza1615
Script helps you make a request to add a property to all items in a certain Wikipedia page.
See the full documentation at Wikidata:Tools/Array properties gadget.
- How to use
This script is a gadget now. You can enable it in your preferences.
Move
- by Bene*
Adds a move link to the edit tools when editing a sitelink. It looks like [save|remove|move|cancel]
- Bugs
- I used this tool after moving link it doesn't close the window.▬ Reza1615 / T 20:30, 11 March 2013 (UTC)
- Listing of languages in popup does not suggest language just moved. See https://bugzilla.wikimedia.org/show_bug.cgi?id=48472 Bonzon (talk) 23:21, 15 May 2013 (UTC)
- How to use
This script is a gadget now. You can enable it in your preferences.
Commonsmedia
- by Bene*
Adds the possibility to view an Wikimedia Commons image from Wikidata.
- How to use
This script is a gadget now. You can enable it in your preferences.
Preview
- by Bene*
Shows a "preview" button next to each linked article to get a preview of the article right next to the table.
- How to use
This script is a gadget now. You can enable it in your preferences.
User scripts [edit]
User Interface [edit]
GeneaWiki.js
- by Ricordisamoa
For people with kinship relations, adds a link to GeneaWiki for viewing a family tree.
- How to use
Please write the following line into your common.js: importScript( 'User:Ricordisamoa/GeneaWiki.js' );
KeyShortcuts
- by Ricordisamoa
Provides some useful keyboard shortcuts: exactly those specified at Wikidata talk:Tools#Keyboard shortcuts.
- How to use
Please write the following line into your common.js: importScript( 'User:Ricordisamoa/KeyShortcuts.js' );
Sitenames in user-language
- by Ricordisamoa
Makes language names in sitelinks appear in your language.
- How to use
Please write the following line into your common.js: importScript( 'User:Ricordisamoa/SitenamesInUserLanguage.js' );
Ancestry viewer [edit]
by User:Ch1902
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.
- Limitations and other info
- Viewing spouses and children requires links in both directions (that is, Person A has a child Person B then Person B should have father/mother Person A), some relations added by bot don't link in both ways. In that case you can see the relations better using GeneaWiki or add the connections yourself.
- People without parents are shown as a grey box with "Unknown", not every person will have a wiki article
- There is no history, so you can't easily go back to previous people you have viewed
- If you want to go to the person's wikidata entry hold the Shift or Ctrl or Alt key when clicking or use the middle click on your mouse to open the link
- If an item doesn't have a label in your language it just shows the Q##### number
- It uses templates from enwiki, so you need a browser that supports CORS, most modern browsers do
- How to use
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');
WikidataTrust
- by Ricordisamoa
Inspired by the original WikiTrust, it's a fairly simple algorithm which loops into all revisions of the current item and attributes changes of labels, sitelinks and claims to the corresponding users.
It is still in beta, but should work fine.
- How to use
Please write the following line into your common.js: importScript( 'User:Ricordisamoa/WikidataTrust.js' );
Wikispecies.js
- by Ricordisamoa
It provides a link to Wikispecies for elements with taxon name (P225), and an image for IUCN conservation status (P141).
- How to use
Please write the following line into your common.js: importScript( 'User:Ricordisamoa/Wikispecies.js' );
Statements [edit]
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.
- Bugs
- Very useful tool. However, if item A "shares boarder with" item B, but not the other way around, the tool will only detect the inconsistency when you check A, but not when you check B. Is it possible for the tool to use "What links here" when you check A, to discover all other items that links to it using this property? If it is not possible, the instructions should inform the user of this issue. Mange01 (talk) 23:34, 2 March 2013 (UTC)
- The inconsistencies are hard to see - i have missed them several times. Is it possible to indicate more clearly e.g. using a warning text or different colors and text style? Mange01 (talk) 23:34, 2 March 2013 (UTC)
It is working with Sister, but it's not working with brothers See http://www.wikidata.org/wiki/Q7349 or even http://www.wikidata.org/wiki/Q23 Xmlizer (talk) 20:24, 23 March 2013 (UTC)fixed in User:Xmlizer/consistency_check.js
- How to use
Please write the following line into your common.js: importScript( 'User:Magnus Manske/consistency_check.js' ); // [[User:Magnus Manske/consistency_check.js]]
If you want a version that have been updated and fixed
// [[User:Xmlizer/consistency_check.js]] based on [[User:Magnus Manske/consistency_check.js]] importScript( 'User:Xmlizer/consistency_check.js' );
Wikidata useful
Adds a box of quick "add statement" links to the right side of the page. Entity and phylogeny types, countries (location and citizenship). More to come. Also, tries to load and display a blurb from en or de wikipedia.
- How to use
Please write the following line into your common.js: importScript( 'User:Magnus Manske/wikidata_useful.js' ); // [[User:Magnus Manske/wikidata_useful.js]]
- Comments
- This tool can potentially be extended with many useful features. However, it should be possible to hide and show the text, or move it. If I have a rather small window, the gadget text overlaps in a disturbing way. Mange01 (talk) 23:51, 2 March 2013 (UTC)
- It should be possible to set witch language should be used per default instead of now en, and de as fallback. Maybe you could also use users babel-settings. -- MichaelSchoenitzer (talk) 15:29, 3 March 2013 (UTC)
- This tool has a very powerful feature to populate all articles in English Wikipedia category:X with the statements on the page one is currently on. It sends out loads of requests and has no rate limiting -- as a result (I'm assuming), not all updates that it says it performs are actually updated on the Q items. (I tried a couple of categories with 100 and 25 items. Sometimes one statement out of three or four was updated, sometimes a couple, never or rarely all of them.) Is there a way to rate limit the requests? I'm guessing if enough people used this there would be complaints of recent changes "spamming" also. Thank you, Espeso (talk) 08:09, 10 March 2013 (UTC)
- Please use Q6581097 and Q6581072 for sex property, instead of Q44148 and Q43445. See WD:PC#Statement p21 (sex) should not use q43445 (female) as value. --fryed-peach (talk) 08:40, 18 March 2013 (UTC)
- Instead of changing half a million items to accomodate this, these items should instead switch places. Jon Harald Søby (talk) 09:43, 18 March 2013 (UTC)
Major update: implemented as dialog (better positioning, movable), now easier to configure (feel free to edit the script's page!). --Magnus Manske (talk) 20:04, 4 April 2013 (UTC)
- Can't the tool be done in a way, that everyone can put his own configuration on to his common.js, instead of making a copy of the full script to this Usernamespace? -- MichaelSchoenitzer (talk) 18:58, 8 April 2013 (UTC)
- Useful indeed. A bug: in the messages about added properties, links to the property pages are missing the namespace "Property:", sending to just "P17". --AVRS (talk) 12:10, 14 April 2013 (UTC)
authority_control.js
Searches VIAF and en/de/fr Wikipedia articles for an item to find Authority Control data. Shows which are already used, which disagree, and which are new. Single-click adding for individual values or sets.
- How to use
Please write the following line into your common.js: importScript( 'User:Magnus_Manske/authority_control.js' );
- Feedback
- Why not use a "-" button to remove a statement? It can happen to add the first ID and then notice that a conflicting one is better... --Aubrey (talk) 13:54, 22 March 2013 (UTC)
- On Q698 it marks the IDs as contradicting, although they are the same. -- MichaelSchoenitzer (talk) 02:14, 25 March 2013 (UTC)
- Please add support for Property:P349 (NDL) and Property:P271 (CiNii), and also search Japanese Wikipedia for Normdaten template. It would be great! --fryed-peach (talk) 08:52, 26 March 2013 (UTC)
- The VIAF search does not seem to work properly - on Commons, it takes a few seconds - here, after 10 mn, still no results, on the same name… --Hsarrazin (talk) 10:57, 20 May 2013 (UTC)
- When Commons Category is set, would it be possible to import AC from Commons, too ? --Hsarrazin (talk) 10:57, 20 May 2013 (UTC)
Import statements
Scans templates on the corresponding en.wikipedia article, and adds applicable statements (e.g. from Taxobox). Fully automated. Click, wait 10 sec, see how many were added, reload.
- How to use
Please write the following line into your common.js: importScript( 'User:Magnus Manske/import statements.js' ); // [[User:Magnus Manske/import statements.js]]
The Brown Tool
- by Goldzahn
Adds a box to the right side of the page. There are some predefined property-items (man, woman, some occupations from User:ValterVB/Sandbox and the main types) stored in three selects, which gets 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 much 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 an 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 second option is a file in the Wikidata userspace. Each user has a separate wikipage where he or she could write in some property-item pairs, which uses the tool to fill an additional select. 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.
- How to use
Please write the following line into your common.js: importScript( 'User:Goldzahn/wikidata useful.js' );
Interwikilinks [edit]
iwconflict.js
- by Bene*
Tool to report an interwiki conflict at Wikidata:Interwiki conflicts.
- How to use
Please write the following line into your common.js: importScript( 'User:Bene*/iwconflict.js' );
InterwikiList
- by Ricordisamoa
Generates a list of "old" interwiki links from an item, to be quickly copied e.g. on Wikimedia Commons.
- How to use
Please write the following line into your common.js: importScript( 'User:Ricordisamoa/InterwikiList.js' );
Userscripts for Wikipedia [edit]
Check site links [edit]
When editing a Wikipedia article, the script adds an action link (near search box) to remove the sitelinks which are already available on Wikidata.
- How to use
Please write the following line into your common.js on Wikipedia (change en in the URL for non-en.wikipedia):
// [[d:User:Yair rand/checksitelinks.js]] mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript");
Display Wikidata Info on Wikipedia [edit]
(I'm not sure this really counts as a "Wikidata tool" as it's run while browsing Wikipedia, but it seems like it belongs here...) 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.
- How to use
Please write the following line into your common.js on Wikipedia (change en in the URL for non-en.wikipedia):
// [[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");
- Bugs
var namespace = mw.config.get('wgPageName').split(":")breaks if page title contains ":". Instead of manual conversion, you should usewgFormattedNamespaces[wgNamespaceNumber]. --Tgr (talk) 19:37, 20 January 2013 (UTC)
- Question
Can this be used in other language wiki? I tried to add it in the japanese commons and it did not work. --Napoleon.tan (talk) 12:07, 3 March 2013 (UTC)
- yes it works. you can see the result under page's title in ja.wiki ▬ Reza1615 / T 13:15, 3 March 2013 (UTC)
Other [edit]
userwarn.js
- by Bene*
Tool to add warn templates to user's talk pages
- How to use
Please write the following line into your common.js: importScript( 'User:Bene*/userwarn.js' );
Draggable sitelinks
Drag sitelinks onto claims to make "imported from" references.
- Bugs
When I drag a languagelink there stands imported from: .()wikipedia and the only thing that happens is a "This Wiki does not have a known ID – add it!" in the console log. Even if I drag from en or de, ...--CENNOXX (talk) 13:18, 13 May 2013 (UTC)
- How to use
Please write the following line into your common.js: importScript( 'User:Inductiveload/scripts/draggableSitelinks.js' ); // [[User:Inductiveload/scripts/draggableSitelinks.js]]
Fake Rollback
- by Ricordisamoa
Provides the [rollback] link to non-rollbackers (still experimental in Q and P namespaces).
- How to use
Please write the following line into your common.js: importScript( 'User:Ricordisamoa/Rollback.js' );
Bookmarklets [edit]
Switch to Wikidata [edit]
From any Wikipedia article, switch to the corresponding item at Wikidata.
javascript:location='//www.wikidata.org/wiki/Special:ItemByTitle/'+wgDBname+'/'+wgPageName
External tools [edit]
GeneaWiki
GeneaWiki is a simple graph viewer showing genealogy information in WikiData. Starting from a single person, it will try and construct the family tree according to father, mother, and child statements. For an example, see the Bach family.
Items by cat
- by Bene*
Items by cat is a tool to find existing or missing items by a Wikipedia category.
- How to use
Please write the following line into your common.js: importScript( 'User:Bene*/Items by cat' );
Reasonator
Pretty display of Wikidata items. People only at the moment.
WikiData query
Tool to find positive/negative combinations of properties and items linked. Books without author etc.
Property Browser
Tool to browse arbitrary items and their properties without page refreshes (unless you wish to go to edit them at Wikidata). Source at https://github.com/brettz9/property-browser.
WikiPeriod
- by Ricordisamoa
Tool to browse all chemical elements available on Wikidata, with atomic number, chemical symbol, and localized label. At the moment sorted only by atomic number. Code to be released soon (GPL).
WikidataQuery
API to query item-property-item links recursively (e.g. "all bridges in Germany")
Tree of Life
- by Denny
Tool to display the taxonomy of all life, as given in Wikidata.
