User talk:Eleazaros/Tooltips Help

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

re: Basic Architecture

wouldn't it be simpler just to have only the tooltip template on pages?
or do you want the tooltip template to extract the variables from infobox template?
right now I'm seeing on the test pages both templates used... I'll have to chat to you some time about it ;) --Xander 02:17, 15 January 2008 (PST)

That's the idea. 1 Infobox to store the information. The other template is simply a shell around the execution code.

What I meant was that we will only ever need the tooltip template, look at the Hill-defender. I didn't use {{Infobox Item}} just {{Item Tooltip}} one. All we need is to adjust its presentation and have it categorise the items... --Xander 04:25, 17 January 2008 (PST)

3 problems:
  1. This requires replacing of all existing templates with tooltip.
  2. Item Tooltip is very complex. It is a "monolithic" design that can do everything. Envision yourself as a new user here and tell me you wouldn't be daunted by that template. I found {{Infobox Item}} to be overly complex and cumbersome to work with let alone a monster like Item Tooltip.
  3. It does not provide sufficient detail for a summary of an item.
Is an item crafted? Is the item a quest reward? Is the item a drop? That info isn't shown in a tooltip in-game but is something folks would wish to see out-of game with a tooltip mouseover isn't it?
Try looking at a Quest -- is it part of a chain? etc... Not something shown in a tooltip in game.
NPC? Quest giver? Vendor? etc..
Monster?

Item Tooltip allows for all the above to be covered from ONE huge template, just pass the right paramaters...

If instead of using Item Tooltip, we use what is there now and modify the templates, no changes would really be needed to existing entries. They would automatically gain tooltip abilities. If we toss the existing templates (and I think they should be front-ended with MORE templates), then we'll have to redo all existing entries with the new template. --Eleazaros 16:46, 18 January 2008 (PST)


Well I guess it's up to you, mate... you're right both templates are very complex, but {{Infobox Item}} needs a rewrite/cleanup anyway, so it might be easier to change the colours and placement of stuff in the new {{Item Tooltip}} template... the way it's set up right now on both of your testpages is that both templates are used...

I'll have a go at Template talk:Item Tooltip and comment some things as well as getting rid of wowwiki links ;) --Xander 02:19, 25 January 2008 (PST)


I was experimenting with the copy of Item Tooltip template - changing position of various fields and got it to the stage where it looks very close to the ingame tooltip --> Hill-defender...

I still need to figure out how a few things are handled and add additional fields for clickable effects and other stuff. But it's usable and doesn't require more knowledge than {{Infobox Item}}! The only difference is that it doesn't provide categorisation! Whether it should or not may require another discussion, but someone (Rogue I think) recently had problems with template-enforced categorisation, so we might want to add that to topics for the next chat...

When I think of it another topic comes to my mind: are the infobox/tooltips supposed to be sole content of articles? It looks to me that infoboxes should be more complementary and the most of the stuff you mentioned in the issues above (which imho doesnt really belong into tooltips) should go into main body of article, whereas we could add that to tooltip template as well, since it differentiates what to show in tooltip and what in the article... --Xander 04:57, 27 February 2008 (PST)


I've added support for clickable effects and sets:

It still requires minor tweaking but basic support is there... --Xander 15:36, 29 February 2008 (PST)