Template:IconHover: Difference between revisions
From Elwiki
mNo edit summary |
(i hope it doesnt break) |
||
Line 2: | Line 2: | ||
<tr> | <tr> | ||
<p class="fadeout-container {{#ifeq:{{{hidebottom}}}|true|fadeout-hide-bottom}}"> | <p class="fadeout-container {{#ifeq:{{{hidebottom}}}|true|fadeout-hide-bottom}}"> | ||
<span class="fadeout" style="position: | <span class="fadeout" style="position: relative; width: {{{width|}}}"> | ||
[[File:{{{image-up|Icon - Lord Knight.png}}}|{{{width|54px}}}|link={{#if:{{{link|}}}|{{{link}}}}}{{#if:{{{title|}}}|{{!}}{{{title}}}}}]] | [[File:{{{image-up|Icon - Lord Knight.png}}}|{{{width|54px}}}|link={{#if:{{{link|}}}|{{{link}}}}}{{#if:{{{title|}}}|{{!}}{{{title}}}}}]] | ||
</span> | </span> |
Revision as of 17:29, 11 September 2022
{{ImageHover |image-up= |image-down= |width= |link= |title= |style= }}
- image-up: the top image file link.
- image-down: the bottom image file link.
- width: thewidth of the images (the default is 54px).
- link: a link when pressing the button.
- title: a title that will appear when hovering above the button.
- style: extra style for the table.
All of those parameters are optional. By default they display a red 54px button.
Please note that the sizes of image 1 and image 2 should be the same.
Hide bottom image
In order to hide the bottom image, and only show it when hovering above the top image, add another parameter:
|hidebottom= true
However, it will not be displayed this way in editing mode.