Template:Class: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly><span class="{{{1}}}"></span></includeonly><noinclude>__NOTOC__ == 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 <code><nowiki><gallery class="..."></nowiki></code> 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 param...") |
m (Protected "Template:Class" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only Pikipedia staff] (indefinite))) |
(No difference)
|
Revision as of 15:58, June 14, 2024
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 containerinvert-light
/invert-dark
- Invert the image in the wiki's light or dark mode
Example
<gallery> Captain Olimar Pikmin 4 Render.png|[[Captain Olimar]]{{class|blackbg}} Oatchirender.png|[[Oatchi]]{{class|graybg}} P4 Bulborb Render.png|[[Bulborb]] </gallery>
- P4 Bulborb Render.png