Page MenuHomePhabricator

Image caption check doesn't think templates count as captions
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

Example wikitext from that article:

[[File:Mercenary War manoeuvres.svg|left|thumb|upright=1.15|alt=A map showing the major movements of both sides during the Mercenary War|{{unbulleted list|Main manoeuvres during the Mercenary War.|The numeral "5" indicates the location of the Battle of the Bagradas River;|"6" is broadly indicative of the Carthaginian manoeuvres leading up to the Battle of the Saw;|"7" represents the Battle of the Saw, although the location is extremely approximate.}}]]

What happens?:

The image caption check says you should add a caption.

CleanShot 2026-02-25 at 11.03.30@2x.png (2,456×1,156 px, 627 KB)

What should have happened instead?:

It should have counted that template as being a caption and not shown.

Event Timeline

Change #1243903 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] ImageCaptionEditCheck: a block template in the caption counts

https://gerrit.wikimedia.org/r/1243903

Change #1243903 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] ImageCaptionEditCheck: a block template in the caption counts

https://gerrit.wikimedia.org/r/1243903