Site Notice |
---|
Remember to pay a visit to our Discord server and chat with our community! See here for more info. Be sure to check out the KHUX Wiki for the latest on Kingdom Hearts Union χ and Kingdom Hearts Dark Road! Go and pitch in! The KHWiki contains spoilers for all Kingdom Hearts games. Read at your own risk. Please remember not to add information about unreleased games from trailers. |
Template:Class: Difference between revisions
m (Protected "Template:Class" ([Edit=Allow only KHWiki staff] (indefinite) [Move=Allow only KHWiki staff] (indefinite))) |
mNo edit summary |
||
Line 8: | Line 8: | ||
=== Supported classes === | === Supported classes === | ||
* <code>noresize</code> - Prevent the image from being upscaled | |||
* <code>blackbg</code> / <code>graybg</code> - Change the background color of the image container | * <code>blackbg</code> / <code>graybg</code> - Change the background color of the image container | ||
* <code>invert-light</code> / <code>invert-dark</code> - Invert the image in the wiki's light or dark mode | * <code>invert-light</code> / <code>invert-dark</code> - Invert the image in the wiki's light or dark mode |
Revision as of 22:09, 11 July 2024
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
noresize
- Prevent the image from being upscaledblackbg
/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> Wiki.png|Wiki logo 1{{class|blackbg}} Wiki.png|Wiki logo 2{{class|graybg}} Wiki.png|Wiki logo 3 </gallery>