Difference between revisions of "Forum:Tooltip Coords"

From Star Wars: The Old Republic Wiki
Jump to: navigation, search
Line 54: Line 54:
 
::::: As to the images themselves, we need to know the source before we use them. It's important we cite where and how the images were obtained. If they were pulled from the client in some way we should be able to use them, but we need to know this so that we can state it as part of our licensing template. If we were to take them from TORHead we would need to state this in our citation, even if that project has no claim to them. I must admit, I'm not a big fan of the idea; I'd prefer that we figure out how to obtain the images for ourselves. -- [[User:Heaven's Agent|Heaven's Agent]] 16:06, 29 March 2012 (UTC)
 
::::: As to the images themselves, we need to know the source before we use them. It's important we cite where and how the images were obtained. If they were pulled from the client in some way we should be able to use them, but we need to know this so that we can state it as part of our licensing template. If we were to take them from TORHead we would need to state this in our citation, even if that project has no claim to them. I must admit, I'm not a big fan of the idea; I'd prefer that we figure out how to obtain the images for ourselves. -- [[User:Heaven's Agent|Heaven's Agent]] 16:06, 29 March 2012 (UTC)
 
::::::If they are the same as what DH DB is using then yes, they are coming from the client. And NO, it's not necessary to cite sources for images, only copyright. As long as they are tagged as EA/Bioware/LucasArts copyright they are fine. If that means changing the licensing template, then change it. --<small> [[User:Wynthyst|Wynthyst]] [[Image:User Wynthyst sig icon.png|19px ]] [[User talk:Wynthyst|''talk'']]</small> 21:42, 30 March 2012 (UTC)
 
::::::If they are the same as what DH DB is using then yes, they are coming from the client. And NO, it's not necessary to cite sources for images, only copyright. As long as they are tagged as EA/Bioware/LucasArts copyright they are fine. If that means changing the licensing template, then change it. --<small> [[User:Wynthyst|Wynthyst]] [[Image:User Wynthyst sig icon.png|19px ]] [[User talk:Wynthyst|''talk'']]</small> 21:42, 30 March 2012 (UTC)
  +
  +
:::::::Indeed, regardless who pulled them from the client and posted them on the web, they are fully owned by LucasArts and/or EA. The ''original'' source is the client itself, and that's the only source we really need to credit, regardless of whether we extract them from the client ourselves or download them from another source that did just that. Unlike e.g. with screenshots, there isn't really any creative element to pulling assets from the client, so ZAM holds no copyright on them. [[File:Curse flame.png|10px|link=User:Ausir]] [[User:Ausir|Ausir]] (<small>[[User talk:Ausir|talk]]</small>) 21:50, 30 March 2012 (UTC)

Revision as of 21:50, 30 March 2012

Forum index > Tooltip Coords

Hi everyone,
I'm looking to test/implement the Tooltip Coords used on Lotro Wiki (http://lotro-wiki.com/index.php/Template:Tooltip_Coords). So i'm not used to Tooltip and all that stuff (but i'm quite good at css/html/js). Anyway I'm just trying to understand how it works. I tried to understand the already existing Tooltip you use on your templates but I just cannot understand how the link is made between JS code and Tags in wikimedia.
For example you implemented your functions here: http://www.wikiswtor.com/MediaWiki:Common.js But I cannot understand how you use it then in your templates like this one: http://www.wikiswtor.com/Template:ItemLink (I'm looking at the source but see nothing helpful)
Any readings, or link I should read? Any advice?
Zophar 14:30, 24 February 2012 (UTC)

There's actually a couple of templates in use with the tooltips. The first is the infobox on the main article page. For example, on the Gold Necklace page we are using the Template:ItemInfobox. If you look at that template, the tooltip code is on the bottom half. The tooltip is employed by this code: <div class="infobox tooltip-content">. In order to have the tooltip display, we have a separate template to use: Template:ItemLink. The code in this template that calls the tooltip is <span class="ajaxttlink">. When it all comes together you get Gold Necklace. I hope this makes it a little clearer. Let me know if you have any other questions. --Icon class jediknight.png Alianin T C 15:26, 24 February 2012 (UTC)

Hi Alianin, Ok I understand the whole process now. Do you know if the Javascript is enable for users ($wgAllowUserJs set to true)? I'll investigate this and do some tests soon. Thanks for you help. Zophar 10:14, 28 February 2012 (UTC)

I'm pretty sure it is enabled. Let me know if you run into problems and I can get one of the Curse guys to enable it. --Icon class jediknight.png Alianin T C 13:25, 28 February 2012 (UTC)

Template working and ready for testing

Hi all, I was finnaly able to finish this tooltip (and learn a lots of thing on mediawiki on the fly ;)). Now before provide this code to curse team to be accepted/published, I would be glad if some of you take some time to test it. To do so do the following:

  • Have a look at my page User:Zophar
  • Create "common.js" in you user space ((User:UserName/common.js)) and paste the content of my "common.js" in in it. (Normally you should be able to import script from other user spaces).
  • Go on this page Template talk:Tooltip Coords/doc or User:Zophar/SandBox and move your mouse over the coordinates to see if it works (For me it works pefectly)
  • Feel free to give me your feedback. Zophar 14:15, 9 March 2012 (UTC)

Template feedback

Here's a couple thoughts from testing it out. First, I think we'd want to have the tooltip maps smaller so it doesn't take up the whole page. Second, I think it'd be better to use a non-animated, brightly colored pin to mark coordinates so it's easy to see and doesn't eat up resources. Other than that, I think it's great. Thanks for tackling this! --Icon class jediknight.png Alianin T C 22:29, 9 March 2012 (UTC)

The spinning location indicator on the popups seems small yo me, and sometimes hard ro notice. Is it possible to make it more noticeable? Increase its size, perhaps? Or its color? Additionally, is it possible for the tooltip to display only a section of the entire map? Or does it have to display the entire map each time? Some of the maps in the game are huge, and it would be nice if it could zoom in to focus on specific areas. -- Heaven's Agent 22:32, 9 March 2012 (UTC)
Thanks for you tests and feedback.
* I'll reduce the mapsize (let say 350px? 300px?)
* I'll use a non-animated gif (Graphics are really not my cup of tea but I'll try something, feel free to give me any content if you want)
* Display only certain portion of map will be hard to implement on this specific tooltip. I mean it's not meant to display the whole map of a planet, only a region of it and give an idea where object/mission/mobs can be found. We can still think about a different tool/template (and maybe not a tooltip) for map display.
I'll do that as soon as I have a bit time. Cheers Zophar 23:45, 9 March 2012 (UTC)
Finally the zoom feature may be possible to possible (have to dig a bit in the api or maybe have a look at jquery)... will see Zophar 00:01, 10 March 2012 (UTC)

Maps sources

Hi all, I'm looking for maps to add to this wiki... As I have the french version of the game it's not very suitable to complete this task. Now my question is: Is there a way to grab them from other site (like the ones they have on torhead, ...). I mean it's only maps taken from the game so i was wandering where did they got them and under which conditions? The most suitable maps would be the ones without any legend/label on it. Any idea where I should start? Or is it possible to take screenshots of them without any label on them? Zophar 13:08, 27 March 2012 (UTC)

We would need to obtain permission from the host to use another project's resources. Though they cannot claim any ownership of the images, stealing content from other resources without permission is something we strictly prohibit. It makes us look bad, generates ill-will, and ultimately results in backlash from the player community.
I'm not willing to ask TORHead for their permission to do this; unfortunately they are a project in direct competition with DarthHaterDB, and as a result I don't believe we're allowed to link to their site (chime in, Wyn, if I'm incorrect); since we're unable to support them, I'm not about to ask that they support us. We're going to have to obtain map images ourselves.
I've no idea how to obtain images of the quality that TORHead uses. Screenshots are the best I can come up with. -- Heaven's Agent 20:32, 27 March 2012 (UTC)
I don't play the game, so I have to ask a dumb question here. Are the maps found on TORHead the same as you see in the game? If so, they do not belong to ZAM, they belong to LucasArts/BioWare, and are therefore available to use here. We have clearly defined disclaimers regarding using game content. I personally have zero problem with using them. -- Wynthyst 19px talk 13:08, 29 March 2012 (UTC)
That's excactly what I was trying to say. They are exactly the same yes, except they don't have any label (Don't know if there is an options to disable that in the game). Anyway I've found a lots of websites using that kind of maps (Which should have the same source). Zophar 13:11, 29 March 2012 (UTC)
Well, then, I would assume they are from somewhere within the game files, and are available to use. -- Wynthyst 19px talk 13:57, 29 March 2012 (UTC)
They are different from what we see in game, as they're stripped of the UI. Currently there's no option in the game that allows us to do this from a player perspective. They're probably pulled from the client, but we can't be sure; perhaps you could ask the DarthHaterDB, Wyn, as to how they obtained their maps? They look to be essentially the same thing, though the project incorporates them in a manner that adds a new UI.
As to the images themselves, we need to know the source before we use them. It's important we cite where and how the images were obtained. If they were pulled from the client in some way we should be able to use them, but we need to know this so that we can state it as part of our licensing template. If we were to take them from TORHead we would need to state this in our citation, even if that project has no claim to them. I must admit, I'm not a big fan of the idea; I'd prefer that we figure out how to obtain the images for ourselves. -- Heaven's Agent 16:06, 29 March 2012 (UTC)
If they are the same as what DH DB is using then yes, they are coming from the client. And NO, it's not necessary to cite sources for images, only copyright. As long as they are tagged as EA/Bioware/LucasArts copyright they are fine. If that means changing the licensing template, then change it. -- Wynthyst 19px talk 21:42, 30 March 2012 (UTC)
Indeed, regardless who pulled them from the client and posted them on the web, they are fully owned by LucasArts and/or EA. The original source is the client itself, and that's the only source we really need to credit, regardless of whether we extract them from the client ourselves or download them from another source that did just that. Unlike e.g. with screenshots, there isn't really any creative element to pulling assets from the client, so ZAM holds no copyright on them. Curse flame.png Ausir (talk) 21:50, 30 March 2012 (UTC)