Welcome to SmashWiki! Log in or create an account and join the community, and don't forget to read this first!
Notices
The Skill parameter has been removed from Smasher infoboxes, and in its place are the new "Best historical ranking" and "Best tournament result" parameters. SmashWiki needs help adding these new parameters to Smasher infoboxes, refer to the guidelines here for what should be included in these new parameters.
When adding results to Smasher pages, include each tournament's entrant number in addition to the player's placement, and use the {{Trn}} template with the matching game specified. Please also fix old results on Smasher pages that do not abide to this standard. Refer to our Smasher article guidelines to see how results tables should be formatted.
Check out our project page for ongoing projects that SmashWiki needs help with.

Template:Class

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search

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

  • rawsize : Prevent the image from being upscaled
    • rawsize x2 - x10 : Scale the image a specific amount
  • smooth : Use a smooth rather than pixelated image upscaling algorithm
  • blackbg / graybg : Change the background color of the image container
  • invert-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>