Template:Class

From Pikipedia, the Pikmin wiki
Revision as of 17:55, June 14, 2024 by Porplemontage (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Info

This template provides a new way to add supported classes to gallery images on a per-image basis.

To apply a class to all images in a gallery, this template isn't needed. Simply use <gallery class="..."> as the gallery's opening tag.

Usage

Add the template to the caption of the gallery image you'd like the class applied to. The first parameter is the class name. Multiple classes can be separated by spaces.

Supported classes

  • blackbg / graybg - Change the background color of the image container
  • invert-light / invert-dark - Invert the image in the wiki's light or dark mode

Example

<gallery>
Wiki.png|Wiki logo 1{{class|blackbg}}
Wiki.png|Wiki logo 2{{class|graybg}}
Wiki.png|Wiki logo 3
</gallery>