Difference between revisions of "Template:Infobox character"

From Nordic Larp Wiki
Jump to navigation Jump to search
en>Gonnym
(No difference)

Revision as of 00:45, 29 December 2018

Template documentation[view] [edit] [history] [purge]

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.

{{{name}}}
{{{series}}} character
[[File:{{{image}}}|frameless|alt={{{alt}}}|upright=1|{{{alt}}}]]
{{{caption}}}
First appearance{{{first}}}
Last appearance{{{last}}}
Created by{{{creator}}}
Designed by{{{designer}}}
Portrayed by{{{portrayer}}}
Voiced by{{{voice}}}
Motion capture{{{motion_actor}}}
Information
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}}}
Position{{{position}}}
{{Infobox character
| color            = <!-- headers background colour; the foreground colour is automatically computed -->
| name             = 
| series           = <!-- use without the italic on the outside -->
| image            = 
| alt              = 
| caption          = 
| first            = 
| last             = 
| creator          = 
| designer         = 
| portrayer        = 
| voice            = 
| motion_actor     = 
| fullname         = 
| nickname         = 
| alias            = 
| species          = <!-- for non-humans only -->
| gender           = <!-- if not obvious -->
| occupation       = 
| affiliation      = 
| title            = 
| family           = 
| spouse           = 
| significantother = 
| children         = 
| relatives        = 
| religion         = 
| nationality      = 
| position         = 
}}

Parameters

All parameters are optional.

Parameter Notes
color Background color for header bars (default = #DEDEE2). The text color is automatically computed. Must meet AAA compliance standards outlines on WP:COLOR.
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 for image per WP:MOSALT
caption A caption explaining the image
first First appearance of the character
firstgame First appearance in a game of the character
last Last appearance of the character
creator Name of the people who created the character
designer Name of the people who designed the character
portrayer Name of the people who portrayed the character
voice Name of the people who voiced the character
motion_actor Name of the people who portrayed the character in motion capture
noinfo Disable the first "information" header
info-hdr Text for display in second header (default = Information)
alias Any aliases used by the character
species The race or species of the character. Use for non-human characters only.
gender The gender of the character. Use only if not obvious.
occupation The character's job or role
affiliation The groups or teams the character is belongs to
title Titles the character was known by
family The character's family members
spouse The character's spouses
significantother The character's significant others
children The characters's children
relatives The characters's relatives
religion The character's religion
nationality The character's nationality
position The character's position in an organization
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#"
lbl-style Style to apply to all cells in the left column
data-style Style to apply to all cells in the right column

TemplateData

TemplateData documentation used by VisualEditor and other tools
See the monthly error report for this template.

TemplateData for Infobox character

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Embedembed

Stringoptional
Colorcolor colour

Background color for header bars (default = #DEDEE2). The text color is automatically computed. Must meet AAA compliance standards outlines on [[WP:COLOR]].

Stringoptional
Namename

Character name to display in top header (default = PAGENAME)

Stringsuggested
Seriesseries

Name of the television series or other fictional world or story in which character appears

Stringoptional
Multiplemultiple

Set to yes if the infobox describes more than one character

Stringoptional
Imageimage

Image of the character. "File:" and wikilinking is not required. i.e. use {{para|image|<var><nowiki>Example.png</nowiki></var>}}

Stringsuggested
Image Uprightimage_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 [[#Calculating "image_upright"|help below]] for guidance on determining the value to be used.

Stringoptional
Altalt

Alt text for image per [[WP:MOSALT]]

Stringsuggested
Captioncaption

A caption explaining the image

Stringsuggested
Label stylelbl-style

Style to apply to all cells in the left column

Stringoptional
Data styledata-style

Style to apply to all cells in the right column

Stringoptional
Firstfirst

First appearance of the character

Stringsuggested
First gamefirstgame

First appearance in a game of the character

Stringsuggested
Lastlast

Last appearance of the character

Stringsuggested
Creatorcreator

Name of the people who created the character

Stringoptional
Designerdesigner

Name of the people who designed the character

Stringoptional
Portrayerportrayer

Name of the people who portrayed the character

Stringoptional
Voice actorvoice

Name of the people who voiced the character

Stringoptional
Motion actormotion_actor

Name of the people who portrayed the character in motion capture

Stringoptional
Label 1lbl1

Label to display in left column for custom fields under the 1st header

Stringoptional
Data 1data1

Text to display in the right column corresponding to lbl1

Stringoptional
Label 2lbl2

Label to display in left column for custom fields under the 1st header

Stringoptional
Data 2data2

Text to display in the right column corresponding to lbl2

Stringoptional
Label 3lbl3

Label to display in left column for custom fields under the 1st header

Stringoptional
Data 3data3

Text to display in the right column corresponding to lbl3

Stringoptional
Label 4lbl4

Label to display in left column for custom fields under the 1st header

Stringoptional
Data 4data4

Text to display in the right column corresponding to lbl4

Stringoptional
Label 5lbl5

Label to display in left column for custom fields under the 1st header

Stringoptional
Data 5data5

Text to display in the right column corresponding to lbl5

Stringoptional
Disable second headernoinfo

Disable the first "information" header

Stringoptional
Second header textinfo-hdr

Text for display in second header (default = Information)

Stringoptional
Aliasalias

Any aliases used by the character

Stringoptional
Speciesspecies

The race or species of the character. Use for non-human characters only.

Stringoptional
Gendergender

The gender of the character. Use only if not obvious.

Stringoptional
Occupationoccupation

The character's job or role

Stringoptional
Affiliationaffiliation

The groups or teams the character is belongs to

Stringoptional
Titletitle

Titles the character was known by

Stringoptional
Familyfamily

The character's family members

Stringoptional
Spousespouse

The character's spouses

Stringoptional
Significant othersignificantother

The character's significant others

Stringoptional
Childrenchildren

The characters's children

Stringoptional
Relativesrelatives

The characters's relatives

Stringoptional
Religion religion

The character's religion

Stringoptional
Nationalitynationality

The character's nationality

Stringoptional
Positionposition

The character's position

Stringsuggested
Label 21lbl21

Label to display in left column for custom fields under the 2nd header

Stringoptional
Data 21data21

Text to display in the right column corresponding to lbl21

Stringoptional
Label 22lbl22

Label to display in left column for custom fields under the 2nd header

Stringoptional
Data 22data22

Text to display in the right column corresponding to lbl22

Stringoptional
Label 23lbl23

Label to display in left column for custom fields under the 2nd header

Stringoptional
Data 23data23

Text to display in the right column corresponding to lbl23

Stringoptional
Label 24lbl24

Label to display in left column for custom fields under the 2nd header

Stringoptional
Data 24data24

Text to display in the right column corresponding to lbl24

Stringoptional
Label 25lbl25

Label to display in left column for custom fields under the 2nd header

Stringoptional
Data 25data25

Text to display in the right column corresponding to lbl25

Stringoptional
Third header textextra-hdr

Text for display in third header (default = No third header)

Stringoptional
Label 31lbl31

Label to display in left column for custom fields under the 3rd header

Stringoptional
Data 31data31

Text to display in the right column corresponding to lbl31

Stringoptional
Label 32lbl32

Label to display in left column for custom fields under the 3rd header

Stringoptional
Data 32data32

Text to display in the right column corresponding to lbl32

Stringoptional
Label 33lbl33

Label to display in left column for custom fields under the 3rd header

Stringoptional
Data 33data33

Text to display in the right column corresponding to lbl33

Stringoptional
Label 34lbl34

Label to display in left column for custom fields under the 3rd header

Stringoptional
Data 34data34

Text to display in the right column corresponding to lbl34

Stringoptional
Label 35lbl35

Label to display in left column for custom fields under the 3rd header

Stringoptional
Data 35data35

Text to display in the right column corresponding to lbl35

Stringoptional

All parameters (not for general use)

Complete list of parameters
{{Infobox character
| color            = <!-- headers background colour; the foreground colour is automatically computed -->
| name             = 
| series           = <!-- use without the italic on the outside -->
| multiple         = 
| image            = 
| image_upright    = 
| alt              = 
| caption          = 
| lbl-style        = 
| data-style       = 
| first            = 
| firstgame        = 
| last             = 
| creator          = 
| designer         = 
| portrayer        = 
| voice            = 
| motion_actor     = 
| lbl1             = 
| data1            = 
| lbl2             = 
| data2            = 
| lbl3             = 
| data3            = 
| lbl4             = 
| data4            = 
| lbl5             = 
| data5            = 
| noinfo           = 
| info-hdr         = 
| fullname         = 
| nickname         = 
| alias            = 
| species          = <!-- for non-humans only -->
| gender           = <!-- if not obvious -->
| occupation       = 
| affiliation      = 
| title            = 
| family           = 
| spouse           = 
| significantother = 
| children         = 
| relatives        = 
| religion         = 
| nationality      = 
| position         = 
| lbl21            = 
| data21           = 
| lbl22            = 
| data22           = 
| lbl23            = 
| data23           = 
| lbl24            = 
| data24           = 
| lbl25            = 
| data25           = 
| extra-hdr        = 
| lbl31            = 
| data31           = 
| lbl32            = 
| data32           = 
| lbl33            = 
| data33           = 
| lbl34            = 
| data34           = 
| lbl35            = 
| data35           = 
}}

Notes

Calculating "image_upright"

The image_upright parameter, and image2_upright and logo_upright where applicable, is/are provided so as to facilitate the use of scalable images in this infobox, in accordance with the instructions at WP:IMAGESIZE, which advises against the use of px (e.g. thumb|300px), as this forces a fixed image width. Scalable images respect the user's base preference (which may have been selected for that user's particular devices). Module:InfoboxImage, which is used in this infobox, accommodates the use of scaling. However, setting the appropriate scale is slightly more complex than setting a raw "px" value. This guide provides a quick conversion table to make the process of setting a scale easier. It is based on a default thumbnail setting of 220px (size is default multiplied by upright value then rounded to nearest 10).

"px" setting image_upright=
170 0.75
180 0.8
190 0.85
200 0.9
210 0.95
220 1
230 1.05
240 1.1
250 1.15
260 1.2
270 1.23
280 1.25
290 1.3
300 1.35

Example

John Doe
Criminal Minds character
First appearance"Pilot" (2005)
Last appearance"Last One" (2018)
Created byAgnes Nixon
Portrayed bySoupy Sales
Information
Nickname(s)Doeboy
AliasesJack Dew
GenderMale
OccupationLaw enforcement
TitleDetective
FamilyDoe
Spouse(s)Jane Doe
ChildrenJohn Doe, Jr.
RelativesPhil Doe (father)
Nancy Doe (mother)
ReligionChristian
NationalityAmerican
{{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    = [[Christianity|Christian]]
| nationality = American
}}

Tracking categories

Supporting templates

See also

Pass through templates

The following templates are designed for specific series and call this template to generate the infobox:

Related templates