Page MenuHomePhabricator

Edit lexicon special page should accept URL parameters
Closed, ResolvedPublic

Description

It should be possible to give some information as URL parameters, to have those fields filled out automatically.

If we end up using the special page for editing lexicon entries, it will be used there. It is also required for T133857: Link to Special:EditLexicon from player.

Parameter candidates:

  • the word itself
  • the page from which you got here
  • language (required if no source_page)
  • the sentence in which to word appears?

Event Timeline

Lokal_Profil renamed this task from Edit lexicon special pages should accept URL parameters to Edit lexicon special page should accept URL parameters.Feb 11 2021, 10:09 AM
Lokal_Profil updated the task description. (Show Details)
Lokal_Profil set the point value for this task to 8.
Lokal_Profil moved this task from Unsorted to Editor on the Wikispeech-Text-to-Speech board.
Lokal_Profil moved this task from Incoming to Backlog on the Wikispeech-Jobrunner board.

After looking around a bit on other special pages, it seems that the only thing that is needed for fields to be filled from URL parameters is to give the the name attribute.

Change 673233 had a related patch set uploaded (by Sebastian Berlin (WMSE); owner: L10n-bot):
[mediawiki/extensions/Wikispeech@master] Use FormSpecialPage for Special:EditLexicon

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

For some reason hidden fields (as in type="hidden") are not populated from the URL parameters and I was going to use that for the page parameter. I don't know why this is, though a work around shouldn't be too hard.

I think the hidden field behaviour is so that the user can't enter data through the request. I found a way to do that anyway since we want it in this case.

Sebastian_Berlin-WMSE changed the point value for this task from 8 to 6.Mar 25 2021, 7:48 AM

Change 675082 had a related patch set uploaded (by Sebastian Berlin (WMSE); author: Sebastian Berlin (WMSE)):
[mediawiki/extensions/Wikispeech@master] Add link to Special:EditLexicon in player

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

Change 673233 merged by jenkins-bot:
[mediawiki/extensions/Wikispeech@master] Use FormSpecialPage for Special:EditLexicon

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

Change 675082 merged by jenkins-bot:

[mediawiki/extensions/Wikispeech@master] Add link to Special:EditLexicon in player

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

Lokal_Profil removed the point value for this task.