If I compare the html from
https://fr.wikipedia.org/wiki/Lyon
and
https://fr.wikipedia.org/w/api.php?action=visualeditor&format=json&paction=parse&page=Lyon&oldid=136092841
There are differences.
For example, look for the file Metropole_of_Lyon_map-locator-blank-2015.svg and it's surrounding HTML.
The difference in my example make the GeoBox_Init() from common.js to fail in the version from the api.