Page MenuHomePhabricator

Map title not shown on fr.wp but local CSS code
Open, HighPublic

Description

https://fr.wikipedia.org/w/index.php?title=Fronti%C3%A8re_entre_l%27Inde_et_le_Pakistan&oldid=159781368#/map/0, at the bottom of the map view, is shown CSS rules to the user where would be excepted map title. I don't know if it's because of a bad syntax in wikicode, but I think that it shouldn't produce that result even in that case. I can't reproduce this on other pages.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 21 2019, 7:26 PM
Framawiki triaged this task as High priority.Jun 22 2019, 8:29 PM

Has been reproduced by another user, @Bastenbas, hence increasing the priority.

@Framawiki: Well, is only that one single image affected, or many files? Just because I can also reproduce it does not necessarily mean that it's high priority, otherwise every issue that two people see would suddenly be high priority. :)

The displayed CSS seems to come from https://fr.wikipedia.org/wiki/Modèle:Légende/styles.css

However when I go to https://fr.wikipedia.org/w/index.php?title=Fronti%C3%A8re_entre_l%27Inde_et_le_Pakistan&debug=true&oldid=159781368#/map/0 , I get no map displayed at all. I wonder if that is related. Or not. My browser's Developer Tools show

Error: "Invalid GeoJSON object."
    geometryToLayer https://fr.wikipedia.org/w/extensions/Kartographer/lib/external/mapbox/mapbox-lib.js?12d15:10574
    _initialize https://fr.wikipedia.org/w/extensions/Kartographer/lib/external/mapbox/mapbox-lib.js?12d15:13465
    setGeoJSON https://fr.wikipedia.org/w/extensions/Kartographer/lib/external/mapbox/mapbox-lib.js?12d15:13408
    initialize https://fr.wikipedia.org/w/extensions/Kartographer/lib/external/mapbox/mapbox-lib.js?12d15:13401
    NewClass https://fr.wikipedia.org/w/extensions/Kartographer/lib/external/mapbox/mapbox-lib.js?12d15:414
    featureLayer https://fr.wikipedia.org/w/extensions/Kartographer/lib/external/mapbox/mapbox-lib.js?12d15:13499
    addGeoJSONLayer https://fr.wikipedia.org/w/extensions/Kartographer/modules/box/Map.js?36be0:449
    addDataGroups https://fr.wikipedia.org/w/extensions/Kartographer/modules/box/Map.js?36be0:396
    each jQuery
    addDataGroups https://fr.wikipedia.org/w/extensions/Kartographer/modules/box/Map.js?36be0:387
Aklapper renamed this task from Map title not shown but CSS code to Map title not shown on fr.wp but local CSS code.Jun 23 2019, 8:09 AM