ItamarWMDE added a comment.

  **Task Breakdown Notes:**
  
  - The URL gets QIDs as values, but we will need to show Item labels in the 
lookup fields
  - In all the cases in the table below, we would like to figure out if the 
language code can be inferred.
  - We can already request the label and the language code (if it is associted 
with the languiage item) on the server side, will help us avoid an addition 
client side request(s)
  - What should happen if the language parameter is not a valid QID? 
@Lydia_Pintscher
  - What should happen if the spelling variant parameter is not a valid 
language code? @Lydia_Pintscher
  
  | Case | Language QID in URL | Spelling Variant in URL | Language Code of 
Item |
  | ---- | ------------------- | ----------------------- | 
--------------------- |
  | 1    | English             | en                      | en                   
 |
  | 2    | English             | nl                      | en                   
 |
  | 3    | English             | ---                     | en                   
 |
  | 4    | Dutch               | nl                      | ---                  
 |
  | 5    | Dutch               | ---                     | ---                  
 |
  | 6    | ---                 | nl                      | ---                  
 |
  |
  
  
  
  - In cases 1 and 3 the spelling variant field should not be shown
  - In case 2: How do we reconcile the difference between the language code in 
the URL and the one stated on the Item? @Lydia_Pintscher
  - In cases 4 and 6 the spelling variant should be shown and have 'nl' 
preselected.
  - In case 5 only the language item should be preselected and the spelling 
variant field is shown.

TASK DETAIL
  https://phabricator.wikimedia.org/T298154

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: ItamarWMDE
Cc: ItamarWMDE, Lucas_Werkmeister_WMDE, Aklapper, Lydia_Pintscher, 
Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, Akuckartz, Nandana, Lahi, 
Gq86, GoranSMilovanovic, Mahir256, QZanden, LawExplorer, _jensen, rosalieper, 
Bodhisattwa, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to