When a Wikidata item's image (P18) is an SVG file, the thumbnail on the search result card does not load. The thumbnail URL is missing the .png suffix that Commons needs for SVG thumbnails.
Steps to reproduce:
- Open Special:NewArticle.
- Search for "Lawrencium".
- Look at the thumbnail on the result card.
Expected: The card shows the lawrencium image.
Actual: The image does not load.
Technical notes
The code builds …/60px-Lawrencium.svg (HTTP 400) instead of …/60px-Lawrencium.svg.png (HTTP 200). The bug is in utils/commonsThumb.js and WikidataInfoFetcher::getCommonsImageUrl().
Acceptance criteria
- SVG images show correctly as thumbnails on Special:NewArticle.
