Difference between revisions of "Forum:Deployment of Tooltips"

From Yugipedia
Jump to: navigation, search
Line 29: Line 29:
 
:# When the page loads, you see the tooltips briefly appear for a moment, before disappearing.
 
:# When the page loads, you see the tooltips briefly appear for a moment, before disappearing.
 
:# On a more minor note, it uses invalid HTML. You're not supposed to put <code>&lt;div&gt;</code> tags inside <code>&lt;span&gt;</code> tags.
 
:# On a more minor note, it uses invalid HTML. You're not supposed to put <code>&lt;div&gt;</code> tags inside <code>&lt;span&gt;</code> tags.
 +
::Complete bollocks. It's legitimately valid HTML, it's just considered ''bad practice''. There is a gulf of difference between what it is and what you claim it is.--[[User:TwoTailedFox|TwoTailedFox]] ([[User talk:TwoTailedFox|talk]]) 22:44, January 21, 2016 (UTC)
 
:# I'm not sure about this point, but I think when web crawlers read pages, they don't take JavaScript into account. So instead of reading:
 
:# I'm not sure about this point, but I think when web crawlers read pages, they don't take JavaScript into account. So instead of reading:
 
:#::''He uses this card to fuse "Elemental HERO Avian" with "Elemental HERO Burstinatrix" in order to Fusion Summon "Evil HERO Inferno Wing".''
 
:#::''He uses this card to fuse "Elemental HERO Avian" with "Elemental HERO Burstinatrix" in order to Fusion Summon "Evil HERO Inferno Wing".''

Revision as of 22:44, 21 January 2016


TwoTailedFox has {{Tooltip}} and {{TooltipA}} ready for use.

I've applied the latter (which is used for anime cards) to the latest anime episode. It can be used a replacement for {{Monster}} and can be applied to all cards. I believe its ideal for use in the Featured Duel sections, but I wouldn't use it for Decklists. Simply hover over a link that uses this and it pulls up all relevant card information in a pop-up. This eliminates the need for specifying initial monster stats, among other things.

I'm unsure whether we want to use it in prose sections (so, the summary sections of episodes and the bulk of most character articles) and would appreciate any input on that subject.

I'm also unsure where we want to implement the base Tooltip. It should be useful for archetype and strategy articles and maybe the bulleted points in the set articles. So input on that would also be appreciated.

Any objections to what I've listed above will also be considered. Cheesedude (talkcontribs) 17:54, January 21, 2016 (UTC)

How is this supposed to work on mobile devices? --XBrain130™エックスブレーン130」 18:43, January 21, 2016 (UTC)
I tried using the mobile skin, and it appears to still work. Perhaps it doesn't on actual mobile devices, I can't be sure. I could check on my tablet, but have no phone. Cheesedude (talkcontribs) 18:56, January 21, 2016 (UTC)
It depends whether or not the mobile skin itself is still working. The skin hasn't usually been working for me when I click on links in the mobile skin, but it does work when I check differences (I should note that using the wiki on mobile devices is effectively impossible for editing, but that's been a problem for months.) I'll edit an episode, get into my emails, and check that. Sanokal K-T (talkcontribs) 20:16, January 21, 2016 (UTC)
And I'm a moron. My own changes don't alert me. Someone mind editing episode 74 for me so that it'll alert me in an email? Sanokal K-T (talkcontribs) 20:21, January 21, 2016 (UTC)
Edited, see how it works. Cheesedude (talkcontribs) 20:25, January 21, 2016 (UTC)
Thanks Cheese. It pops up the section right after the name of the monster in the base document itself on my phone. Sanokal K-T (talkcontribs) 20:28, January 21, 2016 (UTC)
I'm in favour of the idea of having card details appear on hover. But I have a couple of problems with this implementation in its current state:
  1. There could be a couple of dozen card links on one page. The page's load time is going to increase for every one of them using a tooltip. Although the user will only be looking at a few.
  2. Custom CSS and JavaScript are not applied on the mobile skin, so you get a list of tables appearing midsentence.
  3. When the page loads, you see the tooltips briefly appear for a moment, before disappearing.
  4. On a more minor note, it uses invalid HTML. You're not supposed to put <div> tags inside <span> tags.
Complete bollocks. It's legitimately valid HTML, it's just considered bad practice. There is a gulf of difference between what it is and what you claim it is.--TwoTailedFox (talk) 22:44, January 21, 2016 (UTC)
  1. I'm not sure about this point, but I think when web crawlers read pages, they don't take JavaScript into account. So instead of reading:
    He uses this card to fuse "Elemental HERO Avian" with "Elemental HERO Burstinatrix" in order to Fusion Summon "Evil HERO Inferno Wing".
    one would read:
    He uses this card to fuse "Elemental HERO Avian[table of details for "Avian"...]" with "Elemental HERO Burstinatrix[table of details for "Burstinatrix"...]" in order to Fusion Summon "Evil HERO Inferno Wing[table of details for "Inferno"...]".
    Although Google seems to have read Card Appearances:Dark Fusion without that issue.
I did make a similar template, Template:Card link, which avoids all those problems, except for #4, but has a few problems of its own, particularly in the default skin. It's better, but not perfect, in monobook. -- Deltaneos (talk) 21:45, January 21, 2016 (UTC)