Addshore added a comment.

  Comparing the request pattern for strings vs the math datatype highlights the 
issue.
  
  > 1. String (parse then format)
  
  
  
    
https://test.wikidata.org/w/api.php?action=wbparsevalue&format=json&parser=string&values=23&errorformat=plaintext&uselang=en&options={"lang":"en"}
    
https://test.wikidata.org/w/api.php?action=wbformatvalue&format=json&datavalue={"value":"23","type":"string"}&generate=text/html;
 
disposition=verbose-preview&property=P95180&errorformat=plaintext&uselang=en&options={"lang":"en"}
  
  Math (only a format with the JS specifically stating the value is unknown as 
no parse has happened )
  
    
https://test.wikidata.org/w/api.php?action=wbformatvalue&format=json&datavalue={"value":"23","type":"unknown"}&generate=text/html;
 
disposition=verbose-preview&property=P719&errorformat=plaintext&uselang=en&options={"lang":"en"}

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

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

To: Addshore
Cc: hoo, Lea_Lacroix_WMDE, Mohammed_Sadat_WMDE, Toni_001, Addshore, 
Lydia_Pintscher, Aklapper, Michael, Akuckartz, Iflorez, darthmon_wmde, 
alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, Maosef, QZanden, 
LawExplorer, Debenben, _jensen, rosalieper, Scott_WUaS, Jonas, Izno, Verdy_p, 
Wikidata-bugs, aude, fredw, Physikerwelt, Pkra, scfc, Jdforrester-WMF, Mbch331, 
Rxy, Jay8g, Krenair
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to