Template:Class: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span class="{{#fornumargs:key|value|{{#var:value}} <nowiki/>}}"></span></includeonly><noinclude>__NOTOC__ | <includeonly><span class="{{#fornumargs:key|value|{{#var:value}} <nowiki/>}}"></span></includeonly><noinclude>__NOTOC__ | ||
== About == | == About == | ||
This template provides | 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 <code><nowiki><gallery class="..."></nowiki></code> as the gallery's opening tag. | To apply a class to ''all images'' in a gallery, this template isn't needed. Simply use <code><nowiki><gallery class="..."></nowiki></code> as the gallery's opening tag. |
Latest revision as of 16:22, May 13, 2024
About
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. Each numbered parameter is a class name.
Supported classes
blackbg
/graybg
- Change the background color of the image containerinvert-light
/invert-dark
- Invert the image in the wiki's light or dark mode
Example
<gallery> MarioMP8Artwork.png|[[Mario]]{{class|blackbg}} Luigi Artwork - Mario Party 7.png|[[Luigi]]{{class|graybg}} NSMBDS Bowser Artwork.png|[[Bowser]] </gallery>