Tgr created this task.
Tgr added projects: MediaViewer, SDC General.
Restricted Application added a subscriber: Aklapper.
Restricted Application added a project: Wikidata.

TASK DESCRIPTION
  MediaViewer has a caption and description area (above and below the fold, 
respectively) with the following logic:
  
  - caption: thumbnail caption; if missing or not viewing a thumbnail, 
description from the Information template on the file page; if also missing, 
file name
  - description: description from the Information template on the file page, 
unless it's already shown as a caption; otherwise empty.
  
  Now that we have captions via Structured Data on Comons 
<https://commons.wikimedia.org/wiki/Commons:File_captions>, we should pass 
those along and the logic for the caption should probably be something like:
  thumbnail caption; if missing or not viewing a thumbnail, caption from 
structured data; if also missing (*), description from the Information template 
on the file page; if also missing, file name
  
  (*) language fallbacks for similar languages could be applied here, since 
captions are multilingual, but probably better not to try that. We don't do it 
for descriptions either.
  
  This is a bit more complicated than it seems and would probably involve 
figuring out a way to fetch the caption for each of the `File` subclasses. See 
T213585: Images (on articles, on file/category pages, and in the media viewer) 
should default to use their structured data alt text when available 
<https://phabricator.wikimedia.org/T213585> which describes the same problem 
for a different structured data field.

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

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

To: Tgr
Cc: Aklapper, Tgr, darthmon_wmde, Nandana, JKSTNK, Lahi, PDrouin-WMF, Gq86, 
E1presidente, Ramsey-WMF, Cparle, Anooprao, SandraF_WMF, GoranSMilovanovic, 
QZanden, Tramullas, Acer, LawExplorer, Salgo60, Silverfish, _jensen, 
rosalieper, Scott_WUaS, Susannaanas, Jane023, Wikidata-bugs, Base, 
matthiasmullie, aude, Ricordisamoa, Wesalius, Lydia_Pintscher, Fabrice_Florin, 
Raymond, Steinsplitter, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to