Problem:
If I want to link to a certain form of a Lexeme in Wikidata, I must use a URL like https://www.wikidata.org/wiki/Lexeme:L1234#L1234-F1, where the Lexeme ID is repeated and separated by a hyphen from the relevant Form ID, F1. https://www.wikidata.org/wiki/Lexeme:L1234#F1 would be more convenient and less redundant.
Example:
BDD
GIVEN a Lexeme L1234
AND a Form F1
WHEN I add #F1 to the URL of the Lexeme
AND load the page
THEN the page jumps to the F1 section of the page
Acceptance criteria:
- a Form in the Form section of the Lexeme has an HTML ID that is equivalent to the Form's ID
Notes:
- We don't keep the old IDs.
- This probably means <div class="wikibase-lexeme-form listview-item wikibase-toolbar-item" id="L1234-F1"> is to be replaced with <div class="wikibase-lexeme-form listview-item wikibase-toolbar-item" id="F1">
- the HTML id: in FormsView line 105, $this->templateFactory->render( 'wikibase-lexeme-form' ... ) should inject F1 instead of L1-F1
- the link fragment: in FormTitleStoreLookup line 49