Template:Infobox character
| 30px | This template uses Lua: |
Usage
This template can be used to create an infobox for a fictional character of any type. The blank form immediately below shows the most commonly used fields, and complete instructions are listed further down the page.
| series character | |
|
alt caption | |
| First appearance | first |
|---|---|
| Last appearance | last |
| Created by | creator |
| Portrayed by | portrayer |
| Voiced by | voice |
| lbl1 | data1 |
| lbl2 | data2 |
| lbl3 | data3 |
| Full name | fullname |
| Nickname(s) | nickname |
| Aliases | alias |
| Species | species |
| Gender | gender |
| Occupation | occupation |
| Affiliation | affiliation |
| Title | title |
| Family | family |
| Spouse(s) | spouse |
| Significant other(s) | significantother |
| Children | children |
| Relatives | relatives |
| Religion | religion |
| Nationality | nationality |
| lbl21 | data21 |
| lbl22 | data22 |
| lbl23 | data23 |
| extra-hdr | |
| lbl31 | data31 |
| lbl32 | data32 |
| lbl33 | data33 |
{{Infobox character
| colour = <!-- headers background colour; the foreground colour is automatically computed -->
| name =
| series = <!-- use without the italic on the outside -->
| image =
| image_upright =
| alt =
| caption =
| first =
| last =
| creator =
| portrayer =
| voice =
| lbl1 =
| data1 =
| lbl2 =
| data2 =
| lbl3 =
| data3 =
| info-hdr =
| noinfo =
| fullname =
| nickname =
| alias =
| species = <!-- for non-humans only -->
| gender = <!-- if not obvious -->
| occupation =
| affiliation =
| title =
| family =
| spouse =
| significantother =
| children =
| relatives =
| religion =
| nationality =
| lbl21 =
| data21 =
| lbl22 =
| data22 =
| lbl23 =
| data23 =
| extra-hdr =
| lbl31 =
| data31 =
| lbl32 =
| data32 =
| lbl33 =
| data33 =
}}
Parameters
All parameters are optional.
| Parameter | Notes |
|---|---|
| name | Character name to display in top header (default = PAGENAME) |
| series | Name of the television series or other fictional world or story in which character appears |
| multiple | Set to yes if the infobox describes more than one character |
| image | Image of the character. "File:" and wikilinking is not required. i.e. use |image=Example.png
|
| image_upright | The image size defaults to frameless (220px). The size should not be set to a value that would result in an image width greater than 270px. See help below for guidance on determining the value to be used. |
| alt | Alt text |
| caption | Caption to display below image |
| first | First appearance of the character |
| last | Last appearance of the character |
| creator | Name of the person who invented the character |
| portrayer | Name of the person(s) who portrayed the character |
| voice | Name of the person(s) who voiced the character |
| info-hdr | Text for display in second header (default = Information) |
| alias | Any aliases used by the character |
| extra-hdr | Text for display in third header (default = No third header) |
| lbl# | Label to display in left column where "#" is 1-5, 21-25, or 31-35 for custom fields under the 1st, 2nd, or 3rd headers respectively |
| data# | Text to display in the right column corresponding to the appropriate "lbl#" |
| tbl-class | Overall class for the table (default = infobox) |
| tbl-style | Overall styles for the table (default = width: 20em; text-align: left; font-size: 90%) |
| lbl-style | Style to apply to all cells in the left column |
| data-style | Style to apply to all cells in the right column |
| noinfo | disable the first "information" header |
| colour | Background color for header bars (default = #DEDEE2). The text color is automatically computed. Must meet AAA compliance standards outlines on WP:COLOR. |
Notes
{{#section:Template:Infobox Australian place/doc|image_upright}}
Example
| Criminal Minds character | |
| First appearance | "Pilot" (2005) |
|---|---|
| Last appearance | "Last One" (2018) |
| Created by | Agnes Nixon |
| Portrayed by | Soupy Sales |
| Nickname(s) | Doeboy |
| Aliases | Jack Dew |
| Gender | Male |
| Occupation | Law enforcement |
| Title | Detective |
| Family | Doe |
| Spouse(s) | Jane Doe |
| Children | John Doe, Jr. |
| Relatives |
Phil Doe (father) Nancy Doe (mother) |
| Religion | Kek |
| Nationality | American |
{{Infobox character
| name = John Doe
| series = Criminal Minds
| image =
| caption =
| first = "Pilot" (2005)
| last = "Last One" (2018)
| creator = Agnes Nixon
| portrayer = Soupy Sales
| nickname = Doeboy
| alias = Jack Dew
| gender = Male
| occupation = Law enforcement
| title = Detective
| family = Doe
| spouse = Jane Doe
| significantother =
| children = John Doe, Jr.
| relatives = Phil Doe (father)<br>Nancy Doe (mother)
| religion = [[Kek]]
| nationality = Republican
}}
Tracking categories
- Category:Pages using infobox character with unknown parameters (0)
- Category:Articles using Infobox character with multiple unlabeled fields (0)
- Category:Articles using Template:Infobox character with invalid colour combination (0)
See also
- Pass through templates
The following templates are designed for specific series and call this template to generate the infobox:
- {{Infobox Buffyverse character}}
- {{Infobox Law and Order character}}
- {{Infobox Pirates of the Caribbean character}}
- {{Infobox Tolkien character}}
- Related templates
- {{Infobox person}}
Template:Film and Television related infobox templates
| The above documentation is transcluded from Template:Infobox character/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |