As a Wikidata editor, when I search for a label and find no matching item, I want to create a new item for this label, in order to use that new item e. g. in a statement elsewhere.
Problem:
On Wikidata, the search page includes a link to Special:NewItem if there are no search results, with the label for the new item pre-filled with the search term. (This is done by customizing an interface message at MediaWiki:search-nonefound.) However, sometimes the label is escaped incorrectly; namely, an apostrophe turns into “'”.
This issue was first reported on the contact the development team page (permanent link).
Example:
Example search link
BDD
GIVEN a search via Special:Search
WHEN 0 results are returned
AND I follow the link to create a new Item
THEN the label field on Special:NewItem is filled with the exact search term I was searching for
Acceptance criteria:
- The “create a new item” link on the search page always produces the correct label (the one that the user entered).