Wikidata talk:Tools

From Wikidata
Jump to navigation Jump to search

Proposals, Wishes[edit]

Ideas for tools - but no programming skills? Put them here.

Tool: suggestion for name[edit]

If the name-field in the selected language is empty but there's already an linked Wikipedia-Article for this language, suggestion this as name for the Item and let it be set by one click. Ideally remove all brackets from the end of the Article name: foo (disambiguation) -> foo. –– MichaelSchoenitzer (talk) 21:03, 7 November 2012 (UTC)

Bene* works on a script like that (in german: User talk:Bene*#Scriptfrage). --CENNOXX (talk) 23:07, 7 November 2012 (UTC)
I thought of the same, and created something very simple at User:Waldir/autoFill.js. --Waldir (talk) 19:34, 15 November 2012 (UTC)

Tool: Also known as...[edit]

As one can see in Q25369 (Kobe Bryant), it's kinda annoying to write the same for every language in the Also known as column. A tool that would help doing this without needing 1000 edits would be useful. Lukas²³ talk in GermanContribs 23:52, 11 November 2012 (UTC)

Why are they being added at all? Many languages don't use Latin script, so they are not appropriate aliases. --Yair rand (talk) 07:13, 14 November 2012 (UTC)

Tool: Bilingual CreateItem[edit]

A lot of users know their mother tongue and a world language, such as English. At this point, when there's a huge number of items to be created, it would be useful to offer the Label and Description fields in two languages (more would be confusing) - one with the user set language and the other with a drop-down menu that would affect both fields. Alternatively, the user set language and English only would go a long way too. Anyone up to the task? — Yerpo Eh? 20:19, 12 November 2012 (UTC)

It seems a good idea. -- Yiyi (talk!) 23:09, 12 November 2012 (UTC)
I think it would not be very difficult. I will try to create the script. --Bene* (talk) 15:37, 13 November 2012 (UTC)

Tool: PD[edit]

The Persondata (Personendaten) in the German Wikipedia about nearly every person includes a short summary (Kurzbeschreibung), which could be importet with a script as german description.--CENNOXX (talk) 16:01, 24 November 2012 (UTC)

Get ID[edit]

Tool which automatically add correct id's to Wikidata:Country subdivision task force/Finland and also add wikilinks. Maybe it's possible using ifexist? It's difficult to add links one by one --Stryn (talk) 13:02, 5 December 2012 (UTC)

If the entries in the list are equal to the label, you can use {{I}} --Bene* (talk) 17:34, 5 December 2012 (UTC)

Add or edit multiple languages at once[edit]

As stated elsewhere, it would be great to be able to add or edit labels, descriptions and aliasses in multiple languages at once. I imagine having an writable table, where all changes may be saved at the end. --Leyo 18:03, 5 December 2012 (UTC)

Wikipedia-tool: highlight pages which are not at Wikidata yet[edit]

Easy tool which highlights pages which are not in Wikidata yet. Would be handy, and maybe not too hard to make? Thanks. --Stryn (talk) 11:10, 31 January 2013 (UTC)

I'm not sure what you mean. Do you mean highlight all links to articles which don't have connected Wikidata items? --Yair rand (talk) 11:37, 31 January 2013 (UTC)
Yes. --Stryn (talk) 12:00, 31 January 2013 (UTC)
User:Yair rand/HighlightUncreated.js. Probably still has some bugs. One significant issue is that most hits appear to be just links to redirects, and while they technically don't have associated Wikidata items, they're probably not what you're looking for. I don't think there's any simple way to "follow" the redirects and check whether the eventual target page has an associated entity (at least not without slowing things down a lot), but it would be simple to just have the script ignore the redirect links entirely. Would that be preferable? --Yair rand (talk) 13:09, 31 January 2013 (UTC)
Thanks a lot, really helpful tool! Looks like that it doesn't understand special letters, like "ä", "ö", "Š", "ć". Yes, maybe some other script which ignore redirects would be good, if possible. --Stryn (talk) 13:18, 31 January 2013 (UTC)

Find homonyms without description[edit]

A script could search in a given language for two (or more) items, witch have the same title (Homonym) and witch both have no description, and weekly create a list of those homonyms. Such items are problematic, because you can mix them up easily when adding them as statement. -- MichaelSchoenitzer (talk) 20:42, 3 March 2013 (UTC)

Show Disambiguation lang links in an item[edit]

when user open an item it changes lang links which are Disambiguation pages and if all of the links are Disambiguation instead of highlighting lang's links it shows a text at top of the page which shows this item is Ok and totally Disambiguation pages.▬ Reza1615 / T 21:07, 3 March 2013 (UTC)


show namespace conflicts[edit]

if in an there is a other namespace form another languge highlight it and show error at the top of page▬ Reza1615 / T 21:07, 3 March 2013 (UTC)

"if one or more sitelinks point to different namespaces"? --Ricordisamoa 14:54, 4 March 2013 (UTC)
yes for example if en:category:A, de:A, it:A are in an item it shows en:category:A is wrong ▬ Reza1615 / T 18:16, 8 March 2013 (UTC)

Admin tools for Deletions Requests[edit]

this tool should works on Wikidata:Requests for deletions and do these actions

  1. show how many links are inside requested item or change item's links in other color if it is empty
  2. if item is deleted it should add {{Done}} +admin's sign to item's section ▬ Reza1615 / T 14:45, 4 March 2013 (UTC)
Le voilà: User:Ricordisamoa/DeletionHelper --Ricordisamoa 15:34, 4 March 2013 (UTC)
it is wonderful! the only bug is. when I delete an item it's color still green instead of red till I empty my browser's cash.▬ Reza1615 / T 16:00, 4 March 2013 (UTC)

Transliteration of string properties[edit]

It would probably be useful to have strings that add, say, the Russian name of a Russian guy, but it would not be very readable to non-Russian speakers. Could we imagine a tool that would transliterate it into the user language. There are usually well defined method to transliterate from one language to another, though there are also some tricky cases. mw:Extension:Transliterator seems to do something similar. --Zolo (talk) 10:26, 7 March 2013 (UTC)

Merge item A to B[edit]

Tool to merge content of item A to item B and send delete request for A ▬ Reza1615 / T 18:18, 8 March 2013 (UTC)

or smaler but more flexible: add an move to to each page entry beneath [save|remove|cancel] that allows to move an entry from one item to another --Akkakk (talk) 19:15, 8 March 2013 (UTC)
Try out User:Bene*/move.js and please report issues. --Bene* talk 09:13, 9 March 2013 (UTC)
Thanks, It has a critical bug and I have some suggestions
  1. it shouldn't overwrite. maybe user wrote an id by mistake for example instead of Q123 he wrote Q1234 after that it will mess other item! it should send an alarm which says the target item has en:text interwiki are you sure to overwrite? and only overwrite when target interwiki doesn't exist (deleted from locale wiki)
  2. don't overwrite interwiki on target interwiki when the target existing. i.e. if en:A requested to overwrite to en:B if en:B existed it sent an alarm you will miss en:B before this moving take a decision for en:B!
suggestion 1: it should also accept profix and page title (working with item id number is boring and causing mistake is more that title name)
suggestion 2:have an option to move slected interwikis of an item to other ( merge two items) it will useful when number of interwikis are more that 1 and moving interwikis one by one is boring. it can offer a check box and then move the checked items at on edit▬ Reza1615 / T 09:57, 9 March 2013 (UTC)
doesn't work for me: after clicking on move there is just this waiting-wheel, but nothing else happens. --Akkakk (talk) 12:03, 9 March 2013 (UTC)
works now, thanks! --Akkakk (talk) 12:45, 9 March 2013 (UTC)
i would prefer beeing on the source page after the move instead of the target page. usually the target page is opened in another tab, and i have to do more on the source page (e.g. moving other links, request deletion) --Akkakk (talk) 13:19, 9 March 2013 (UTC)
now it works, but the popup doesn't close. it shows the waiting-wheel. --Akkakk (talk) 21:33, 9 March 2013 (UTC)
I am looking for it for long time as I work on merging same items of en and gu wikipedias. Hope would be available soon.--Nizil Shah (talk) 19:57, 8 May 2013 (UTC)
Once the new property type is available, could it do a conversion like the one discussed at Wikidata:Requests_for_deletions#Property:P222? --  Docu  at 05:39, 10 March 2013 (UTC)
that's something completly different. make a new section. --Akkakk (talk) 05:51, 10 March 2013 (UTC)
Practically, it would a merge of properties with different types and a copy of labels/descriptions from one property to the other. It might need some manual tweaks for that sample (not all strings might be in English). --  Docu  at 05:59, 10 March 2013 (UTC)
i understand the problem, but it's something completly different. therefore this is now a new section. --Akkakk (talk) 06:16, 10 March 2013 (UTC)
I don't see it that way. Sorry. Please don't edit my posts and/or move them to other sections. --  Docu  at 06:27, 10 March 2013 (UTC)

Find items to merge[edit]

A tool that compiles lists of items that have the same label in different languages and no conflicting sitelinks (conflicting: both have a sitelink for the same language). To extend it, aliases could be checked, too. To improve results, properties could be checked (matches might suggest identity, discrepancies are likely to eliminate it). To limit the number of results, must-have properties could be given, or search could be limited to a category in one Wikipedia. To allow faster human checking of the results, result page should display descriptions (and possibly a way to edit them). --93.94.65.67 13:37, 19 March 2013 (UTC)

Sounds challenging! WIP. --Ricordisamoa 17:40, 19 March 2013 (UTC)

Keyboard shortcuts[edit]

I know many languages, so for me the labels/descriptions take up more than the first screen of an item. Because of this, I think it would be nice if you could be able to just press a key to take you to various sections of a page (sort of like when you press "N" on Google Reader it takes you to the next unread post).

My suggestions for shortcuts are:

  • L to move cursor to Label box (so you can press "L" and then immediately start writing)
  • D to move cursor to Description box
  • S to navigate to "Statements" heading
  • A to highlight the "[add]" under Statements (or preferrably to have the same effect as clicking "[add]")
  • I to navigate to "List of pages linked to this item" heading

I don't have any coding skills to speak of, but if someone could make something like this I would be very grateful. :-) Jon Harald Søby (talk) 20:36, 23 March 2013 (UTC)

Work In Progress! --Ricordisamoa 23:50, 23 March 2013 (UTC)
✓ That's it! --Ricordisamoa 00:49, 24 March 2013 (UTC)
Wow, that is simply amazing! And so fast! Thank you! Jon Harald Søby (talk) 01:08, 24 March 2013 (UTC)

I got a small trouble after turning this function on. That is sometimes the Alt+D shortcut (goto the address bar) doesn't work, I need to press Tab once first. Is there some way to stop keyboard interference when Alt key is held? Thanks 金亦天 (talk) 05:20, 22 November 2013 (UTC)

@金亦天: should be ✓ fixed now. --Ricordisamoa 18:20, 16 December 2014 (UTC)

@Ricordisamoa: Now that the labels/descriptions interface has changed, L and D don't work. Would it be possible to make "L" work like "A" and have the same effect as clicking the "edit" link for the labels/descriptions? I experimented a bit and $(".wikibase-entitytermsview .wikibase-toolbar-button-edit").find('a').first().click(); seems to work for clicking the "edit" link. - Nikki (talk) 22:41, 2 May 2015 (UTC)

@Nikki: I experimented a bit, but couldn't manage to focus the description field with D. I've used your suggestion in Special:Diff/214057567, so at least L should work now. --Ricordisamoa 23:39, 2 May 2015 (UTC)
@Ricordisamoa: Thanks! L seems to be working nicely now. :) I'm not personally too bothered about D, since as long as L is working, I can just press tab after pressing L. - Nikki (talk) 01:58, 3 May 2015 (UTC)

Get image and beginning of Wikipedia article at the top of the page[edit]

User:Denny/articlePreview.js already provides something for the text (and also the preview gadget, but only when you select it, and that in the interwiki, so rather toward the botoom of the page). Adding a preview of the first image in P:P18, would often be useful too. --Zolo (talk) 19:37, 24 March 2013 (UTC)

Filter watch list by language[edit]

When watching a lot of items, you'll have a lot of entries in your watch list saying that the label or description in an language has been changed. I' wish to have a tool to hide those and only show: changes in other Namespaces (Wikidata, Talk, etc.), changes in my language(s), changes of statements, changes of interwikis. -- MichaelSchoenitzer (talk) 02:07, 25 March 2013 (UTC)

User:Yair rand/DiffLists.js. --Yair rand (talk) 19:08, 30 July 2017 (UTC)

Get old-fashioned interwiki link list to copy & Paste[edit]

Since Wikidata does not yet include the Commons (something I really cannot understand at all), this is still needed. It has become impossible to copy & paste interwiki data from any wikipedia article to use for interwiki-linking in Commons categories and galleries. I used to go to en.wikipeda, copy the section and paste it to the Commons page (+ add the en.link itself). --FA2010 (talk) 18:10, 27 March 2013 (UTC)

Work In Progress. --Ricordisamoa 05:48, 28 March 2013 (UTC)
Try InterwikiList.js. --Ricordisamoa 07:15, 28 March 2013 (UTC)
Thanks a lot. I already copied it to my common.js, but how do I get this to work from a Wikidata article? --FA2010 (talk) 09:02, 28 March 2013 (UTC)
Aehmm... you copied it to your commmon.js! --Ricordisamoa 09:22, 28 March 2013 (UTC)

To use it, copy this in your common.js:

importScript("User:Ricordisamoa/ScriptTranslator.js");
importScript("User:Ricordisamoa/InterwikiList.js");

Regards, Ricordisamoa 09:26, 28 March 2013 (UTC)

Stupid me. Thanks! --FA2010 (talk) 10:41, 28 March 2013 (UTC)

special watch list for item's links connection[edit]

In many cases users abuse or change or remove language links in items and no-one revert before that users could revert it in wikipedia or interwiki bots correct it based on other wikis but now it is not possible!

we need tool to monitor items which are belong to user's watched pages in wikipedia or wikidata.

for example we can define a JS tool which check if connection of predefine links are broken or changed it shows alarm to user.

user can define a list in his subpage like below and tool check the connection if they are true leave it. if they changed or removed it shows a popup alarm!

  • de:buck-en:book-it:Libro-fa:کتاب
  • it:italia-en:italy-fa:ایتالیا
  • de:wikipedia-en:wikipedia

... in this list in each row if one of the language links changed or removed it will show popup Yamaha5 (talk) 20:23, 15 April 2013 (UTC)

Tool to show how many links in items[edit]

Could be useful in Special:NewPages when checking if there is items without sitelinks. It could show how many links is in item, or highlight the item if there is no links at all. Then we should just check whether there is links to the page, and if not, then delete. Now I need to open every items in new tab and check if there is links or not. --Stryn (talk) 19:25, 21 October 2013 (UTC)

Tool to quickly categorize of a page as list/disambiguation/category/article[edit]

it would be nice to have one click categorization of a page as list/disambiguation/category/article to do quick triage of items
Jared Zimmerman (talk) 21:04, 23 November 2013 (UTC)

You can try Wikidata useful. Infovarius (talk) 11:36, 25 November 2013 (UTC)

Tree view[edit]

Can anyone to create a tool or modify Template:Tree so as it has dynamically expanded levels (like in http://simia.net/treeoflife/ru.html)? --Infovarius (talk) 07:05, 26 November 2013 (UTC)

Statistics for classes[edit]

I would be interested in statistics about the number of items in various subclasses (essentially those that will be shown in Category:Class documentation). I can get it easily through Wikidataquery, but that would be great if a bot could periodically update a list (ideally a Lua tuable so it is easy to reuse). --Zolo (talk) 09:22, 26 November 2013 (UTC)

display Freebase identifier content at the top[edit]

Hi! I have seen it once at a page viewed with Reasonator. Please create a tool / gadget which displays the content of the Freebase ID (P646) at the top of the page. Thanks in advance gangLeri לערי ריינהארט (talk) 13:11, 15 May 2014 (UTC)

Copy-and-pasting references[edit]

Hi. Please create a tool that allows references to be copy and pasted between statements. Please let me know if something like this already exists. Thanks! —Wylve (talk) 14:38, 20 August 2014 (UTC)

✓ Done @Wylve: That does exist: Wikidata:Tools/Gadgets/de#DuplicateReferences -- MichaelSchoenitzer (talk) 12:31, 20 February 2018 (UTC)

Highlight GS wikis[edit]

Would be nice to have a gadget that highlight all links on item that are GS wikis, or better; wiki's with no active sysops. --Stryn (talk) 17:57, 23 February 2015 (UTC)

Disambiguator[edit]

Someone can create a gadget/tool that for each sitelink check if is a disambiguation page on wiki? In detail: For each sitelink is necessary to use this API: action=query&prop=pageprops&format=json&ppprop=disambiguation&titles=Mercurio

If return "disambiguation": "" the page is a disambiguation, in this case is necessary to evidence the sitelink (for example set the beckground to yellow). --ValterVB (talk) 13:27, 26 November 2015 (UTC)

✓ Done by Matěj Suchánek, To use it copy and paste the following line into your common.js.
mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Matěj Suchánek/checkSitelinks.js&action=raw&ctype=text/javascript', 'text/javascript' );

. --ValterVB (talk) 09:59, 17 January 2016 (UTC)

Duplicate labels and aliases[edit]

I was trying to do this myself, but with no success – I'd love a tool that gives me a button next to the label edit fields and alias edit fields that lets me duplicate that label or alias to all the languages I have switched on. I was actually able to make it work locally (screenshot), but I'm not able to transfer that to live use on Wikidata. @Ricordisamoa: Maybe you can help, since you were so quick with my last request? 😊 Jon Harald Søby (talk) 02:55, 12 March 2017 (UTC)

@Jon Harald Søby: I made User:Ricordisamoa/CopyTerms.js but it's still very rough (it only works for labels). --Ricordisamoa 11:09, 12 March 2017 (UTC)
@Ricordisamoa: That is awesame, just what I need! You're the best! 😀 Jon Harald Søby (talk) 14:16, 12 March 2017 (UTC)

Clear item[edit]

In some cases, I think it would be useful to have an easy way to clear an item. In my usecase I would like to be able to clear everything except sitelinks (so, labels, descriptions and statements) to prepare an item for a merge. Where I could need this is cases where an item has (wrongly?) been marked as a disambiguation page while in reality it is an item for a surname or first name, and I've created a separate item for the name. In that case they should be merged, but I don't want any of the descriptions saying it's a disambiguation page (since it isn't) to be added to the merged item. Is this something that someone could easily make? Jon Harald Søby (talk) 15:00, 25 June 2017 (UTC)

@Jon Harald Søby: admins have MediaWiki:Gadget-dataDrainer.js. --Edgars2007 (talk) 15:47, 25 June 2017 (UTC)
Yes, but very important: never merge disambiguation with other type of item, it's wrong for the history of the item. If the sitelink is wrong you can move the sitelink. --ValterVB (talk) 16:59, 25 June 2017 (UTC)
@ValterVB: I'm only talking about cases where, if you move the sitelink, the disambiguation item would have no sitelinks. Then it would qualify for deletion, but it's better to redirect it. But you don't want it to say it's a disambiguation when it's not. An example of what I mean: Q10725141 is marked as a disambiguation, while the only sitelink in that item is a surname-only disambiguation page (which is usually marked as surname in Wikidata). Therefore it should be merged with Q30512398, but before I can do that I need to remove the descriptions saying that the former is a disambiguation item, to avoid confusion in various languages. Several times I've had issues where an item was described as disambiguation in some languages and surname in others, which is what I want to avoid by emptying one item before a merge. Anyways, the gadget Edgars2007 linked seems promising for this purpose. Jon Harald Søby (talk) 21:08, 25 June 2017 (UTC)
No, it's a very big error, you can't merge an empty disambiguation item with an item about fruit, or an item about city or an item about name, they are very different things, and if a disambiguation item is without sitelink we delete it, we don't merge. You can merge disambiguation item only with disambiguation item. For disambiguation item I mean an item that has had for some time P31=Q4167410 --ValterVB (talk) 22:54, 25 June 2017 (UTC)
@ValterVB: I don't see the logic there at all… The item was always about the surname, it just had an incorrect P31 here in Wikidata (which in turn led to the disambig descriptions). I believe the sitelink that the item was created for defines what the item is about, not what P31 it was arbitrarily given later on. Do you disagree? If so, why? Jon Harald Søby (talk) 23:16, 25 June 2017 (UTC)
A disambiguation is a page with a list of "word" homographs, sometime the list can be a list of surname but if it is marked as "Disambigaution" you can't be sure that you have only a list of surname- If the sitelink is wrong you must fix the sitelink not the item. --ValterVB (talk) 23:24, 25 June 2017 (UTC)
@Edgars2007: That's perfect, thank you! Jon Harald Søby (talk) 21:08, 25 June 2017 (UTC)

I have changed "disambiguation" items into other things before, because some language Wikipedias do not distinguish between a "topical index" and a "disambiguation page". So we regularly get items that describe a well-defined topic area but are incorrectly marked as "disambiguation", but some sitelinks are actually articles about the broad topic. In that case the right thing to do is to clear all the "disambiguation" labels and descriptions and replace them with a description of the actual topic. Deryck Chan (talk) 16:02, 8 October 2017 (UTC)

The problem is that Wikidata is used also outside of Wikimedia projects. If some site outside use an item and this item is a disambiguation, and after some month we change the type of item, we create an error in a external site. The stability of our data is fundamental. It's better for externale site have an error, easy to detect, that have a wrong data. --ValterVB (talk) 16:47, 8 October 2017 (UTC)
Many times, I had to clean an item wrongly tagged as disambig, (through the Game for instance), many of them by the same person, many of them months ago… The problem is Valterbot then applying the description to all languages..., once, twice, thrice, and more ! cleaning it up is really long (over 10 minutes) for a single fast error, once ! Being able to clean that type of mess is necessary... --Hsarrazin (talk) 18:40, 8 October 2017 (UTC)
If an item is defined as a disambiguation at Wikidata and a sitelink on such an item is about a person, a new item for the person should be made. One should avoid re-purposing items.
--- Jura 19:10, 8 October 2017 (UTC)

Property changing[edit]

Per [1]: tool for easily changing property but with all statements from old property. JAn Dudík (talk) 12:03, 28 July 2017 (UTC)

Go directly to item after saving[edit]

Hi, I'm wondering if someone could help me make a script. I want a script that, when I've added a surname property, takes me to that surname item directly after I've saved. I only want this to happen with the surname property (family name (P734)), and not any other properties I save. Is this doable? Jon Harald Søby (talk) 11:38, 20 February 2018 (UTC)

Inverse properties[edit]

Could someone create a tool based on inverse of (P1696) which allows a user to add in the inverse item Q2 the inverse property P2 with one clic on the inverse property P1 in the inverse item Q1? Example: if deme (Q672490) has topic's main category (P910)  Category:Demoi (Q8373159), this tool would allow me to add with one clic category's main topic (P301)  deme (Q672490) in Category:Demoi (Q8373159); or viceversa. This would be really really useful! Thank you, --Epìdosis 15:44, 21 May 2018 (UTC)

Try User:Frettie/consistency check add.js. Matěj Suchánek (talk) 15:05, 22 May 2018 (UTC)
Thanks, great!!! Now I add this to the lists. --Epìdosis 14:01, 6 June 2018 (UTC)

Use of wb_terms[edit]

Hello everyone,

Wikidata's wb_terms database table is replicated on toolforge, and people can build scripts, tools, etc using these data.

As we're considering phasing out this database table, we want to understand what and how data is used, so we can offer some reasonable replacement(s) for the users.

If you are the author of a tool using wb_terms replica, or use replicas in any other way, please provide some basic information on what are you using, and how, preferably by adding a comment to this Phabricator task.

Example:

  • Usage: I have created a tool that finds Wikidata items that have English label, but are missing a label in my native language
  • What data I use: I query label data from wb_terms, and then process results in my tool to find the gaps.

We don't set any hard deadline for this survey, but it would be great to have some overview of existing usage of the replica by the end of June 2018. If you have any other questions that you think are related, do not hesitate to ask on Phabricator.

Cheers, Lea Lacroix (WMDE) (talk) 10:12, 19 June 2018 (UTC)

Wikibase’s maxlag now takes dispatch lag in account[edit]

This change impacts people running bots and semi-automated tools to edit Wikidata.

Hello all,

Based on the previous discussions that happened around the limitation set up to fix the important dispatch lag on clients, we came with a new solution to try.

The database behind Wikidata is replicated to several other database servers. At each edit, the changes are replicated to these other servers. There is always a short lag, which is usually less than a second. If this lag is too high, the other databases can’t synchronize correctly, which can cause problems for reading and editing Wikidata, or reusing data on other projects.

If the lag is too high on too many servers, the master database stops accepting new edits. When the lag is close to the limit, the system is prioritizing “humans” edits and ignore the edits from bots, sending back an error. This limit is set up by the maxlag option in the API.

People writing bots can set up a number as maxlag for their bot. The default value is 5. This number is used to evaluate two things: the replication lag between master database and replicas, and the size of the job queue.

On Tuesday, July 3rd, maxlag will also evaluate the dispatch lag between Wikidata and clients (eg Wikipedias).

The dispatch lag is the latency between an edit on Wikidata and the moment when it’s shown on clients. Its median value is around 2 minutes.

If you’re running a bot and using a standard configuration (maxlag=5), when the median of dispatch lag is more than 300 seconds, your bot edits won’t be saved and will return an error.

If this change is impacting your work too much, please let us know by letting a comment in this ticket. This is also where you can ask any question. You can also change your configuration in order to increase the maxlag limit.

More information: Wikidata dispatch Grafana board

Thanks for your constructive feedback, Lea Lacroix (WMDE) (talk) 12:30, 28 June 2018 (UTC)