Page MenuHomePhabricator

Ability to preload edits in Wikibase
Open, Needs TriagePublic

Description

A feature that works like the preload URL parameter for editing structured data would allow us to create links from templates or external tools that users could follow to be able to click for a preloaded Wikibase statement.

There is already a good way to present such preloaded Wikibase updates in the edit view, as can be seen if you use the "undo" or "restore" buttons, such as this example:

Screen Shot 2022-05-26 at 4.06.58 PM.png (1×2 px, 729 KB)

I guess the main design question is how to form the Wikibase statements in URL parameters, since the template approach used in wikitext preloads will not be applicable. FWIW, in QuickStatements, you can use the command syntax to create a batch with URL parameters, which is what got me thinking about this (e.g. https://quickstatements.toolforge.org/#/v1=M116859918|P180|Q6346).

Event Timeline

Can you please clarify a bit more what the use case is? What would you like to achieve and when and why?
Also can you clarify please if this is for Wikidata or Commons or a 3rd-party Wikibase installation?

Can you please clarify a bit more what the use case is? What would you like to achieve and when and why?

It is the same type of use case as what is described in https://www.mediawiki.org/wiki/Manual:Creating_pages_with_preloaded_text, making URLs for Wikimedia users that helps facilitate a process editors may have.

Here's a simple hypothetical example:

  1. Wikidata has an item, say "Mona Lisa" (Q12418)
  2. A Wikipedia has an article for this entity.
  3. The article uses a Lua-based template, perhaps an infobox.
  4. Editors on that Wikipedia are filling in values in the infobox. Imagine any type of data here, such as the title for a language, dimensions, external database identifiers.
  5. The template uses Lua to check if the key–value pairs in the template are in Wikidata, and if not, provides an "add to Wikidata" link editors can click which would automatically preload the statement based on the template parameters.

Also can you clarify please if this is for Wikidata or Commons or a 3rd-party Wikibase installation?

All of the above. This is a request for a feature that could be used across all of those.