Page MenuHomePhabricator

Map title not shown on fr.wp but local CSS code
Closed, DuplicatePublic

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.

523e20b5-df59-4f80-80ef-664c3fa3dc71.png (600×800 px, 431 KB)

Event Timeline

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

This is templatestyles being inserted into the "text=" attribute of <mapframe>

Pikne added a subscriber: Pikne.

This is templatestyles being inserted into the "text=" attribute of <mapframe>

Is this due to T228856?