FANDOM

2,195 Pages

Template documentation (for the above template, sometimes hidden or invisible) (view - edit - history)

{{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.

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
jnameThe name of the character in Japanese
rnameRomanized Name
enameThe name of the VIZ, Odex, FUNimation or 4Kids translation
firstFirst 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
nameThe name of the character (if not given, the pagename is used)
imageAn 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)
switchParameter controlling the images, see help below
imagenameParameter controlling the images, see help below
colorschemeA colorscheme fitting the character. In order for it to work, however, it must be added to MediaWiki:Themes.css
affiliationAffiliations
occupationOccupations
residencePlace of residence (mainly for civilians)
alias Alias
epithet Epithet
jvaJapanese Voice Actor
4kids eva4Kids English Voice Actor
Funi evaFuni English Voice Actor
bounty Bounty (for pirates)
Even more optional
Odex evaOdex English Voice Actor
real nameReal name of the character
ageAge of the character
birthBirthday of the character
heightHeight of the character
sizeSize of the character (e.g. for animals)
weightWeight of the character
Devil fruit
dfnameJapanese name of the devil fruit
dfenameEnglish name of the devil fruit
dfmeaningMeaning of the Japanese name
dftypeType of the devil fruit
dfcolorschemeColorscheme for the devil fruit frame
dftextcolor(if no colorscheme)
dfbackcolor(if no colorscheme)
Special cases
dorikiDoriki (for CP9 members)
cp9keyNumber of the key (for CP9 members)
zombie numberFor Thriller Bark zombies
powerPower level (for Pandaman)

See /preload for the preloaded syntax.

Example

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

  1. REDIRECT Template:Char Box Yami Yami no Mi (Arledge)
{{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. However none have been set up in MediaWiki:Themes.css as of 18:35, March 16, 2016 (UTC). Until color schemes like "ArlongPiratesColors" are defined there, adding the colorscheme variable will have no effect.

  1. REDIRECT Template:Char Box Yami Yami no Mi (Arledge)
{{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.

  1. REDIRECT Template:Char Box Yami Yami no Mi (Arledge)
{{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

  1. REDIRECT Template:Char Box Yami Yami no Mi (Arledge)
{{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:Character InfoBox/doc to edit this text! (How does this work?) (Refresh this text - why?)
Community content is available under CC-BY-SA unless otherwise noted.