Template:Char Box/doc

Char Box is the main infobox used for characters. It has been around for a number of years, and retains much of its original functionality. However, it was reshaped by code of a more portable nature in March 2016, when a few changes were made. The following documentation tells you about the current functionality of the template.

One of the biggest changes is that there is that the  has been wholly removed from the code, after a long period of time where it was deprecated, anyway. This template has been, for a number of years, automatically selecting its images (based on their name). In most situations, this automatic selection was overriding any manual usage of the  variable.

Nevertheless, here on the instruction page, the result of removing the  variable is profound. It looks like the template isn't working.

But it is.

To verify that this template is still working properly, go to the Monkey D. Luffy page and take a look. Or go to any page that uses the CharBox template.

Basics
The basic code to bring it up is this.

Parameters
See /preload for the preloaded syntax.

Example
You can create a simple info box by doing something like this.

Color
You can use a predefined colorscheme like "ArlongPiratesColors". All available colorschemes are located in ColorSchemes.css.

Images
Images are automatically checked and used by the template. For images to appear correctly, they should be named as detailed below. If no images with the below names exist, NoPicAvailable.png will be used.

By default, "XXX" (used below) signifies the page's name. This value can be changed with the  parameter, but this usage should be avoided if possible.

Note that if either anime or manga are using pre/post timeskip images, then both should be. Image names should match:
 * "XXX Infobox.png" - Characters not appearing in the anime or manga
 * "XXX Manga Infobox.png" - Characters in manga who remain the same pre- and post-timeskip, or only appear in one time period
 * "XXX Anime Infobox.png" - Characters in anime who remain the same pre- and post-timeskip, or only appear in one time period
 * "XXX Anime Post Timeskip Infobox.png" & "XXX Anime Pre Timeskip Infobox.png" - Characters in anime who change appearances over the timeskip
 * "XXX Manga Post Timeskip Infobox.png" & "XXX Manga Pre Timeskip Infobox.png" - Characters in manga who change appearances over the timeskip

Extra Parameters
These values here are for categories that might be unique to certain characters only such as height and birthdays. Here is an example of how they can used.

Devil Fruit
There are also "dfname2", "dfename2", "dfmeaning2", "dftype2" etc. for special characters having two devil fruits somehow.

Variables that no longer work
The following variables have been retired.


 * image            =
 * backcolor        =
 * textcolor        =

Note that  has effectively been deprecated for several years, whereas   and   never had a period of deprecation. All three were wholly removed from the code on 18:21, March 16, 2016 (UTC).

Template dependencies
This template requires Switch infobox to function properly. It drives the ability to flip through different images in the unique way that happens here at One Piece.