Difference between revisions of "User talk:Browncoat Jayson"

From UnderWiki
Jump to navigation Jump to search
Line 22: Line 22:
 
Or, if this wiki's dead, any idea if there are other UW:A wiki projects I should edit instead? [[User:DewiMorgan|DewiMorgan]] ([[User talk:DewiMorgan|talk]]) 21:17, 3 January 2019 (MST)
 
Or, if this wiki's dead, any idea if there are other UW:A wiki projects I should edit instead? [[User:DewiMorgan|DewiMorgan]] ([[User talk:DewiMorgan|talk]]) 21:17, 3 January 2019 (MST)
  
 +
:Responded directly to user. --[[User:Browncoat Jayson|Browncoat Jayson]] ([[User talk:Browncoat Jayson|talk]]) 12:25, 11 January 2019 (MST)
 +
 +
== Level maps? ==
 
For the level maps (which are still a couple steps down my list of pages I want to make: I still have a lot of work on the Magic page!), I think it would be super cool to have them highlight the same way as ingame on mouseover. However, the only way I can see to get imagemaps that highlight is using Javascript, as seen on https://davidlynch.org/projects/maphilight/docs/ -- there's no HTML+CSS way to style an imagemap area as they aren't in the DOM, or even a jigsaw of transparent PNGs as they get treated as rectangular. According to https://www.mediawiki.org/wiki/Adding_javascript_to_wiki_pages that's the right place to add it, but it's (for really good and obvious security reasons!) protected. This may not even be needed, though, as I might be able to make it work using just SVG and CSS (https://www.youtube.com/watch?v=2TM63ing6jY), though that means converting the maps to SVG... If SVG doesn't work, and I can find or write some super-simple and obviously non-malicious JS for imagemap area hover effects that will work with wiki templates, would you consider adding it to MediaWiki:Common.js? [[User:DewiMorgan|DewiMorgan]] ([[User talk:DewiMorgan|talk]]) 12:11, 11 January 2019 (MST)
 
For the level maps (which are still a couple steps down my list of pages I want to make: I still have a lot of work on the Magic page!), I think it would be super cool to have them highlight the same way as ingame on mouseover. However, the only way I can see to get imagemaps that highlight is using Javascript, as seen on https://davidlynch.org/projects/maphilight/docs/ -- there's no HTML+CSS way to style an imagemap area as they aren't in the DOM, or even a jigsaw of transparent PNGs as they get treated as rectangular. According to https://www.mediawiki.org/wiki/Adding_javascript_to_wiki_pages that's the right place to add it, but it's (for really good and obvious security reasons!) protected. This may not even be needed, though, as I might be able to make it work using just SVG and CSS (https://www.youtube.com/watch?v=2TM63ing6jY), though that means converting the maps to SVG... If SVG doesn't work, and I can find or write some super-simple and obviously non-malicious JS for imagemap area hover effects that will work with wiki templates, would you consider adding it to MediaWiki:Common.js? [[User:DewiMorgan|DewiMorgan]] ([[User talk:DewiMorgan|talk]]) 12:11, 11 January 2019 (MST)
 +
 +
:So there are a couple ways we can do this. Adding directly to the js files works, but its clunky as it loads for every page (not just the map pages). We could try putting the code into a Widget or Template, so that it only gets used on the pages where we want them. I do this when embedding YouTube videos, for example, using the [[:Widget:YouTube]].
 +
:I havn't played around much with imagemaps, but its one of the things I fully intend to do long term both here and on SotAwiki. I'll investigate this weekend and let you know if I find a simple way of doing this. --[[User:Browncoat Jayson|Browncoat Jayson]] ([[User talk:Browncoat Jayson|talk]]) 12:25, 11 January 2019 (MST)

Revision as of 12:25, 11 January 2019

User talk:Browncoat Jayson/Archive >

Flickr

Quotes

"We're comign, we're coming, into your swamp,
through the bull rushes we will take a romp.
We'll tramp on your dwellings and make such a mess,
because we are humans and we do that best!"
To the tune of "The Temperance Union"
-- Jeffrey Kesselman, Kickstarter Comments on 03/04/2015 at 12:50pm CT

I'd like to add a bunch of pages. What's the best approach?

Hiya - is this wiki still alive? If so, I've a few lists of things I'd like to add into it, partly from trawling the data files and partly from exploring the game (map areas, chest locations, memora locations and texts, items, runes, spells, graffiti locations and texts, characters, quests, etc).

I don't have enough on the vast majority of these things to make a whole page for each one, so pretty tables of data with links to pages where they exist makes the most sense to me. But you're the site maintainer, you're likely gonna be the one who ends up maintaining whatever mess I end up barfing all over your nice clean wiki, and at the moment lists seem to be handled with categories in most cases. So, how would you prefer I do it?

Or, if this wiki's dead, any idea if there are other UW:A wiki projects I should edit instead? DewiMorgan (talk) 21:17, 3 January 2019 (MST)

Responded directly to user. --Browncoat Jayson (talk) 12:25, 11 January 2019 (MST)

Level maps?

For the level maps (which are still a couple steps down my list of pages I want to make: I still have a lot of work on the Magic page!), I think it would be super cool to have them highlight the same way as ingame on mouseover. However, the only way I can see to get imagemaps that highlight is using Javascript, as seen on https://davidlynch.org/projects/maphilight/docs/ -- there's no HTML+CSS way to style an imagemap area as they aren't in the DOM, or even a jigsaw of transparent PNGs as they get treated as rectangular. According to https://www.mediawiki.org/wiki/Adding_javascript_to_wiki_pages that's the right place to add it, but it's (for really good and obvious security reasons!) protected. This may not even be needed, though, as I might be able to make it work using just SVG and CSS (https://www.youtube.com/watch?v=2TM63ing6jY), though that means converting the maps to SVG... If SVG doesn't work, and I can find or write some super-simple and obviously non-malicious JS for imagemap area hover effects that will work with wiki templates, would you consider adding it to MediaWiki:Common.js? DewiMorgan (talk) 12:11, 11 January 2019 (MST)

So there are a couple ways we can do this. Adding directly to the js files works, but its clunky as it loads for every page (not just the map pages). We could try putting the code into a Widget or Template, so that it only gets used on the pages where we want them. I do this when embedding YouTube videos, for example, using the Widget:YouTube.
I havn't played around much with imagemaps, but its one of the things I fully intend to do long term both here and on SotAwiki. I'll investigate this weekend and let you know if I find a simple way of doing this. --Browncoat Jayson (talk) 12:25, 11 January 2019 (MST)