24,527
ARTICLES
ON THIS WIKI
ON THIS WIKI
Module talk:Grid/Layer
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.
Twitter Feed
Warning: file_get_contents(/srv/common/): failed to open stream: No such file or directory in /var/www/html/skins/MMWiki/SkinMMWiki.php on line 392
Discussion
To discuss the topics on this wiki, you can visit our community forums!