维基数据:工具/增强用户界面

From Wikidata
Jump to navigation Jump to search
This page is a translated version of the page Wikidata:Tools/Enhance user interface and the translation is 37% complete.
增強使用者介面
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 add basic editing features that Wikibase lacks

Duplicate Item (Q108311191)
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
Userscript
Please write the following line into your common.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]]
by Magnus_Manske (source)
DuplicateReferences (Q97500668)
DuplicateReferences
Adds a link to copy references and add them to other statements on the same item.
Gadget
This script is a gadget. You can enable it in your preferences.
by Bene* (source)
EditSum
EditSum
暂时拦截所有对数据项、属性及词位的编辑请求(包括删除陈述),并提示输入编辑摘要,追加到自动摘要后方。这有助于为重大修改提供解释。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALockal%2FEditSum.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lockal/EditSum.js]]
by Lockal (source)
Move (Q108311250)
Move
Adds a move tool to the sitelink edit toolbar to move one or all sitelinks to another item.
Gadget
This script is a gadget. You can enable it in your preferences.
by Bene* (source)
Move claims (Q110793966)
Move claims
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.
Gadget
This script is a gadget. You can enable it in your preferences.
by Matěj Suchánek (source)
RearrangeValues
允许用户轻松更改任何陈述的数值顺序。例如,将随机顺序改为按时间顺序。
Gadget
This script is a gadget. You can enable it in your preferences.
by Tohaomg (source)

Userscripts for more convenient editing

AddNewItem
AddNewItem
在下拉菜单中新增一个“创建新项(create new item)”链接,以供想添加项到一个属性但项尚不存在時使用。(phab:T107693)。從So9q的改进版本開始,也支持词目和主搜索框(仍处于测试阶段)。
Userscript
Please write the following line into your common.js:
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]]
by Efly (source)
AddStatement
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.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2FAddStatement.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/AddStatement.js]]
by Lectrician1 (source)
AltLabels (Q108311046)
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.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AJoern%2FaltLabels.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Joern/altLabels.js]]
by Joern (source)
autoEdit (Q21073497)
autoEdit
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.
Gadget
This script is a gadget. You can enable it in your preferences.
by Jitrixis (source)
CC Lit Box (Q109012674)
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
CiteTool
CiteTool
使用Citoid,添加来源更轻松。在您提供一个网址后,点击“autofill”,有关此来源的所有信息(标题、访问日期、语言等)都将自动填入。
by Aude
Create New Entity
Create New Entity
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.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ASo9q%2FCreateNewEntity.js&action=raw&ctype=text%2Fjavascript' ); // [[User:So9q/CreateNewEntity.js]]
by Efly and So9q (source)
CurrentDate
每当添加一个retrieved (P813)属性到参考来源等处时,该用户脚本自动使用当前日期预填输入框。
Gadget
This script is a gadget. You can enable it in your preferences.
by TMg (source)
Draggable sitelinks (Q108311160)
Draggable sitelinks
Drag sitelinks onto claims to make "imported from" references.
Gadget
This script is a gadget. You can enable it in your preferences.
by Inductiveload (source)
DragNDrop (Q108311175)
Gadget
This script is a gadget. You can enable it in your preferences.
by Magnus Manske (source)
Find redirects for aliases (Q97500659)
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.
Gadget
This script is a gadget. You can enable it in your preferences.
by Yair rand (source)
identifierInput.js
添加标识符属性时,它尝试从完整网址中剥离标识符
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3A1Veertje%2FidentifierInput.js&action=raw&ctype=text%2Fjavascript' ); // [[User:1Veertje/identifierInput.js]]
by 1Veertje (source)
Label Collector (Q108311207)
Label Collector

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.

Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AYMS%2Flabelcollect.js&action=raw&ctype=text%2Fjavascript' ); // [[User:YMS/labelcollect.js]]
by YMS (source)
LabelLister (Q87070602)
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.
Gadget
This script is a gadget. You can enable it in your preferences.
by Jitrixis (source)
Merge (Q108311238)
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.
Gadget
This script is a gadget. You can enable it in your preferences.
by Ebrahim (source)
moreIdentifiers (Q106876944)
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
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ABargioni%2FmoreIdentifiers.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Bargioni/moreIdentifiers.js]]
by Bargioni (source)
namescript
Fill in labels, descriptions and aliases of name items. See Wikidata:Namescript for more information.
Userscript
Please write the following line into your common.js:
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]]
by Lucas Werkmeister and Harmonia Amanda (source)
quickpresets
quickpresets
quickpresets(快速呈现)是一个用户脚本,讓您一键就能添加常见的陈述。它就是拿來自定义的。您可以对其进行配置,以尽可能少的点击次数为您呈现最常用的预设動作。例如如果您经常编辑人物的数据项,则可以让它为您呈现性别、国籍、职业等。请查看脚本页面了解如何自定义。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AMichaelSchoenitzer%2Fquickpresets.js&action=raw&ctype=text%2Fjavascript' ); // [[User:MichaelSchoenitzer/quickpresets.js]]
by MichaelSchoenitzer (source)
SlurpInterwiki (Q97500656)
SlurpInterwiki
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.
Gadget
This script is a gadget. You can enable it in your preferences.
by Tpt (source)
SpeedPatrolling
SpeedPatrolling
Tool to patrol and rollback unpatrolled recent changes on Wikidata, especially on mobile devices.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALucas_Werkmeister%2FSpeedPatrolling&action=raw&ctype=text%2Fjavascript' ); // [[User:Lucas_Werkmeister/SpeedPatrolling]]
by Lucas Werkmeister (source)
The Brown Tool

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.

Userscript
Please write the following line into your common.js:
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]]
by Goldzahn (source)
UseAsRef
Allows you to add references to statements using external IDs as sources. Detailed instruction in User:Bargioni/UseAsRef.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ABargioni%2FUseAsRef.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Bargioni/UseAsRef.js]]
by Bargioni (source)
WikidataComplete
WikidataComplete
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.
Userscript
Please write the following line into your common.js:
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]]
by Data-Complete-Gadget (source)
Wikidata useful
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). Also, tries to load and display a blurb from en or de Wikipedia.
Userscript
Please write the following line into your common.js:
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]]
by Magnus Manske (source)
HaveWikibaseLabelLowercased
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 your common.js:
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Base/Scripts/HaveWikibaseLabelLowercased.js&action=raw&ctype=text/javascript');
by Base
LinkyPop
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.
Userscript
Please write the following line into your common.js:
mw.loader.load('//www.wikidata.org/w/index.php?title=User%3ALuca.favorido%2Flinkypop.js&action=raw&ctype=text%2Fjavascript'); // [[User:Luca.favorido/linkypop.js]]
by Luca.favorido (source)


Userscripts to enhance the display of values

AuthorityControl
对有“规范控制”属性的数据项,设定相应代码来链接到在线的规范控制工具。且如果用户点击“编辑”,链接将即时消失。 用Barack Obama (Q76)试试!
Gadget
This script is a gadget. You can enable it in your preferences.
by Ricordisamoa (source)
CDKDepict Gadget
CDKDepict Gadget

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

Userscript
Please write the following line into your common.js:
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]]
by Egon Willighagen (source)
ClaimMaps
ClaimMaps
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATeester%2FClaimMaps.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Teester/ClaimMaps.js]]
by Teester (source)
DisplayColourSwatches
为使用sRGB color hex triplet (P465)的陈述添加一个颜色样本。颜色样本也为color (P462)flower color (P2827)official color (P6364)以及有sRGB color hex triplet (P465)的陈述显示。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATeester%2FDisplayColourSwatches.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Teester/DisplayColourSwatches.js]]
by Teester (source)
DMY dates
使声明(主张)中的所有日期呈现为"日 月份名 四位年份"的格式。需要日期选项设置为“dmy”。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ARicordisamoa%2FDMYdates.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Ricordisamoa/DMYdates.js]]
by Ricordisamoa (source)
embeds.js
embeds.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!
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2Fembeds.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/embeds.js]]
by Lectrician1 (source)
Panoviewer
此视频展示了操作Piz Lunghin (Q675985)时该工具的界面。
spherical panorama image (P4640)陈述插入一个Panoviewer工具。
Userscript
Please write the following line into your common.js:
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]]
by Jon Harald Søby and Nikki (source)
Sort values
此脚本以软件版本的经典顺序排序software version identifier (P348)属性的值。如果您还想排序其他属性,联系作者,他愿意总结其他属性和顺序(例如按字母顺序)。例子如Ubuntu (Q381)
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ASeb35%2FsortValues.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Seb35/sortValues.js]]
by Seb35 (source)
Units converter
将20种货币转换至选定的货币。将公制单位(质量、尺寸、面积、温度、速度)转换为美制单位,或反之。如有数据,货币金额按通货膨胀调整。
Userscript
将下列内容加入您的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)
Wikispecies
为包含taxon name (P225)的项提供一个指向维基物种的链接,以及为IUCN conservation status (P141)提供一个图像。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ARicordisamoa%2FWikispecies.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Ricordisamoa/Wikispecies.js]]
by Ricordisamoa (source)

Userscripts to link Wikidata frontends

GeneaWiki
对写有血缘关系的人物,添加一个指向 GeneaWiki 的链接用以查看家谱。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ARicordisamoa%2FGeneaWiki.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Ricordisamoa/GeneaWiki.js]]
by Ricordisamoa (source)
Ordia link
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.
Userscript
Please write the following line into your common.js:
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]]
by So9q (source)
Reasonator
在您的工具箱中添加一个链接,便于在Reasonator中查看当前项。
Gadget
This script is a gadget. You can enable it in your preferences.
by Multichill (source)
Scholia link
Adds a Scholia link on items in the Tools section on items.
Userscript
Please write the following line into your common.js:
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]]
by Fnielsen (source)

Userscripts for improving data quality

CheckShex (Q105044837)
CheckShex
允许您检查一个数据项是否符合shex entitySchema(例如 E10human (Q5)))。也将为entitySchema页面(例如 E10)新增一个输入框来允许您输入一个项进行检查(例如 Douglas Adams (Q42)))。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATeester%2FCheckShex.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Teester/CheckShex.js]]
by Teester (source)
Classification.js (Q117857341)
Classification.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.

Translations on ToolTranslate (more links)

Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATomT0m%2Fclassification.js&action=raw&ctype=text%2Fjavascript' ); // [[User:TomT0m/classification.js]]
Translate by TomT0m (source)
Constraint Summary
Constraint Summary
此脚本为维基数据项添加一个状态指示器,显示该项的约束违反和警告。鼠标在指示器上悬停将显示约束和警告类型的细节。单击指示器则前往该项的Special:ConstraintReport页面。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATeester%2FConstraintSummary.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Teester/ConstraintSummary.js]]
by Teester (source)
Consistency check
检查声明一致性的工具,例如如果B是A的"孩子",那么A应该是B的"父亲"或"母亲"。
Userscript
Please write the following line into your common.js:
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]]
by Magnus Manske,改编者JonnyJD (source)
Consistency check add
检查声明一致性并添加反向属性的工具。
Userscript
Please write the following line into your common.js:
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]]
by Frettie (source)
EntityShape (Q105038291)
EntityShape
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.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATeester%2FEntityShape.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Teester/EntityShape.js]]
by Teester (source)
Metaclass check
This adds a warning next to instance of (P31) statements on classes if their values are not metaclasses.
Userscript
Please write the following line into your common.js:
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]]
by Lectrician1 (source)
MismatchFinderWidget
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.
Userscript
Please write the following line into your common.js:
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]]
by Guergana Tzatchkova (WMDE) (source)
Recoin
Recoin
此脚本添加一个状态标识符和一个可展开的列表,介绍缺少的维基数据重要属性。更多细节见工具的页面
Gadget
This script is a gadget. You can enable it in your preferences.
by Vvekbv (source)
Recoin_ID
此脚本是Recoin的衍生品,将添加一个可展开的列表,列出對维基数据重要且缺失的ID。更多细节詳见工具的页面
Userscript
Please write the following line into your common.js:
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]]
by Ls1g (source)
QualiRef
Counts the number of references that support a qualifier using supports qualifier (P10551).
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ANw520%2FQualiRef.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Nw520/QualiRef.js]]
by Nw520 (source)
WikidataTrust
WikidataTrust
受原WikiTrust启发,它用一种相当简单的算法,遍历检查当前实体的所有修订版本,将声明(主张)、站点链接、标签以及描述归属到做出更改的用户。 该工具仍处在公测阶段,但应该运转良好。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ARicordisamoa%2FWikidataTrust.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Ricordisamoa/WikidataTrust.js]]
by Ricordisamoa (source)
Conflicting Superclass Warnings

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!

Userscript
Please write the following line into your common.js:
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]]
by JesseW (source)
PrefRank
Helps to set one value as preferred if two or more values with normal rank are present for one of the following properties: date of birth (P569), place of birth (P19), date of death (P570), place of death (P20) (see User:Bargioni/PrefRank).
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ABargioni%2FPrefRank.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Bargioni/PrefRank.js]]
by Bargioni (source)


Userscripts to speed up wiki tasks

DeletionHelper
它只在Wikidata:Requests for deletions中尚未被删除的项上生效。
  • *空的数据项将高亮;
  • *非空的数据项将显示目前有多少站点链接
  • *在“编辑”链接旁边显示一个链接,用于标记当前的请求为“完成”。
Gadget
This script is a gadget. You can enable it in your preferences.
by Ricordisamoa (source)
iwconflict.js
报告跨维基冲突到维基数据:跨维基冲突页面的工具。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ABene%2A%2Fiwconflict.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Bene*/iwconflict.js]]
by Bene* (source)
RequestDeletion
RequestDeletion
此脚本在每个项页面的顶部添加一个小链接,便于在Wikidata:Requests for deletion提报删除。
Gadget
This script is a gadget. You can enable it in your preferences.
by Bene* (source)
userwarn
此工具用于向用户讨论页加入警告模板
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ABene%2A%2Fuserwarn.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Bene*/userwarn.js]]
by Bene* (source)
Script installer
This script enables you to easily install and uninstall scripts by visiting the page of the script.
Userscript
Please write the following line into 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]]
by So9q and Erutuon and Equazcion (source)

Userscripts for displaying related Wikidata data

Ancestry viewer
此工具添加了側邊欄鏈接,以顯示您當前正在查看的人的祖先/譜系圖表,並能夠瀏覽他們的關係。 系譜圖與家譜不同,它只顯示每個人的父親和母親,但是如果你點擊圖表中的人,它會加載配偶和其他孩子以允許你跳到那個人 而是查看他們的祖先
Userscript
将下列内容加入你的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)
Discographies
Shows chronological music discography data on release group items and functions to automatically create new release groups and releases
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2Fdiscographies3.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/discographies3.js]]
by Lectrician1 (source)
EnumItems
EnumItems
此脚本在监视列表星型按钮旁添加一或两个按钮,用来跳转到上一项/下一项。仅适用于Vector皮肤。
Gadget
This script is a gadget. You can enable it in your preferences.
by Arkanosis (source)
ExLudo.js
ExLudo.js

Enhances video-game related item pages:

Userscript
Please write the following line into your common.js:
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]]
by Jean-Frédéric (source)
properties
Below 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.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALagewi%2Fproperties.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lagewi/properties.js]]
by Lagewi (source)
Qualifier constraint usage
Shows what properties this qualifier is a required and allowed qualifier on by the sitelinks
Userscript
Please write the following line into your common.js:
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]]
by Lectrician1 (source)
related items
在所有项页面的结尾添加一个显示反向陈述的新按钮
Gadget
This script is a gadget. You can enable it in your preferences.
by Pasleim (source)


Userscripts to display related Wikimedia content

Commons Depicts
此脚本将一个链接添加到https://tools.wmflabs.org/depicts侧栏以允许在维基共享资源上查看维基数据项的描述(depicts (P180))。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AStevenliuyi%2Fdepicts.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Stevenliuyi/depicts.js]]
by Stevenliuyi (source)
Preview
Preview
在每个已链接条目旁显示一个“预览”按钮,便于即时获取条目的预览。
Gadget
This script is a gadget. You can enable it in your preferences.
by Bene* (source)
WikiBridge

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' );
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ABargioni%2FWikiBridge.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Bargioni/WikiBridge.js]]
by Bargioni (source)
Taxobox
Taxobox
为每个有taxon name (P225)的项显示taxobox。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ASuccu%2Ftaxobox.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Succu/taxobox.js]]
by Succu (source)

Userscripts for displaying related external data about the item

bibliography
The bibliography. Below each reference a series of back links titled with a property number.
Adds a bibliography at the bottom of the page, based on references attached to claims of the item.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALagewi%2Fbibliography.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lagewi/bibliography.js]]
by Lagewi (source)
musica.js
musica.js
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.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2Fmusica.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/musica.js]]
by Lectrician1 (source)
overpass
The map shows up at the bottom of the Wikidata page, near Wikipedia links
嵌入一个在OpenStreetMap中显示当前数据项已标记特征的地图。由overpass turbo提供支持。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AMxn%2Foverpass.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Mxn/overpass.js]]
by mxn (source)
references
The item Sylvie Deleurance (Q122350848) with a collapsible list titled "Other resources", containing links.
Adds a collapsed list of "Other resources" below the labels and above the claims, listing links collected from references of the item.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALagewi%2Freferences.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lagewi/references.js]]
by Lagewi (source)


Userscripts for key shortcuts

KeyShortcuts
提供几个键盘快捷键。按LD键开始编辑项的标签、描述,SJI键滚动到陈述、站点链接和标识符部分,A开始添加新陈述。
Gadget
This script is a gadget. You can enable it in your preferences.
by Ricordisamoa (source)
UpDown
UpDown
用以快速导航的用户脚本:
  • t键或者右下角的☰图标来切换菜单,便于跳转到陈述。
  • 如果一个属性有多个值,它添加便于跳转到第一个/最后一个值的箭头。
  • 使用jk键可以跳转到下一个/上一个陈述。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AMichaelSchoenitzer%2Fupdown.js&action=raw&ctype=text%2Fjavascript' ); // [[User:MichaelSchoenitzer/updown.js]]
by MichaelSchoenitzer (source)

Userscripts that enhance Wikibase

Compact items
Compact items
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.
Gadget
This script is a gadget. You can enable it in your preferences.
by Jon Harald Søby (source)
Filter watchlist languages
Filter watchlist languages
Filters your watchlist to show changes to labels, descriptions, and aliases that are only in the languages you specify.
Userscript
Please write the following line into your common.js:
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]]
by Lectrician1 (source)
WikibaseEcho
WikibaseEcho
This script shows the labels of entities in your notifications so that you know what they are and are not just shown their IDs.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AZvpunry%2FWikibaseEcho.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Zvpunry/WikibaseEcho.js]]
by User:Zvpunry and Lectrician1 (source)
SplitWatchlist
SplitWatchlist
Splits your watchlist into a column for entity changes and a column for all other changes.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2FSplitWatchlist.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/SplitWatchlist.js]]
by Lectrician1 (source)


Userscripts that enhance MediaWiki

DiffLists.js
DiffLists.js
替换监视列表、最近更改、相关更改、历史页面以及贡献页面中的自动化摘要,显示简明版本的页面更改。还允许过滤来查看特定类型的更改。
Userscript
Please write the following line into your common.js:
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]]
by Yair rand (source)
Discuss
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.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2FDiscuss.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/Discuss.js]]
by Lectrician1 (source)
HoverDiff
HoverDiff
在监视列表中的“差异”链接上悬停,或者页面历史记录中的“当前”、“先前”链接上悬停时,用预览悬浮窗形式显示变更内容,节省打开链接的时间。该悬浮窗会尝试解析差异中的维基文本,但受制于差异可能不是完整的维基文本语法(尤其是表格或多行模板场景下),也可能显示维基文本源码。此用户脚本也适用于维基百科网站。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ATeester%2FHoverDiff.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Teester/HoverDiff.js]]
by Teester (source)
Improved search
Improved search
此脚本在搜索框旁显示一个小链接,可以提供一份搜索表单来直接以站点链接搜索数据项。仅在Vector或Monobook皮肤下可用。
Gadget
This script is a gadget. You can enable it in your preferences.
by Bene* (source)
markAdmins
此脚本以(A)(B)(CU)(OS)(S)标示管理员、行政员、用户查核员、监督员及监管员。
Gadget
This script is a gadget. You can enable it in your preferences.
by NordNordWest (source)
ping all users involved in discussion
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.
Userscript
Please write the following line into your common.js:
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]]
by Tomodachi94 (source)
UserContributionsHeaderLink
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.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2FUserContributionsHeaderLink.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/UserContributionsHeaderLink.js]]
by Lectrician1 (source)


Other userscripts

InterwikiList
从一个数据项生成一份“旧式”跨维基链接列表,便于复制。
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ARicordisamoa%2FInterwikiList.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Ricordisamoa/InterwikiList.js]]
by Ricordisamoa (source)
Linkify descriptions
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.
Userscript
Please write the following line into your common.js:
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]]
by Jon Harald Søby (source)
Main language first
Main language first
此脚本将当前使用的语言突出并提升到语言列表首位。
Gadget
This script is a gadget. You can enable it in your preferences.
(source)
personal_sort_identifiers
个性化标识符排序是一个用户脚本,允许您按自己的喜好排序标识符。默认顺序是按属性的P编号,而您可以自定义顺序(例子)。
Userscript
Please write the following line into your common.js:
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]]
by Bargioni (source)
wikidata2ical
wikidata2ical

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.

Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3AShisma%2Fwikidata2ical.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Shisma/wikidata2ical.js]]
by Shisma (source)
mixnmatch_gadget
mixnmatch_gadget
Allows to make Mix'n'match matches from Wikidata.
Userscript
Please write the following line into your common.js:
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]]
by Magnus_Manske (source)
Has 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.
Userscript
Add the following to your common.js
importScript("User:Bamyers99/HasProperty.js");
by Bamyers99 (source)


Userscripts specific to lexemes

hyphenation-point.js
Replaces "|" with "‧" when entering hyphenation (P5279) on lexeme forms.
Userscript
Please write the following line into your common.js:
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]]
by Lucas Werkmeister (source)
Merriam Webster Iframe
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
Userscript
Please write the following line into your common.js:
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]]
by So9q (source)
SenseForThisItem
SenseForThisItem
Adds a button on items to show what senses are linked to it.
Userscript
Please write the following line into your common.js:
mw.loader.load( '//www.wikidata.org/w/index.php?title=User%3ALectrician1%2FSenseForThisItem.js&action=raw&ctype=text%2Fjavascript' ); // [[User:Lectrician1/SenseForThisItem.js]]
by Lectrician1 (source)

Userscripts for other websites

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
请将下列内容加入你在Commons上的common.js
importScript('User:Jheald/wdcat.js');
by TheDJ
Display the link to Wikiversity in the title of Wikipedia
Display the link to Wikiversity in the title of Wikipedia
在维基百科的标题上加入维基学院的链接。
Userscript
请将下列内容添加到你在维基百科上的common.js或你的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
此脚本在维基百科条目的标题旁显示一个小框,呈现对应维基数据项的标签、描述和别名,或者一个小的“未找到维基数据项”链接来指向创建数据项页面。另有一份改版去除了Q编号部分,使复制粘贴更方便。
Userscript
请将下列内容添加到你在维基百科上的common.js或你的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)
ExtraInterwiki (Q111666470)
ExtraInterwiki

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 your global.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 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
by TomT0m
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.

请将下列内容加入您的global.js(或者您在特定项目上的common.js):
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

Browser extensions for other websites

Entity Explosion (Q98398855)

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:

by 99of9
Wikidata for Web (Q99894727)

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

See also