As a template creator I want to be able to specify the Item ID for a new article via a URL parameter in order to make it easier to automatically connect the newly created article to the correct Item.
As an editor who is creating a new article I want to be able to preview my article with an infobox that is automatically filled from Wikidata immediately in order to see how it will look after saving.
As a Wikipedia editor I want to be able to create an article that will be automatically connected to a specified Wikidata Item when I save the new article.
Problem:
There is currently no way to specify the Item a new article should be connected to. This leads among other things to articles not being connected or being connected to the wrong Item.
Example:
Work-around on Russian Wikipedia: https://w.wiki/4fQp
BDD
GIVEN a redlink incl an itemid parameter
WHEN clicking the redlink and opening the editor then the Item ID is handed over
AND WHEN clicking save
THEN the newly created article's sitelink is added to the Item with the specified ID
GIVEN an editor window for a new article with a specified Item ID
WHEN clicking preview
THEN the preview of the article makes use of the data from the specified Item
Acceptance criteria:
- URL parameter is available and used in the new article wikitext editor
- preview of the article from the wikitext editor includes data from the specified Item if the templates in the wikitext call it
Open questions:
- How will this all work with VisualEditor?
Original report:
We need to create a GET parameter that will allow us to specify the ID of the Wikidata item when creating a new page in wiki projects. In case this parameter is specified, then
- the article in the preview should be able to get values from the Wikidata item, as if it is linked to the item,
- after saving the page, it should automatically link to the Wikidata.