Page MenuHomePhabricator

Information Box explaining the usage
Closed, ResolvedPublic8 Estimated Story Points

Description

As a new Wikidata editor I want to get a short introduction to Lexemes in order to understand what Special:New Lexeme is about.

Problem:
We want to show a box with explanatory text to give new editors some information and context about Lexemes.

Screenshots/mockups:
https://www.figma.com/file/XoYktoKEBnC0VIf1SRuxJK/Lexicographical-Data-UI?node-id=493%3A3179

BDD
GIVEN the Special:NewLexeme page
WHEN loading the page
THEN I can see a box with explanations about Lexemes and lexicographical data

Acceptance criteria:

  • an explanation box is shown on the special page

Notes:

  • Component: Notice component for the overall box
  • Copy: see mockup
  • The example Lexeme box should link to the example Lexeme’s page, for L2 for example: https://www.wikidata.org/wiki/Lexeme:L2
  • The example Lexeme itself should be changeable for localization purposes, so the translator can use a Lexeme example from their language. We discussed only specifying the ID of the Lexeme and then loading all necessary data (Lemma, lex. category, language) from the actual Lexeme.
  • The link to "create a new item" should go to the local Special NewItem page.
  • The links in the example Lexeme box go to the corresponding local Items and Lexeme.
  • The link to lexicographic data goes to "Project:Lexicographical data". (This will make it a red-link on purpose on 3rd-party Wikibase installations. We expect them to create the page on their project.)

Event Timeline

Michael updated the task description. (Show Details)

Change 780875 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/WikibaseLexeme@master] Add the messages needed for the new NewLexeme infobox

https://gerrit.wikimedia.org/r/780875

Change 780875 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Add the messages needed for the new NewLexeme info panel

https://gerrit.wikimedia.org/r/780875

Task Breakdown Notes:

  • We will not use the Message or Link components from Wikit per se (we will use their tokens however) as it was decided to construct the info panel with mustache and PHP as a result of the prototyping discussions prior to this task.
  • The proof of concept is currently functional and can be viewed on gerrit and github.

"The link to lexicographic data goes to "Project:Lexicographical data". (This will make it a red-link on purpose on 3rd-party Wikibase installations. We expect them to create the page on their project.)"

  • The link to Project:Lexicographical data is actually a link to a sub-page of Special:MyLanguage and thus will not be resolved as a non-existing page, even if it doesn't exist. (@Erdinc_Ciftci_WMDE @Lydia_Pintscher we hope this doesn't cause much of an issue)
  • As the code for this is already 75% done, it was decided that @Michael, as the creator of the POC, will finish polishing the implementation.

Change 779854 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/WikibaseLexeme@master] Add info panel to special new-lexeme

https://gerrit.wikimedia.org/r/779854

Change 779854 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Add info panel to special new-lexeme

https://gerrit.wikimedia.org/r/779854

  • The link to Project:Lexicographical data is actually a link to a sub-page of Special:MyLanguage and thus will not be resolved as a non-existing page, even if it doesn't exist. (@Erdinc_Ciftci_WMDE @Lydia_Pintscher we hope this doesn't cause much of an issue)

Ah we've run into this before. Yes that's not amazing but ok.

Change 785183 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/WikibaseLexeme@master] Ignore whitespace in user defined message L-ID

https://gerrit.wikimedia.org/r/785183

Change 785183 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Ignore whitespace in user defined message L-ID

https://gerrit.wikimedia.org/r/785183

\o/
This looks great!

One small thing I only now realize is missing in the mockups: In the notes it says

The example Lexeme box should link to the example Lexeme’s page, for L2 for example: https://www.wikidata.org/wiki/Lexeme:L2

I'm sorry I didn't see that was missing in the mockups.
@Erdinc_Ciftci_WMDE can you adjust the mockup please?

I'm moving this back to To Do in the hopes that this is a very small thing. If not I can also close this and open a new ticket for it.

Should be a relatively small change once we know where the link should go, I think.

@Lydia_Pintscher Sure, I can update the mock-up but to be clear where do we want it links from? the whole box or just the Lexeme name?

I don't have these notes so much in my memory and needed a bit of clarification, sorry about it.

@Lydia_Pintscher Sure, I can update the mock-up but to be clear where do we want it links from? the whole box or just the Lexeme name?

I think I would link the L-ID in the box.

Change 786332 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/WikibaseLexeme@master] Link to example lexeme in Special:NewLexemeAlpha info panel

https://gerrit.wikimedia.org/r/786332

Change 786332 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Link to example lexeme in Special:NewLexemeAlpha info panel

https://gerrit.wikimedia.org/r/786332