Template Documentation (sometimes hidden or invisible)
Template tools: purge • what links here • what transclude this • subpages |
{{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 image
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 image
variable.
Nevertheless, here on the instruction page, the result of removing the image
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.
{{Char Box | colorscheme = | jname = | rname = | ename = | first = | affiliation = | occupation = | residence = | alias = | epithet = | jva = | Funi eva = | bounty = }}
Parameters
Parameter | Usage |
jname | The name of the character in Japanese |
rname | Romanized Name |
ename | The name of the VIZ, Odex, FUNimation or 4Kids translation |
first | First Appearance |
status | Whether character is alive or not. Defaults to "alive". You can enter 1 for "unknown", 2 for "Deceased" or just leave it blank (or not include it) for "alive" |
Optional | |
name | The name of the character (if not given, the pagename is used) |
image | An image of the character (this variable is deprecated, so you will see some older infoboxes having this variable; however, image selection is now done automatically, as described below) |
switch | Parameter controlling the images, see help below |
imagename | Parameter controlling the images, see help below |
colorscheme | A colorscheme fitting the character. In order for it to work, however, it must be added to MediaWiki:ColorSchemes.css |
affiliation | Affiliations |
occupation | Occupations |
residence | Place of residence (mainly for civilians) |
alias | Alias |
epithet | Epithet |
jva | Japanese Voice Actor |
4kids eva | 4Kids English Voice Actor |
Funi eva | Funi English Voice Actor |
bounty | Bounty (for pirates) |
Even more optional | |
Odex eva | Odex English Voice Actor |
real name | Real name of the character |
age | Age of the character |
birth | Birthday of the character |
height | Height of the character |
size | Size of the character (e.g. for animals) |
weight | Weight of the character |
Devil fruit | |
dfname | Japanese name of the devil fruit |
dfename | English name of the devil fruit |
dfmeaning | Meaning of the Japanese name |
dftype | Type of the devil fruit |
dfcolorscheme | Colorscheme for the devil fruit frame |
dftextcolor | (if no colorscheme) |
dfbackcolor | (if no colorscheme) |
Special cases | |
doriki | Doriki (for CP9 members) |
cp9key | Number of the key (for CP9 members) |
zombie number | For Thriller Bark zombies |
power | Power level (for Pandaman) |
See /preload for the preloaded syntax.
Example
You can create a simple info box by doing something like this.
{{Char Box | name = Brook | switch = switch setting | jname = sample jname | rname = sample rname | ename = sample ename | first = Chapter 442 | affiliation = Straw Hats | occupation = Musician | epithet = Dead Bones | jva = sample jva | 4kids eva = Sanjaya | Funi eva = Johnny Depp | bounty = $10000 }}
Advanced
Color
You can use a predefined colorscheme like "ArlongPiratesColors". All available colorschemes are located in ColorSchemes.css.
{{Char Box | colorscheme = ArlongPiratesColors | name = Brook | switch = switch setting | jname = sample jname | rname = sample rname | ename = sample ename | first = Chapter 442 | affiliation = Straw Hats | occupation = Musician | epithet = Dead Bones | jva = sample jva }}
Images and Switch
- There is no "image" variable anymore. Standard pic names are automatically used: "XXX Infobox.png", "XXX Manga Infobox.png", "XXX Anime Infobox.png", etc. "XXX" is the title of the page, or the value of imagename if specified. Whether anime/manga, pre/post-timeskip pics should be used is controlled by the switch parameter.
- If it is omitted, the default is to have a simple manga/anime switch.
- If set to switch=none, the standard pic name "XXX Infobox.png" is used (useful for game characters, for example).
- If there is no image available, use switch=no image.
- To use only a manga pic or only an anime pic, put switch=manga or switch=anime, respectively.
- To use a full-fledged timeskip+manga/anime switch, put switch=timeskip.
- To use a manga-only or anime-only timeskip switch, put switch=manga timeskip or switch=anime timeskip, respectively.
- Last, if you want a timeskip switch, but there is not yet a post-timeskip anime pic, put switch=manga post (meaning "the post-TS pic is manga-only"). Similarly, there are switch=manga pre, switch=anime pre, and switch=anime post. Moreover, switch=manga post, anime pre and switch=manga pre, anime post also work.
The following table sums this up:
Manga | Anime | Code | ||
---|---|---|---|---|
✓ | switch = anime
| |||
✓ | switch = manga
| |||
File:{{PAGENAME}} Infobox.png
|
switch = none
| |||
File:NoPicAvailable.png
|
switch = no image
| |||
Pre | Post | Pre | Post | Code |
✓ | ✓ | switch = anime timeskip
| ||
✓ | ✓ | switch = manga post, anime pre
| ||
✓ | ✓ | ✓ | switch = anime pre
| |
✓ | ✓ | switch = manga pre, anime post
| ||
✓ | ✓ | ✓ | switch = anime post
| |
✓ | ✓ | switch = manga timeskip
| ||
✓ | ✓ | ✓ | switch = manga pre
| |
✓ | ✓ | ✓ | switch = manga post
| |
✓ | ✓ | ✓ | ✓ | switch = 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.
{{Char Box | name = Brook | switch = switch setting | jname = sample jname | rname = sample rname | ename = sample ename | first = Chapter 442 | affiliation = Straw Hats | occupation = Musician | epithet = Dead Bones | jva = sample jva | age = 100+ | birth = Oct. 1 | height = 2m | size = 4m | weight = 50kg | power = (for Pandaman) | doriki = 666 | cp9key = 44 (for CP9) | real name = Brook | zombie number = 1 }}
Devil Fruit
{{Char Box | name = Brook | switch = switch setting | jname = sample jname | rname = sample rname | ename = sample ename | first = Chapter 442 | affiliation = Straw Hats | occupation = Musician | epithet = Dead Bones | jva = sample jva | dfname = Yomi Yomi no Mi | dfename = Revive Hell fruit | dfmeaning = Underworld | dftype = Paramecia }}
There are also "df2name", "df2ename", "df2colorscheme" 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 image
has effectively been deprecated for several years, whereas backcolor
and textcolor
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.
Visit Template:Char Box/doc to edit this text! (How does this work?) (Refresh this text - why?)