Template:Class
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.
To apply a class to a non-gallery image, this template isn't needed. Simply use the [[File:Name.png|class=...]] syntax as outlined on Help:Image.
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.
Gallery classes
For a list of gallery classes supported by this template, see here.
Additional uses
Add {{class|nosubpages}} to any subpage to hide the subpages navigation that appears below the article title. This is useful when the wiki considers a page to be a subpage that isn't meant to be one.
Example
<gallery>
MarioMP8Artwork.png|[[Mario]]{{class|blackbg}}
Luigi Artwork - Mario Party 7.png|[[Luigi]]{{class|graybg}}
NSMBDS Bowser Artwork.png|[[Bowser]]
</gallery>