Steps to replicate the issue (include links if applicable):
- Transclude the following snippet
[[File:Leonardo da Vinci - Self-Portrait - WGA12798.jpg|thumb|Sogenanntes [[File:Firma de Leonardo Da Vinci.svg|right|frameless|da Vincis Signatur]]]]
- Click on the signature to open in MMV
What happens?:
The caption is "Sogenanntes", which is the caption of the other image
What should have happened instead?:
The caption should have been "da Vincis Signatur", the alt of the signature image
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
This is because the findcaption logic doesn't realize that this image is inside a thumbcaption
Original report was https://de.wikipedia.org/w/index.php?title=Leonardo_da_Vinci&oldid=227253935