Template:Class

From the Super Mario Wiki, the Mario encyclopedia
Revision as of 20:08, March 29, 2024 by Porplemontage (talk | contribs)
Jump to navigationJump to search

About

This template provides an experimental new way to change the background color for gallery images on a per-image basis.

Usage

The template can be used as either {{bg|black}} or {{bg|gray}} and is inserted into the caption of the relevant image(s):

<gallery>
MarioMP8Artwork.png|[[Mario]]{{bg|black}}
Luigi Artwork - Mario Party 7.png|[[Luigi]]{{bg|gray}}
NSMBDS Bowser Artwork.png|[[Bowser]]
</gallery>

Reminder

To use the same background color for all images in a gallery, this template isn't needed. Simply use either <gallery class="blackbg"> or <gallery class="graybg"> for the gallery's opening tag.