Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21ec0b3da6a3337

Jump to content

Template talk:Choropleth map

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Map)
Latest comment: 10 days ago by Sakkura in topic Crimea included as Russian territory

Dab issue

[edit]

Hi @Sophivorus:: looks like this map causes links to disambiguation pages, as many of the two character country codes do not link to the proper country: e.g. Canada is linked as "CA" and Brazil is linked as BR, which are disambiguation pages. I noticed this initially on Freedom of Thought Report but it appears this same behavior occurs with World Snooker Tour. And I also see this "issue" on the sample "ISO codes and color alias" section. Natg 19 (talk) 23:03, 4 May 2026 (UTC)Reply

@Natg 19 Hi! I just fixed the ISO code issue, check it out. The timeout issue seems to have fixed itself with the latest changes, but it may return in the future, so I'll keep an eye on it. Thanks for the report! Sophivorus (talk) 13:20, 5 May 2026 (UTC)Reply
Thanks! Looks like the ISO linking issue is resolved. I still see errors on the Freedom of Thought Report article which seems to be an issue with "too many" maps. Natg 19 (talk) 16:54, 5 May 2026 (UTC)Reply
@Sophivorus: Natg 19 (talk) 18:59, 12 May 2026 (UTC)Reply
@Natg 19 The issue on Freedom of Thought Report is a performance issue. The module takes too long to process those 5 heavy maps and times out. These last few days I made several changes to the module and a few significant performance improvements, but apparently they were not enough. There's always a limit as to how fast a module can be made, but perhaps we're not there yet, as performance is not really my strong point. @Aidan9382 Perhaps you could take a look at Module:ChoroplethMap? I've seen you do wonders on Module:Excerpt before. :-) Sophivorus (talk) 21:46, 12 May 2026 (UTC)Reply
I've had a bit of a tamper with it, and while the code itself might have some minor improvements, the issue is that, for whatever reason, the ending extensionTag call to make the mapframe is taking up probably about 98% of the script's runtime. So unfortunately, the only solutions I really see are A) improving the Kartographer extension when specifying a lot of data (which is coded in a mix of PHP and JS, so that's out of my scope), or B) somehow finding a way to make the json used more efficient (or just show less information). Aidan9382 (talk) 06:43, 13 May 2026 (UTC)Reply
@Aidan9382 Thanks! @Natg 19 For what's worth, I just did some performance improvements to the code (diff). I then visited Freedom of Thought Report and the issue persisted. However, after some minutes I visited again and the 5 maps generated successfully. But then I purged the page and only 4 generated successfully. So I think the success rate depends on how busy the Wikimedia tile servers are at the moment of generating the maps. So it's unreliable. Unfortunately the only thing I can recommend at this point is to reduce the number of dynamic maps on that article. Sorry. Perhaps you can consider opening the last 4 maps, capturing screenshots and uploading them to Commons...? :'-) Sophivorus (talk) 14:01, 13 May 2026 (UTC)Reply
@Sophivorus: @Aidan9382:: Despite the above discussion, maps that use the ISO code "ID" are still linking to the disambiguation page ID, not to Indonesia. --R'n'B (call me Russ) 17:55, 10 June 2026 (UTC)Reply
@R'n'B Hi! Apologies for the delay. I looked into it and indeed it seems there was a problem with Indonesia in particular, that I just fixed. Do let me know if you notice anything else. Thanks! Sophivorus (talk) 12:54, 23 June 2026 (UTC)Reply

"Template:Map" listed at Redirects for discussion

[edit]

The redirect Template:Map has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2026 July 5 § Template:Map until a consensus is reached. Jonesey95 (talk) 15:11, 5 July 2026 (UTC)Reply

Crimea included as Russian territory

[edit]

The maps generated by this template include Crimea as Russian territory. That runs counter to consensus established eg. here. Can this be fixed in a timely manner, or should usage of this template be disallowed for maps including Russia (and presumably Ukraine)? Sakkura (talk) 14:38, 17 July 2026 (UTC)Reply