MediaWiki talk:Lord of the tooltips.js

From Lotro-Wiki.com
Jump to navigation Jump to search

Pop-up

After the domain fixes

Browser/OS Tooltip Compatibility
(An asterix denotes browsers that seem to work for some editors, but not others)
Works Doesn't Work (no display) Doesn't Work (error)

Gentoo

  • Chromium 9.0.597.107
  • Firefox 3.6.13

nothing known yet

nothing known yet

I just applied this nice GET domain fix and it seems to work now, at least on all browser I know/have at the moment. This is why I also added the table again. The real difference between all your observations was the link www.lotro-wiki.com and just lotro-wiki.com. The first one worked just fine, while the latter one failed :)
I also split up the discussion to make it more readable. Feel free to continue discussion about the colour bug in the new section. --EoD 22:46, 18 March 2011 (EDT)


Colour problems

Strangely, the colors that I see on Opera are like (link:https://lotro-wiki.com/index.php/File:Lotro-operacolors.jpg) while the colors that I see on Chrome and Firefox are like (https://lotro-wiki.com/index.php/File:Lotro-chromecolors.jpg). Other than IE, these browsers are default installs with no frills and updated to the latest via the update links inside the browser. Maybe its just my XP? -- Starbursty 17:03, 29 December 2010 (EST)

Thanks for the additional testing and the screenshots! Browsers can be bad about displaying colors sometimes, but I didn't realize they were THAT bad. We might need to revisit a lot of the colourisation in the wiki based on your findings. I also use XP, so a pattern is starting to emerge here - GB said he's on Vista and has no problem, so if Ead is also on Vista and Tibs is on XP, we might have something of a starting point. If it is an OS problem...then I have no flippin' idea how to fix it, hahah. Sethladan 17:16, 29 December 2010 (EST)


For the Armour of Brutal Onslaught colors, see results here, almost no change for me, but I notice that the set description is not popping in the tooltip, no clue if normal but would be nice to see it. I kept it as PNG, looks nicer to keep colors in my opinion (but I know we store JPG on the wiki for anything else except icons). --Goingbald 18:20, 29 December 2010 (EST)


Before the domain fixes

This table is outdated - Have a look at the new one
Browser/OS Tooltip Compatibility
(An asterix denotes browsers that seem to work for some editors, but not others)
Works Doesn't Work (no display) Doesn't Work (error)

Windows XP Professional

  • Firefox 3.6.13
  • Internet Explorer 8.0
  • Opera 11.0

Windows Vista

  • Chrome 8.0
  • Firefox 3.6.10
  • Internet Explorer 8.0
  • Opera 11.0
  • Safari 5.0

iOS (iPad/iPhone)

  • Safari Mobile

Windows XP Home

  • Internet Explorer
  • Opera 11.0

Windows 7 Enterprise

  • Internet Explorer 9

Debian

Windows XP Home

  • Chrome 8.0
  • Firefox 3.6.13

Windows XP Professional

  • Chrome 8.0
  • Safari 5.0

Windows 7 Enterprise

  • Chrome 8.0
  • Firefox 3.6.13

Debian

  • Firefox 3.5.16

(Discussion moved from User Talk:Sethladan/User Talk:Starbursty)

On that note, is there an example of the on-hover tooltip actually working? The only time that I see the tooltip coming up on item links are the ones in set items. Unfortunately, those put up an Error saying that the tooltip is nor configured correctly. Starbursty

These things are a major thorn in my side. I haven't quite figured out how they work, but it's buried in the Javascript and CSS files for the wiki. As far as I can tell, Eleazaros wrote the bit once upon a time, but they've not displayed for me in either Chrome or Internet Explorer. They have, however, displayed after a fashion on my iPad, so I'm curious to try downloading Safari and Firefox to see what pops up in those - which browser do you use?
I don't want to mess with what I don't understand, since changes to those files might throw the entire wiki out of whack. But I am studying them, heh. For now, I guess we just figure out what circumstances (if any) they do work in, and I'll see what I can do about that annoying error message - maybe there are some more code-savvy editors floating around. Sethladan 22:39, 28 December 2010 (EST)

All Recipes, e.g. Item:Bronze Ingot Recipe have working tooltips (at least for me) - all items (inputs and outputs) in the "Crafting Panel" part should show a tooltip when you hover over the name of the item, e.g. Bronze Ingot, Copper Ingot. I think Template:Loot also shows a tooltip, e.g. Bree Flax Fibre should show a tooltip. Eadangar 22:50, 28 December 2010 (EST)
I didn't know about that Loot template - will have to take a look at that one. I imagine that we could/should replace most of the item links in the wiki with a loot template at some point in the future. For me, both the links in Item:Bronze Ingot Recipe and the Bree Flax Fibre you linked display error messages ("This item does not have a properly formatted tooltip, etc") when hovered over. Can I ask, Ead, what browser you use? As I mentioned, I've seen the error with Chrome and MSIE - it could be that Safari works (which would make life easy for Mac users) or perhaps Starb and I need to change some settings. Thanks for helping to figure this out! Sethladan 03:32, 29 December 2010 (EST)
Strange, for me on Vista, both the Crafting & Loot templates are displaying popups with:
  • Opera 11.00 (my main for working in the wiki)
  • IE 8.0.6001.18999
  • Chrome 8.0.552.224
  • Firefox 3.6.10
  • Safari 5.0.3
--Goingbald 04:36, 29 December 2010 (EST)
Strange, I did a check on different computers, I can't see those tooltips:
  • IE7/8/9
  • Chrome 8.0
  • Firefox 3.6.13
I was thinking, maybe it depends on the template you choose for yout wiki-profile, I'm currently using Vector (default).-- Tiberivs 04:46, 29 December 2010 (EST)
I'm using IE 8 and Vector (default) - so it doesn't seem to be the skin. Edit: Also, I see that Template:Crafting is just using Template:Loot for its pop-ups, so that would seem to be the key. Weirdly, the template seems to have:
<includeonly><onlyinclude> ... </onlyinclude></includeonly>
in it which seems a bit redundant, not sure if that would cause the problem. Other than that, the answer lies in:
class="itemlink ...
Haven't got a clue how that stuff works. :) -- Eadangar 05:24, 29 December 2010 (EST)


This is the most basic, cut-down pop-up: Minstrel's Friend
[[Item:Minstrel's Friend|<span class="itemlink">Minstrel's Friend</span>]]
Does that work for anyone? -- Eadangar 06:33, 29 December 2010 (EST)
Pops for me on Opera --Goingbald 07:45, 29 December 2010 (EST)

Hi all. Attempted to summarize our findings so far on what browsers and operating systems are able to see the pop-up (refer to Eadangar's "Minstrel's Friend" post immediately above this for a quick check. Please update the table at the top of this section with your experience and note any discrepancies. We'll get to the bottom of this. :) The class=itemlink part that Ead mentioned is defined in the site's CSS (cascading style sheet) file, I think, which is also where we get our AltRowsMed table and other such cool toys. Am continuing to try and figure out how that stuff works. Anyone familiar with CSS and JavaScript might also want to take a look - check my user page for the links. Sethladan 14:50, 29 December 2010 (EST)

Also, when testing, please use the latest (stable, non-beta) version available for the browser in question, and let us know what operating system (XP, Vista, 7, OS X, etc) you're using. Thanks! Sethladan 14:52, 29 December 2010 (EST)

Error This item either has no tooltip or was not intended to have one. A correctly formatted { {itembox} } must be added to the target Item page.

This is what I see on Windows XP Home ed. sp2:

  • Chrome (8.0.552.224)
  • Firefox (3.6.13)

. With these ones, nothing pops up at all:

  • Opera (11.00 build 1156)
  • IE (whatever version it was, I don't use IE  :-D)

-- Starbursty 17:03, 29 December 2010 (EST)


It popups with the error on Windows 7 Enterprice, with the following browsers:

  • Chrome (8.0.552.224)
  • Firefox (3.6.13)

With the following it does not pop up at al:

  • IE9 (9.0.7930.16406)

--Tiberivs 17:29, 29 December 2010 (EST)



I'm on Windows XP Professional, SP3 (with IE 8, as mentioned earlier). Ah - just noticed that Item:Minstrel's Friend isn't quite standard in its use of the Template:Item Tooltip; that is, it doesn't use it, but rather a template from someone's User page. Try this one: Bronze Ingot and see if that makes a difference. -- Eadangar 19:55, 29 December 2010 (EST)

Oy, so now we're seeing differences among version of XP (I have Media Center, Starb has Home, and Ead has Professional). I'm at a loss. Right now it seems like there are too many factors involved to easily resolve this, but we do at least know that pop-ups seem to be working in at least some cases - I thought they were all useless, heh. Will see if I can update the error message to reflect that, if nothing else. Will also leave some messages for Lotroadmin, Rogue, and some other editors who might know more. Sethladan 20:15, 29 December 2010 (EST)
Edit: Scratch that. All the tooltip-related files are in Eleazaros's personal directory and not subject to editing. They'll all have to be copied over to the Mediawiki namespace first before we can fix anything... Sethladan 20:26, 29 December 2010 (EST)
If all else, we could just compile the os, versions, and browsers over time and have a list on what it works on (as with the colourful list above). ::::-- Starbursty 06:48, 30 December 2010 (EST)
Chrome, XP Home Edition, and Windows 7 appear to be the biggest losers so far. Sethladan 00:58, 4 January 2011 (EST)
Quite old discussion, I know, but maybe its the pages you're testing? Something odd happens with the links in this page. It shows the error message AND the tooltip. This doesn't happen anywhere else for me. (FF 15 here, Chrome also works fine here, and I'm on XP, if that matters)
Gwenwyfar (talk) 20:02, 30 November 2012 (EST)

New Caching

I rewrote nearly the whole caching algorithm: Removed unnecessary load from the server and improved usability. If you have any issue please write them here, if not have fun with the new tooltips ;) --EoD (talk) 10:22, 18 October 2011 (EDT)

Relics

Could this be modified to include the Relic namespace? It would be nice to have tooltips for those in addition to the Item pages. -- Eggolass (talk) 11:37, 15 March 2013 (EDT)

Is There Anybody There?

I'm trying to get lotro-wiki based tooltips working on my guild's forum. As I learned, external tooltip feature is currently disabled at line 191 (commenting it makes tooltip loading proceed, even caching seems to work). Although, the tooltips themselves won't load due to Access-Control-Allow-Origin header not set. Can anyone from lotro-wiki team help me with bringing external tooltips live? ENDrain (talk) 06:46, 20 October 2017 (UTC)

What are you trying to do?
1- Display a tooltip on LOTRO-wiki based on information from an external website?
2- Display a LOTRO-Wiki tooltip on some external web site?
As I recall, this ability was specifically disabled many years ago for a variety of reasons.
Post your question over on User talk:Lotroadmin.
Wm Magill - Valamar - OTG/OTC - talk 01:10, 21 October 2017 (UTC)