Per Ramsey.
Description
Details
Status | Subtype | Assigned | Task | |
---|---|---|---|---|
· · · | ||||
Resolved | • Ramsey-WMF | T205732 Get WikibaseMediaInfo to the state that we're happy to proceed with initial production deployment (captions) | ||
Resolved | Cparle | T205891 Display WikibaseMediaInfo captions block on the File page immediately after the file links, before the content of the wikitext block | ||
· · · |
Event Timeline
We need to distinguish between two solutions for this: client side DOM manipulation, and server side layout during page rendering. The former can be done quickly but should probably be considered a temporary solution. The latter needs quite a bit of infrastructure on the server side, if we want to provide a mechanism for this that would cover more use cases. The necessary control over the layout cannot be covered by T194046: Introduce SlotRoleHandler and SlotRoleRegistry for declaring slot roles. but would probably need something like T209924: Specify PageTypeHandler.
Please clarify: per the task description, one could assume that the desired order of things on a file description page would become:
[File]
[MediaInfo]
[Wikitext]
[File history]
[Usage]
[Exif]
Buf if I understand correctly, the desired layout is actually
[File]
[MediaInfo captions]
[Wikitext]
[MediaInfo statements]
[File history]
[Usage]
[Exif]
This is a very important distinction, since the former is possible with SlotRoleHandler, but the latter is not!
Change 475316 had a related patch set uploaded (by Cparle; owner: Cparle):
[mediawiki/extensions/WikibaseMediaInfo@master] Work in progress
We did a local hack in WBMI to make this happen. Eventually the former sub-tasks will be fixed, at which point we should migrate to the proper fix.
Change 475316 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Display captions block immediately after the file links, before the wikitext content
Will be fully fixed with https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikibaseMediaInfo/+/477613