How does MediaWiki decide when to show the mw_metadata table in file description pages? The imageinfo API lists 3 different metadata types: metadata, commonmetadata and extmetadata. While commons:File:Gaivota - PortosÃn-5.jpg https://commons.wikimedia.org/wiki/File:Gaivota_-_Portos%EDn-5.jpg displays the EXIF info, commons:File:Chess klt45.svg https://commons.wikimedia.org/wiki/File:Chess_klt45.svg does not. However, the imageinfo query for the latter https://commons.wikimedia.org/w/api.php?action=query&format=jsonfm&titles=File:Chess+klt45.svg&prop=imageinfo&iiprop=metadata shows width and height. Are they just ignored by MediaWiki when rendering the final HTML?
I am trying to replace an old function in pywikibot that searches for "mw_metadata".