Page MenuHomePhabricator

Permit wikitext in captions
Open, LowPublic

Description

Per a couple of discussions on enwiki, there is some demand for MediaViewer to support wikitext in the captions that appear on MMV (e.g. ''MMV'' test rendering as "MMV test", not as "MMV test").

I'm taking a look at how this might be doable myself now, although looking into it more closely, it may require a modification to be made to core before it can be implemented in the extension (specifically, to add the ThumbnailImage object to the onImageBeforeProduceHTML hook, or to add another hook post-ThumbnailImage generation) - but if need be, I can fiddle about with that.

Event Timeline

Currently held up by issues with parsing links out of LinkHolders and into actual HTML links in the generated data attributes for the captions - see T236810#6261511.

@Naypta: Hi! This task has been assigned to you a while ago. Could you maybe share an update? Do you still plan to work on this task, or do you need any help?
If this is currently not possible to fix at all and T236810 must be fixed first, this task T256528 should probably depend on T236810 (via "Edit Related Tasks... > Edit Subtasks) and have the task status changed to stalled?

@Naypta: I am resetting the assignee of this task because there has not been progress lately (please correct me if I am wrong!). Resetting the assignee avoids the impression that somebody is already working on this task. It also allows others to potentially work towards fixing this task. Please claim this task again when you plan to work on it (via Add Action...Assign / Claim in the dropdown menu) - it would be welcome. Thanks for your understanding!

Aklapper triaged this task as Low priority.Jul 14 2022, 9:51 AM