Jump to content

Template:Image button

From cardbot.wiki
Revision as of 19:32, 15 April 2026 by Cabalex (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This creates one of the stylized and formatted buttons on the main page.

Usage

Groups of this template should be wrapped inside of <div class="image-buttons"></div> and each entry should be a separate line in an unordered list. This div can be given one of the classes columns-x where x is a number from 1 to 9, and the links will line up in that many columns if space permits (default is 3). See Template:Image_button/styles.css for the full definitions of these classes and styling for this template.

Parameters

Creates stylized and formatted buttons.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Linklink

The target page for the link.

Example
Main Page
Page namerequired
Labellabel

Text to display as image label.

Stringsuggested
Imageimage

Button image to display.

Filerequired
Image on Hoverimage-hover

Button image to display when hovered.

Filesuggested
Image sizesize

The size of the image, in px.

Default
576px
Stringoptional
Image classimageClass

A class to give directly to the image

Suggested values
invert-on-dark invert-on-light
Example
invert-on-dark
Stringoptional