Module talk:Grid/Layer
From ATLauncher Wiki
I tried to add background image (grid) support. But it seems MW don’t allow data:
images, treating them as external. Have better ideas? --NumZero (talk) 00:35, 3 August 2016 (CEST)
- What we generally do in such case is attack some attribute fields to the tags you're working on and then dynamically inject the needed image using JavaScript. Though I am not sure that would/could work with an svg, as you are trying to achieve here. This si the way, we among other things handle the tooltips you see when hovering over items. The code for all of that, is defined in Mediawiki:Common.js, but you can also create JavaScript sandboxes in your userspace. ~~ RZR0 (Talk | Contributions) 10:25, 3 August 2016 (CEST)
- Grid works fine with my supporting JS code. One example is on my page, another is in the template documentation.
Actually, I think that is possible without JS support, for example image like File:Grid-Layer-Cell.png may be tiled instead—if that is really necessary. --NumZero (talk) 14:43, 3 August 2016 (CEST)- Yes that works too. I'll leave the choice up to you. Whichever you prefer, we'll go with. A small note on JavaScript, it has the upside that it moves some of the processing required away from the server to the client, as well as shortening the code of a page itself, which is always a plus. ~~ RZR0 (Talk | Contributions) 19:23, 3 August 2016 (CEST)
- Grid works fine with my supporting JS code. One example is on my page, another is in the template documentation.