Template:Image button: Difference between revisions
Appearance
Created page with "This creates one of the stylized and formatted buttons on the [[{{MediaWiki:Mainpage}}|main page]]. == Usage == Groups of this template should be wrapped inside of <code><nowiki><div class="image-buttons"></div></nowiki></code> and each entry should be a separate line in an unordered list. This div can be given one of the classes <code>columns-x</code> where x is a number from 1 to 9, and the links will line up in that many columns if..." |
mNo edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | |||
<div class="image-button-container {{#if:{{{label|}}}|has-text}}"> | |||
<!-- Main image with link --> | |||
<div class="image {{{image-hover|hide-on-hover}}}">[[File:{{{image}}}|{{{size|330px}}}|link={{{link|}}}|class={{{imageClass|}}} ]]</div><!-- | |||
Hover image with same link (positioned absolutely) | |||
-->{{#if:{{{image-hover|}}}|<div class="hover-image">[[File:{{{image-hover}}}|{{{size|330px}}}|link={{{link}}}|class={{{imageClass|}}}]]</div>}}<!-- | |||
--><div class="image-button--gloss"></div><!-- | |||
</ | |||
-->{{#if:{{{label|}}}|<div class="image-button--text">[[{{{link}}}|{{{label}}}]]</div>}}<!-- | |||
<noinclude> | --></div></includeonly><!-- | ||
Link text below (if needed) | |||
--><noinclude> | |||
{{doc}} | |||
</noinclude> | </noinclude> | ||