Template talk:Overlay

Latest comment: 6 months ago by OlliverWithDoubleL in topic A bug on mobile dark mode

To do list

  • Finish debugging
    • Still debugging - trace will show Peet Ern (talk) 13:27, 4 November 2008 (UTC)
    • Still debugging - trace removed though Peet Ern (talk) 10:49, 5 November 2008 (UTC)
      • version is stable and apart from leaking overlays in top right corner (!!)), it is "working" (where they are coming from is a bit of mystery at the moment).  Done Peet Ern (talk) 12:11, 7 November 2008 (UTC)
        • not really a mystery after all - bl@#$%y obvious actually.
      • however, for some reason the parser seems to be behaving irratically for low numbers of overlays, for example less than 6 !?
    • when no legend box table is going to maximum (frame) width, instead of minimum image width - easily worked around by just having legend boxes, which is the default anyway
  • Increase to 50 - requires work on {{colevel}} first Commenced Peet Ern (talk) 01:58, 16 January 2009 (UTC)
  • provide float options  Done Peet Ern (talk) 11:56, 14 November 2008 (UTC)
  • provide more colours In progress Peet Ern (talk) 12:56, 13 November 2008 (UTC)
  • provide no overlay option, that is image and legend only  Done Peet Ern (talk) 11:56, 14 November 2008 (UTC)
  • provide no image option, that is legend only  Done Peet Ern (talk) 11:56, 14 November 2008 (UTC)
  • make outer border optional  Done Peet Ern (talk) 13:00, 15 November 2008 (UTC)
  • allow references on overlay legend text

Bugs

  • pop up tip no longer (if it ever did) works on linked overlay images on pointer dvice overs

Overlay on Commons

Fantastic work on the template! Excellent stuff. However, there is already a template on Wikimedia Commons with the name "overlay", which is used for overlaying images on Google Earth. Is there a way the name of this template could be altered so that we could port it for use on Commons also? For example, I really like what you've done with my Brisbane River image, and would like to include the overlay on that image's info page. Any suggestions? Cheers - Gobeirne (talk) 19:57, 11 January 2009 (UTC)

Many thanks for the feedback!
Does the name have to be the same in both Wikipedia and Commons? Could it be called, for example, Overlay legend, or Legend overlay? (I note that Legend is already taken.) I have put in the redirects here in Wikipedia, just now.
If you want me to do the port, then it might be a 2 to 4 months before I get to it. I am just not getting much wikitime at the moment. Note that {{colevel}} and its subpages will also need to be ported.
Note that I intend to up the number of legend overlays available from 30 to 50, and add more to Brisbane, see Talk:Brisbane#Locations of facilities and features, but when I will get do this I do not really know.
Peet Ern (talk) 05:26, 13 January 2009 (UTC)
I have started to move it to Commons as Overlay legend. Peet Ern (talk) 01:29, 14 January 2009 (UTC)  Done Peet Ern (talk) 03:29, 15 January 2009 (UTC)
  • Great work! This template is incredibly useful and will most likely explode in popularity and usage really soon. Once again, many thanks for all your hard work!! - Gobeirne (talk) 06:23, 16 January 2009 (UTC)

margin

A regular image has a margin between it and article text. I don't know this template well enough to edit it, but it would be nice if it had a margin-defined space around it. See Rorschach test for an example of how the article text butts up against the overlay template. — Reinyday, —Preceding undated comment added 18:25, August 24, 2009‎

Can we please have this. See GNOME for another example. --85.76.42.69 (talk) 13:00, 13 June 2014 (UTC)

fixed. Frietjes (talk) 14:18, 7 October 2016 (UTC)

Full minimal skeleton

The full minimal skeleton is not full (at least not anymore). Without "legend1start =", the template generates an error: "Template:Colevel/item set: No items or first or last item out of bounds". Vincent Lextrait (talk) 14:23, 30 December 2012 (UTC)

Is this now working OK? I would guess that it is related to one of the errors and fixes referred to in the section below. — Richardguk (talk) 04:59, 31 December 2012 (UTC)
Yes, it is now working fine, I have removed the now unnecessary line in the article I was trying to fix. Thanks. Vincent Lextrait (talk) 14:06, 31 December 2012 (UTC)

Bug in legend display

The legends do not display correctly anymore, the number "10" appears everywhere. Vincent Lextrait (talk) 14:30, 30 December 2012 (UTC)

Thanks to whoever fixed it! Vincent Lextrait (talk) 03:08, 31 December 2012 (UTC)
This was caused by recent errors in the subtemplates {{Colevel/process item}}, {{Colevel/display item}} and {{Colevel/find first}}; discussed at Wikipedia:Village pump (technical): #Template:Overlay and #Template event list. Hopefully everything is now working as expected. — Richardguk (talk) 04:57, 31 December 2012 (UTC)

White on yellow

I am unable to read the white-on-yellow labels. (It is possible that this might be due to my display settings.) The labels are used on an image in the article "Dota 2", which is currently at FAC.

Can the white-on-yellow text be changed to another colour, perhaps grey or black on yellow? Thanks. Axl ¤ [Talk] 11:06, 26 June 2014 (UTC)

I second this. DARTHBOTTO talkcont 18:02, 26 June 2014 (UTC)
fixed. Frietjes (talk) 14:09, 7 October 2016 (UTC)

A bug on mobile dark mode

There is an unfortunate bug on the wikipedia mobile app. Here's what's happening: if one uses dark mode on the mobile app, the number overlays show up as ugly black rectangles superimposed over the background image, because their empty space is rendered as black instead of transparent. I believe this is because dark mode renders images' empty space as black by default, in order to fit in with the black background of the page (although why it doesn't just render them as transparent is beyond me, but then again that might not be what's happening). Is there any way to force transparency of the labels' empty space?

I used this template to add numbering to the chemical structure diagrams on Asymmetric carbon, look at that page on mobile dark mode to see the issue. OlliverWithDoubleL (talk) 19:46, 26 October 2023 (UTC)