Module talk:Location map
![]() | Module:Location map is permanently protected from editing because it is a heavily used or highly visible module. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit.
|
This is the talk page for discussing improvements to the Location map module. |
|
Archives: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11Auto-archiving period: 365 days ![]() |
![]() | This module does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||
|
![]() | To help centralise discussions and keep related topics together, several talk pages redirect here. |
![]() | Text and/or other creative content from this version of Template:Location map/Creating a new map definition was copied or moved into Template:Location map data documentation/doc with this edit on 15 February 2024. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. |
Related pages |
---|
Error in Myanmar map
[edit]In Module:Location map/data/Myanmar the two maps there have different coordinates. The File:Myanmar relief location map.jpg mentioned in its description is 92-102 E. So if this file is shown, the coordinate marked is shifted left/right from the place it should be. I think the File:Myanmar adm location map.svg should be changed to File:Myanmar location map.svg and the coordinate should be adjusted accordingly. Not sure what would break if the map range is shrunk. --Lerdsuwa (talk) 02:18, 21 March 2022 (UTC)
- I noticed the same thing. For instance Nat Ma Taung does not show up in the correct location. Can someone with the proper editing privileges and more technical know-how please fix this error? 69.130.10.175 (talk) 23:45, 8 February 2023 (UTC)
Done — Mugtheboss (talk) 22:57, 15 September 2023 (UTC)
A new idea to insert outer title in this template
[edit]Seen from Washington (state) I just got an idea to place an outer title for this template, which requires an optional parameter |title=
. Once this parameter is used, the title is placed at the top of <div class="thumbinner">
element, and centered in there. (see this screenshot)
Who can reproduce? -- Great Brightstar (talk) 07:33, 25 May 2023 (UTC)
How to show multiple maps
[edit]Does anybody know how to show multiple maps that can be selected as in the Jakarta article. Looking at the WML, there is no mention of the filenames used - just some strange hashtags. I tried searching on help, but as is well known, the pathetic inadequacies of that function mean it's almost impossible to find even simple information. Any help, or a pointer to the concealed help page, would be much appreciated. Thanks. Davidelit (Talk) 04:17, 22 July 2023 (UTC)
- Under the "pushpin_map" argument present in most geographical infoboxes, you can utilise multiple maps by listing the names of said maps in ascending order, separating each with a hashtag. E.G. "Indonesia Java#Indonesia#Southeast Asia". You can find the names of the specific maps you would like to use by looking at the modules of said maps; the name is shown near the top of the module documentation.
- Hope this helps. — Mugtheboss (talk) 22:15, 15 September 2023 (UTC)
- As an extension to this, going through Category:Location map modules by country is likely to be helpful towards your efforts in finding the modules you would like to use. — Mugtheboss (talk) 22:27, 15 September 2023 (UTC)
Not centred on mobile
[edit]On mobile the image follows the float parameter. On narrow screens such as phones, this results in the article's text flowing to the side in a very narrow and hard to read column. In contrast, ordinary images generally are centred, and don't float, unless the screen is wide enough to justify floating. Hairy Dude (talk) 22:50, 3 September 2023 (UTC)
Pyongyang Map
[edit]Hey, I see there's a Module:Location map/data/North Korea, but it'd be nice to have one for Pyongyang more specifically. Similar to Module:Location map/data/South Korea Seoul.
Could anyone create this? Would be much appreciated; I'd make really good mileage out of it by making a bunch of infoboxes for pages with it. toobigtokale (talk) 09:46, 26 September 2023 (UTC)
image2, image3…
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change: see below
Diff: Special:Diff/1177292789
Ponor (talk) 12:51, 23 October 2023 (UTC)
Module:Location map/data/Zimbabwe has three maps in its definition file, but only image and image1 can be used with the help of |relief=
: no value means image will be used, any value gives image1. If one wants to use image2, the full file name has to be given to |AlternativeMap=
. However, |relief=2
could mean image2, and I think that's what many would expect. I'm proposing this little change Special:Diff/1177292789, which would leave everything as it is now, except when |relief=2…99
. @TheDJ, Legoktm, Elli, and Frietjes: I'm pinging you as the last four contributors, not sure how much this page is watched.
no relief par |
relief= |
relief=yeah |
relief=1 |
relief=2 |
The same thing tested at test.wiki from {{Location map}} template is here testwiki:User:Ponor/sandbox/Location map Ponor (talk) 02:43, 27 September 2023 (UTC)
- This seems like a reasonable change at first glance but I don't actively maintain this module (and didn't write this) so I'll hold off on implementing for a bit to see if anyone else comments. Elli (talk | contribs) 05:03, 27 September 2023 (UTC)
Leaving a note here that Location map many, Location map+ and their modules need no changes in order for this to work (images from Module:Location map/data/Africa):
Ponor (talk) 16:21, 30 September 2023 (UTC)
Bug when displaying several places? Cannot click
[edit]Hello, is this a bug?
In map 1, clicking on "Recanati" works fine, both on the name and on the red marker.
In map 2, it's impossible to click on "Recanati". I noticed that if I delete the "Siena" place, it kinda starts working but still a little buggy. There seems to be some kind of interaction that I fail to understand. In this map it happens with other places too, such as Milan.
I noticed it happens frequently on other different maps. Is this a general problem of Location map? Or is it specific to some maps? Can anybody help or provide some insight? Thanks in advance
Gor1995 (talk) 14:23, 2 October 2023 (UTC)
I used a little trick on your second map to show you what label_width of 50 means: Livorno and Siena boxes are completely covering Recanati. For most of those labels 6 would suffice, as shown of your first map. Ponor (talk) 00:31, 3 October 2023 (UTC)
- Huh, I just realized I had no idea how the label_width parameter worked :/
- Thanks so much for your help!! You're very kind Gor1995 (talk) 07:59, 3 October 2023 (UTC)
Two suggestions: default map image linking and VDE links
[edit]First I'd like to suggest including some version of {{navbar}} on each location map template (pointing to that map instead of Location map+ itself). I was experimenting with adding it on {{Oceans and seas in Southeast Asia}} and found it to be helpful and unintrusive with the right formatting parameters, but didn't save the edit because I thought it would be better to have this be standardised between all of the location maps using this template. This could have parameters to turn it off or to override whatever default formatting of navbar we picked so that the user could still format the final result as if inserting that template on the caption manually.
Secondly: We can turn off linking to the default background image with the maplink= parameter on Location map+. However, the vast majority of uses of this template on the wiki have links, and the background image link is very easy to click on by accident. Many, many of these templates are almost unusable because of their tiny links next to a clickable background. Even the example map on the template documentation suffers from a clickable background instead of maplink= despite being full of links. Proposing that the current behavior of maplink= is made the default for that template, and for some other parameter value to produce the current default. YuriNikolai (talk) 19:36, 7 October 2023 (UTC)
Markers
[edit]Whats configuration to put more than 1 marker, for example 10 markers in same map. Joaosilva2000 (talk) 08:11, 12 October 2023 (UTC)
- Joaosilva2000, see Template:Location map many or Template:Location map~. Frietjes (talk) 20:03, 12 October 2023 (UTC)
- The Template:Location map many its like plural version of Template:Location map right? Joaosilva2000 (talk) 03:29, 14 October 2023 (UTC)
Template contains script error
[edit]The resecently add line
local digits = mw.ustring.match(args.relief,'^[1-9][0-9]?$') or '1' -- image1 to image99
is throwing a script error because args.relief is a boolean not a string. Phatom87 (talk • contribs) 00:16, 31 October 2023 (UTC)
- Example? Frame arguments should always be strings, even if the module interprets them as booleans. I'm sure if my code were really broken it would have taken less than a month for someone to notice. * Pppery * it has begun... 00:50, 31 October 2023 (UTC)
- The documentation explains that
|relief=
takes any non-blank value and has special behavior when the value is a number like "2" or "3". Phatom87: A link to a page where something is broken is always helpful when reporting a problem. – Jonesey95 (talk) 17:47, 31 October 2023 (UTC)- Didn't realize this was sourced to multiple pages anyway Template:Russo-Ukrainian_War_detailed_relief_map is the problem page, Phatom87 (talk • contribs) 00:33, 4 November 2023 (UTC)
- Yeah, that module is doing something strange. I've fixed it. * Pppery * it has begun... 00:36, 4 November 2023 (UTC)
- Didn't realize this was sourced to multiple pages anyway Template:Russo-Ukrainian_War_detailed_relief_map is the problem page, Phatom87 (talk • contribs) 00:33, 4 November 2023 (UTC)
- The documentation explains that
Three-state caption parameter
[edit]The module has different outputs depending on whether |caption=
has a value, is empty, or absent from the call of {{Location map}}. It also messes up with the border. Can't say I understand why such a design decision was made, instead of using specific params that do only and exactly what they're supposed to. Anyway... I am here to ask what to do when {{Location map}} is used in a template, an infobox, which has a variable/parameter {{{pushpin_map_caption}}}
. What would you use in the templates code so that {{{pushpin_map_caption}}}
translates into what |caption=
does: when {{{pushpin_map_caption}}}
has value or is empty, use that value; but when {{{pushpin_map_caption}}}
is absent from the template call in an article, make the module see it as nonexistent and provide the default caption. In other words, I need a replacement for |caption = {{{pushpin_map_caption|}}}}
in the template code that will make |caption=
disappear from the call of {{Location map}} in the infobox code when {{{pushpin_map_caption}}}
is absent from the call to the infobox in the article. Thanks! Ponor (talk) 14:01, 23 November 2023 (UTC)
Possible problem with Eurasia map
[edit]Please see this version of my sandbox for an illustration of a problem with locating Tehran on the map of Eurasia. The dot is located somewhere west of Egypt but should be considerably northeast of there, at the south end of the Caspian Sea. This problem is happening in the infobox at Tehran as well. The coordinates appear to be correct. The other three maps in that infobox display the dot correctly. – Jonesey95 (talk) 15:35, 6 December 2023 (UTC)
- This map appears to be broken at Kuwait International Airport as well. I suspect a problem with the relatively new, undocumented Module:Location map/data/Eurasia, created by पाटलिपुत्र. – Jonesey95 (talk) 15:38, 6 December 2023 (UTC)
- @Jonesey95:Yes, it wasn't calibrated. Should be better now. Please advise if there are issues. पाटलिपुत्र (Pataliputra) (talk) 15:53, 6 December 2023 (UTC)
- That looks much better. Thanks for the quick fix. – Jonesey95 (talk) 16:48, 6 December 2023 (UTC)
- @Jonesey95:Yes, it wasn't calibrated. Should be better now. Please advise if there are issues. पाटलिपुत्र (Pataliputra) (talk) 15:53, 6 December 2023 (UTC)
Edit request 31 December 2023
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
![](http://up.wiki.x.io/wikipedia/commons/thumb/a/a7/Location_map_pin_background_fix.png/220px-Location_map_pin_background_fix.png)
Currently, an unsightly black box appears behind the red dot of the location map on the Android app whenever the map is inside of an infobox (such as in Plymouth Rock). This is because of styles specific to the mw:Page Content Service (PCS), which serves our content on the apps. Specifically, the <div>
tags which wrap the dot inherit the background color from elements up in the tree, which happens to have their backgrounds set to dark/black when the reader requests it and when an infobox wraps the location map. There's a very obscurely-placed way to disable this (phab:T236137) that's officially supported, which is adding the "notheme" class to any element that shouldn't be styled by PCS. By adding the class to the outer div (div with class od
), it suppresses the background color from being set to it and its children divs (which explicitly inherits the infobox's cell background color by default).
This change is visible only for the app view on dark/black mode. You will have to open Special:PermanentLink/1192790784 on the Wikipedia apps with dark/black mode enabled or view the Mobile HTML directly in your browser (preview) to see the difference.
Diff: (active in the sandbox, diff)
Old | New |
---|---|
:addClass('od')
:cssText('top:' .. round(y, 3) .. '%;left:' .. round(x, 3) .. '%')
|
:addClass('od')
:addClass('notheme') -- T236137
:cssText('top:' .. round(y, 3) .. '%;left:' .. round(x, 3) .. '%')
|
Chlod (say hi!) 10:50, 31 December 2023 (UTC)
- @Chlod:
Done, good job! Est. 2021 (talk · contribs) 15:37, 31 December 2023 (UTC)
- Thank you! Hope you have a happy 2024, Est. 2021! :D Chlod (say hi!) 15:47, 31 December 2023 (UTC)
"Show both" instead of "Show all" when there's two maps
[edit]I think it would be a nice detail and more grammatically correct when there's two maps that can be flipped between, instead of an option that says "Show all" it should say "Show both". Akeosnhaoe (talk) 08:50, 24 January 2024 (UTC)
- @User:Akeosnhaoe I have been termed "Grammar police" (a label I do NOT disdain), as well as "Grammar ... (something beginning with N)." My thought on this is, why unnecessarily complicate things for a nicety of usage? Uporządnicki (talk) 22:24, 18 February 2024 (UTC)
- By the way, "... when there's two maps." That is to say, "... when there IS two maps." Last time I checked, there ISN'T two of anything in the world or out of it. Uporządnicki (talk) 22:29, 18 February 2024 (UTC)
- I will not engage with you. Akeosnhaoe (talk) 23:36, 18 February 2024 (UTC)
- By the way, "... when there's two maps." That is to say, "... when there IS two maps." Last time I checked, there ISN'T two of anything in the world or out of it. Uporządnicki (talk) 22:29, 18 February 2024 (UTC)
Aligning caption parameter center
[edit]Can the caption parameter be aligned center? See example. Qwerty284651 (talk) 13:19, 10 February 2024 (UTC)
- Yes. – Jonesey95 (talk) 17:30, 11 February 2024 (UTC)
- That simple, huh? I went to
<div style="text-align:center"> map code </div>
lengths and all it took was a little {{center}}. Funny how the simplest solutions are the hardest to find. Qwerty284651 (talk) 18:59, 11 February 2024 (UTC)
- That simple, huh? I went to
Center aligned label?
[edit]Hi, I've searched the talk page archives for this, but I couldn't find a solution. Is it possible to place a label exactly over the point where the mark would be? I'm trying to make a label map of Afghan provinces here on my sandbox, but it seems that the label will always be off-center, even if you move the "positon" parameter to "top" or "bottom". It would be useful if "center" were an option for this parameter. I'm trying to see if location maps could be used to make something like image-label maps such as at Template:Bulgaria Provinces, which would be much easier considering it uses coordinates instead of pixels of the image. — RAGentry (talk) (contributions) 22:17, 18 February 2024 (UTC)
- @RAGentry: Sadly there doesn't seem to be a convenient way to do this currently. I guess until that "center" option is implemented, the best workaround would be to add/subtract a standard latitude from the position. If you were working with modules, such action could be automated as in Module:Russo-Ukrainian War detailed map (oblasts). Alexis Coutinho (talk) [ping me] 17:56, 27 April 2024 (UTC)
Apparent location mismatch with Google Maps
[edit]I'm probably doing something stupid here, but I don't see it. Can someone please rub my nose in it? See this v. the map below.
Wtmitchell (talk) (earlier Boracay Bill) 04:29, 30 March 2024 (UTC)
- @Wtmitchell: Google shows you the right location because you're searching by name, but the coords are more like 18.62 and -88.15 (pin dropped near the location in Google maps). Ponor (talk) 09:58, 30 March 2024 (UTC)
- Thanks. Some fiddling there got me this; I couldn't find its lat/lon location in any google search results. Cheers. Wtmitchell (talk) (earlier Boracay Bill) 22:26, 30 March 2024 (UTC)
Caps fix
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can someone please make a change so the text displayed is "Location map", not "Location Map"?
Thanks. HandsomeFella (talk) 21:24, 8 April 2024 (UTC)
- To editor HandsomeFella: please show an example of where you see "Map" with "M" in uppercase styling. P.I. Ellsworth , ed. put'er there 15:37, 10 April 2024 (UTC)
- I am deactivating this request until there is a clear change request. The phrase "Location Map" does not appear in the module's code. – Jonesey95 (talk) 21:30, 10 April 2024 (UTC)
- Found the place: 2024 Masters Tournament. HandsomeFella (talk) 11:22, 15 April 2024 (UTC)
- Fixed here. Ponor (talk) 11:36, 15 April 2024 (UTC)
- Thanks. HandsomeFella (talk) 12:59, 15 April 2024 (UTC)
- Fixed here. Ponor (talk) 11:36, 15 April 2024 (UTC)
Edit request 27 April 2024
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I found a subtle bug in the way the markers/labels are created. If a marker has a link, the anchor tag seems to inherit the font size from the user skin, not from the label_size. This is problematic for small markers, especially clustered ones. The anchor tag bounding box may be taller than the marker and label themselves, thus it may obstruct other marker/label links behind it. You can compare the difference between these 2 map versions: without fix vs fixed. Look for the Orlivka red marker which is vertically sandwiched by two villages. They are NW of Avdiivka which is NW of Donetsk. In the old version, the Orlivka marker link is barely clickable as Tonenke and Semenivka obstruct it. In the new version, the anchor follows the marker shape.
The proposed fix is written in the sandbox. It simply moves the css font-size definition from the label div to the outer div which also includes the marker div. Perhaps the only downside would be if the label_size was much bigger than the marksize, causing even more obstruction. Maybe forcing the font-size of the marker to be very small could help? What do you think? Alexis Coutinho (talk) [ping me] 06:43, 27 April 2024 (UTC)
Is it currently possible to prevent markers from showing over the caption?
[edit]If one recycles markers from a larger map into a more localized map, some markers may appear all over the caption, i.e. Template:Russo-Ukrainian War detailed map (oblasts). Alexis Coutinho (talk) [ping me] 18:04, 27 April 2024 (UTC)
Edit request 27 April 2024
[edit]![]() | This edit request to Module:Location map/multi has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I've made another bugfix, but this time for Module:Location map/multi. The problem was pretty simple: when using the load
function for multi map templates, the radio buttons wouldn't show up despite the individual maps being correctly wrapped in <div class="switcher-container">
. This was because the autoSwitcherLabel
option was being set on args
, which isn't passed to locmap.bottom
(dataModule.containerArgs
is instead). Effectively, it wasn't being read. If containerArgs
wasn't read-only, then the new flag could be set directly. Therefore, I believe the neatest way to pass this flag to locmap.bottom
is to make a shallow copy of containerArgs
, modify it, and then pass it instead. Alexis Coutinho (talk) [ping me] 23:27, 27 April 2024 (UTC)
Done * Pppery * it has begun... 00:15, 30 April 2024 (UTC)
- @Pppery: The change you made [1] includes the base Location map sandbox suffix require 😅. Alexis Coutinho (talk) [ping me] 01:21, 30 April 2024 (UTC)
- Fixed. Sorry, I really should know better given I'm the guy systematically removing inappropriate sandbox uses. * Pppery * it has begun... 01:23, 30 April 2024 (UTC)
- @Pppery: The change you made [1] includes the base Location map sandbox suffix require 😅. Alexis Coutinho (talk) [ping me] 01:21, 30 April 2024 (UTC)
Linter errors with span
[edit]@Jonesey95: In your recent revert in the sandbox, do you mean if a user passes a label like this: label=<div style="color:green">New York</div>
(when using module syntax)? Alexis Coutinho (talk) 16:23, 20 May 2024 (UTC)
- Yes. A span tag cannot wrap a div tag. Many real-world examples appear in these search results. – Jonesey95 (talk) 20:23, 20 May 2024 (UTC)
Map label background bug in dark mode
[edit]The map labels in dark mode have a black background and black text. The background should either be transparent on maps where the label text colour has sufficient contrast with the background or white so the black text has sufficient contrast. Here are three examples from Moulins, Allier, and Con Mine.
![](http://up.wiki.x.io/wikipedia/commons/thumb/4/42/Con_Min_map_label_bug.png/220px-Con_Min_map_label_bug.png)
![](http://up.wiki.x.io/wikipedia/commons/thumb/3/30/Con_mine_screenshot.png/220px-Con_mine_screenshot.png)
![](http://up.wiki.x.io/wikipedia/commons/thumb/c/cb/Screen_shot_of_moulins%2C_allier_wiki_page_in_dark_mode.png/220px-Screen_shot_of_moulins%2C_allier_wiki_page_in_dark_mode.png)
JScherer-WMF (talk) 21:18, 29 May 2024 (UTC)
- In case this helps debugging: I noticed that the maps in Grand Canyon use the same template but do not have the bug. JScherer-WMF (talk) 16:55, 30 May 2024 (UTC)
- Hey @JScherer-WMF this should be fixed now with the recent additions to Module:Location_map/styles.css. 🐸 Jdlrobson (talk) 04:35, 31 May 2024 (UTC)
- I think these changes got broken again. See Caen Kabelsalat22 (talk) 19:23, 13 June 2024 (UTC)
- Hey @JScherer-WMF this should be fixed now with the recent additions to Module:Location_map/styles.css. 🐸 Jdlrobson (talk) 04:35, 31 May 2024 (UTC)
Still not showing up
[edit]Hi! I tried using a map with like 27 locations on it, I followed it and it's still not showing up! help me! 45BearsFan (talk) 03:43, 28 June 2024 (UTC)
- @45BearsFan there was a
}}
missing at the end of your call to {{Location map+}}. Ponor (talk) 13:00, 28 June 2024 (UTC)- Now that I got the easy part out of the way. The dots aren't showing up in their places. 45BearsFan (talk) 14:13, 28 June 2024 (UTC)
- Special:Permalink/1231480913 Ponor (talk) 14:31, 28 June 2024 (UTC)
- Thank you so much!! 45BearsFan (talk) 14:36, 28 June 2024 (UTC)
- Special:Permalink/1231480913 Ponor (talk) 14:31, 28 June 2024 (UTC)
- Now that I got the easy part out of the way. The dots aren't showing up in their places. 45BearsFan (talk) 14:13, 28 June 2024 (UTC)
{{Location map~}} |background=
is sometimes ignored when |position=bottom
or |position=top
[edit]Example here in which the label background color is ignored for one element:
{{Location map~|France Paris and inner ring|lat=48.8737|long=2.2950|background = #ffcc7777|label=<div style="font-size:70%;">'''[[Arc de Triomphe]]'''<br />'''[[Place Charles de Gaulle]]'''</div>|position=top}}
In the above example, the color has partial alpha but that's irrelevant to the issue: I previewed |background=#ffcc77
and/or |position=bottom
with same problem; changing |position=left
or |position=right
work OK. likewise changing other elements' |position=
broke them.
jnestorius(talk) 20:26, 28 July 2024 (UTC)
- It's the
<div style="font-size:70%;">
. My workaround was to use {{resize}} instead, which is better practice anyway. The underlying issue may still be worth fixing, whenever. jnestorius(talk) 21:00, 28 July 2024 (UTC)
Buggy and unnecessary float
[edit]The |float=
is causing infobox problems at 2024_Wayanad_landslides, see MediaWiki_talk:Gadget-switcher.js#Interface-protected_edit_request_on_1_August_2024_fix_floating_radio_buttons.
According to the monthly parameter usage report, the |float=
had only 1 use, which I removed. Furthermore, do we even need the CSS float:right
when it's mostly in infoboxes, which are narrow? 142.113.140.146 (talk) 08:04, 1 August 2024 (UTC)
- So I tested on mobile and saw the display. It is unclear why the controls are to the left of the image. I haven't heard of any UI pattern like this layout. On mobile, we should be spacing things out on the page with plenty of padding, not trying to cram everything on one row. 142.113.140.146 (talk) 19:56, 1 August 2024 (UTC)
Urgent: Please fix this template for printed content Module:Location map/sandbox/styles.css.
[edit]Firstly, apologies for writing in English if this is not your first language (this is an automated message).
This template has been detected as one of 436 pages using styles that break the page when printed when the user is using dark mode. The fix is very straightforward - all your styles relating to dark mode must be scoped to. Since there is a high risk of this templates being copied to other wikis it is important this notice is acted on ASAP.
To fix this:
- Update `@media (prefers-color-scheme: dark` to `@media screen and (prefers-color-scheme: dark`
- Wrap any styles relating to `html.skin-theme-clientpref-night` in `@media screen`
If this message has not been acted on in 7 days, this will be fixed by an automated script. Thank you for your help fixing this important issue.
For any questions feel free to ask them at phab:T369874.
Jon (WMF) (talk) 18:22, 2 August 2024 (UTC) on behalf of the web team.
Urgent: Please fix this template for printed content Module:Location map/styles.css.
[edit]Firstly, apologies for writing in English if this is not your first language (this is an automated message).
This template has been detected as one of 436 pages using styles that break the page when printed when the user is using dark mode. The fix is very straightforward - all your styles relating to dark mode must be scoped to. Since there is a high risk of this templates being copied to other wikis it is important this notice is acted on ASAP.
To fix this:
- Update `@media (prefers-color-scheme: dark` to `@media screen and (prefers-color-scheme: dark`
- Wrap any styles relating to `html.skin-theme-clientpref-night` in `@media screen`
If this message has not been acted on in 7 days, this will be fixed by an automated script. Thank you for your help fixing this important issue.
For any questions feel free to ask them at phab:T369874.
Jon (WMF) (talk) 18:22, 2 August 2024 (UTC) on behalf of the web team.
- Done. Izno (talk) 22:09, 3 August 2024 (UTC)