geohack does not show OSM map in box any more depending on language parameter
see https://tools.wmflabs.org/geohack/geohack.php?pagename=File:Alpes-Maritimes_Saint-Martin-Vesubie_Lacs_Bessons_Chamois_-_panoramio.jpg¶ms=044.137057_N_0007.320785_E_globe:Earth_type:camera_source:Panoramio&language=de all the geohack links with language=de or language=it show coordinates at (0/0) and empty map I checked this from commons and for de:WP.
But language=en shows the right location. So it seems to be related to the language parameter. https://tools.wmflabs.org/geohack/geohack.php?pagename=File:Alpes-Maritimes_Saint-Martin-Vesubie_Lacs_Bessons_Chamois_-panoramio.jpg¶ms=044.137057_N_0007.320785_E_globe:Earth_type:camera_source:Panoramio&language=en, https://tools.wmflabs.org/geohack/geohack.php?pagename=File:Alpes-Maritimes_Saint-Martin-Vesubie_Lacs_Bessons_Chamois-_panoramio.jpg¶ms=044.137057_N_0007.320785_E_globe:Earth_type:camera_source:Panoramio)
Links to the native OSM link in the geohack page works correctly.
Comments (2)
-
-
repo owner - changed status to resolved
workaround for escaping issue; fixes issue
#7→ <<cset 249a6bcc4a52>>
- Log in to comment
Mediawiki is escaping { } characters in HTML attributes, which converts e.g. {londegint} into {londegint}. (See https://phabricator.wikimedia.org/T182325).
This will work around this issue:
https://bitbucket.org/PM_3/geohack/commits/249a6bcc4a52e35f69c90a2c0dea8e210e8d77c7?at=fix-escaping