As a Lexeme creator, when I visit the Create a new Lexeme page with some fields pre-filled from URL parameters I would like to have the form state filled with those parameters in order to save time for repeated Lexeme creation.
Problem:
We want to accept pre-filling some of the input fields via a URL parameter.
Example:
https://www.wikidata.org/wiki/Special:NewLexeme?lemma=foo
BDD
GIVEN a link to Special:NewLexeme including URL parameters encoding parts of the new Lexeme’s data
WHEN opening the link
THEN the input fields are populated from the URL parameters
Acceptance criteria:
- input submitted via URL parameters is put in the input fields on page-load
Notes:
- This works in the current Special Page and is used by templates to pre-fill the page for specific languages.
- The parameter names should be the same as in the current implementation so existing links will continue to work.