Eternal Card Game Wiki
Advertisement
Eternal Card Game Wiki

[[{{{1}}}|____________]] [[File:{{{1}}}.png|300x300px]]

[[{{{1}}}]]

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

CSS

Requires this to work:

.tooltip {
        cursor: default;
        display:inline;
}
.tooltip span {
	margin-left: -99em;
	position: relative;
}
.tooltip:hover span {
        z-index: 99;
        position: absolute;
        margin-top: -25em;
	    margin-left: 9em; 
}
.show-hover {
    display: none;
}
.hover-container:hover .show-hover {
   display:inline; 
}
.hover-container:hover .hide-hover {
    display:none;
}

Credit

Took CSS examples from here and here February 2nd, 2016.

Wiki Markup

This code expects the page name and card image(before the .png) to have the exact same name, and that the card image ends with ".png". Remember, images are case sensitive. Might change it later if needed so you can link willy nilly, then specify the image.

{{CardHover|Thunderbird}}

ALSO do NOT leave a space after the template. Freaks it out. put your words right up close to it.

Result (Hover Over and Click)

____________ Thunderbird.png Thunderbird

Templates Used

Uses template:Rollover and was using that one initially, but it was too glitchy. Mixed it with another rollover text someone made, and BAM this look semi-decent. There's an annoying line at the bottom when you hover over, and that's the result of the rollover template. The words ended up right below the the next words in the line, but the image popup worked fine. Might have problems with super short/super long card names though.

This line is necessary because the image only appears when you hover over the line. You can extend the line by adding a second variable "_____________"
The above text is transcluded from Template:CardHover/old/doc; you can change it or view its history.
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:CardHover/old/doc.
How does this work?Template Info: [usage] [subpages] [history]
Advertisement