Template:Infobox character: Difference between revisions

From Wings of Fire: The New World Wiki
fix text color in dark mode
 
Rusty (talk | contribs)
don't need this, we're not on wikipedia
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Main other|{{Short description|Fictional character|noreplace|pagetype=Articles}}}}
{{Infobox
{{Infobox
| bodystyle    = border-spacing: 2px 5px;
| bodystyle    = border-spacing: 2px 5px;
Line 5: Line 4:
| above        = {{If empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }}
| above        = {{If empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }}
| abovestyle  = background-color: #DEDEE2; color:black;
| abovestyle  = background-color: #DEDEE2; color:black;
| subheader    = {{#if: {{{series|}}}{{{franchise|}}} | {{#if: {{{series|}}} | ''{{{series|}}}'' | {{{franchise|}}} }} character{{#if: {{{multiple|}}} | s }} }}


| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|}}}|alt={{{alt|}}}}}
| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|}}}|alt={{{alt|}}}}}
Line 12: Line 9:


| headerstyle  = background-color: #DEDEE2; color:black;
| headerstyle  = background-color: #DEDEE2; color:black;
| label1      = First appearance
| data1        = {{#if: {{{first|}}} | {{{first|}}} | {{#invoke:Formatted appearance|getFormattedAppearance|major_work={{{first_major|}}} |minor_work={{{first_minor|}}} |issue={{{first_issue|}}} |date={{{first_date|}}} }} }}
| label2      = First game
| data2        = {{{firstgame|}}}
| label3      = Last appearance
| data3        = {{#if: {{{last|}}} | {{{last|}}} | {{#invoke:Formatted appearance|getFormattedAppearance|major_work={{{last_major|}}} |minor_work={{{last_minor|}}} |issue={{{last_issue|}}} |date={{{last_date|}}} }} }}


| label4      = Created by
| label4      = Created by
| data4        = {{{creator|}}}
| data4        = {{{creator|}}}
| label5      = Based on
| data5        = {{{based_on|}}}
| label6      = Adapted by
| data6        = {{{adapted_by|}}}
| label7      = Designed by
| data7        = {{{designer|}}}
| label8      = Portrayed by
| data8        = {{{portrayer|}}}
| label9      = Voiced by
| data9        = {{{voice|}}}
| label10      = Motion capture
| data10      = {{{motion_actor|}}}


| label11      = {{{lbl1|}}}
| label11      = {{{lbl1|}}}
Line 58: Line 28:
| data15      = {{{data5|}}}
| data15      = {{{data5|}}}


| header20    = {{#if: {{{noinfo|}}} || {{#if: {{{full_name|}}} {{{alias|}}} {{{aliases|}}} {{{nickname|}}} {{{nicknames|}}} {{{race|}}} {{{species|}}} {{{gender|}}} {{{title|}}} {{{occupation|}}} {{{position|}}} {{{class|}}} {{{affiliation|}}} {{{alignment|}}} {{{fighting_style|}}} {{{weapon|}}} {{{family|}}} {{{spouse|}}} {{{spouses|}}} {{{significant_other|}}} {{{significant_others|}}} {{{children|}}} {{{relatives|}}} {{{religion|}}} {{{origin|}}} {{{home|}}} {{{nationality|}}} {{{data21|}}} {{{data22|}}} {{{data23|}}} {{{data24|}}} {{{data25|}}} | {{If empty |{{{info-hdr|}}} |In-universe information }} }} }}
| header20    = {{#if: {{{noinfo|}}} || {{#if: {{{full_name|}}} {{{alias|}}} {{{aliases|}}} {{{tribe|}}} {{{gender|}}} {{{title|}}} {{{occupation|}}} {{{affiliation|}}} {{{family|}}} {{{spouse|}}} {{{significant_other|}}} {{{children|}}} {{{relatives|}}} {{{year_hatched|}} {{{data21|}}} {{{data22|}}} {{{data23|}}} {{{data24|}}} {{{data25|}}} | {{If empty |{{{info-hdr|}}} |In-universe information }} }} }}


| label21      = Full name
| label21      = Full name
Line 66: Line 36:
| data22      = {{If empty |{{{alias|}}} |{{{aliases|}}} }}
| data22      = {{If empty |{{{alias|}}} |{{{aliases|}}} }}


| label23      = {{#if: {{{nickname|}}} | Nickname | Nicknames }}
| label24      = Tribe
| data23      = {{If empty |{{{nickname|}}} |{{{nicknames|}}} }}
| data24      = {{{tribe|}}}
 
| label24      = {{#if: {{{race|}}} | Race | Species }}
| data24      = {{If empty |{{{race|}}} |{{{species|}}} }}


| label25      = Gender
| label25      = Gender
Line 78: Line 45:
| data26      = {{{title|}}}
| data26      = {{{title|}}}


| label27      = {{#if: {{{occupation|}}} | Occupation | {{#if: {{{position|}}} | Position | Class }} }}
| label27      = Occupation
| data27      = {{If empty |{{{occupation|}}} |{{{position|}}} |{{{class|}}} }}
| data27      = {{{occupation|}}}


| label28      = {{#if: {{{affiliation|}}} | Affiliation | Alignment }}
| label28      = Affiliation
| data28      = {{If empty |{{{affiliation|}}} |{{{alignment|}}} }}
| data28      = {{{affiliation|}}}
 
| label29      = Fighting style
| data29      = {{{fighting_style|}}}
 
| label30      = Weapon
| data30      = {{{weapon|}}}


| label31      = Family
| label31      = Family
| data31      = {{{family|}}}
| data31      = {{{family|}}}


| label32      = {{#if: {{{spouse|}}} | Spouse | Spouses }}
| label32      = Spouse
| data32      = {{If empty |{{{spouse|}}} |{{{spouses|}}} }}
| data32      = {{{spouse|}}}


| label33      = {{#if: {{{significant_other|}}} | Significant {{nowrap|other}} | Significant {{nowrap|others}} }}
| label33      = Significant {{nowrap|other}}
| data33      = {{If empty |{{{significant_other|}}} |{{{significant_others|}}} }}
| data33      = {{{significant_other|}}}


| label34      = Children
| label34      = Children
Line 105: Line 66:
| data35      = {{{relatives|}}}
| data35      = {{{relatives|}}}


| label36      = Religion
| label36      = Year of hatching
| data36      = {{{religion|}}}
| data36      = {{{year_hatched|}}}
 
| label37      = {{#if: {{{origin|}}} | Origin | Home }}
| data37      = {{If empty |{{{origin|}}} |{{{home|}}} }}
 
| label38      = Nationality
| data38      = {{{nationality|}}}


| label39      = {{{lbl21|}}}
| label39      = {{{lbl21|}}}
Line 153: Line 108:
  | {{#if: {{{lbl32|}}} {{{data32|}}} {{{lbl22|}}} {{{data22|}}} {{{lbl2|}}} {{{data2|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|2{{PAGENAME}}]]
  | {{#if: {{{lbl32|}}} {{{data32|}}} {{{lbl22|}}} {{{data22|}}} {{{lbl2|}}} {{{data2|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|2{{PAGENAME}}]]
}} }} }} }}}}<!--
}} }} }} }}}}<!--
-->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox character with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox character]] with unknown parameter "_VALUE_"|showblankpositional=1| adapted_by | affiliation | alias | aliases | alignment | alt | caption | children | class | creator | based_on | data1 | data2 | data3 | data4 | data5 | data21 | data22 | data23 | data24 | data25 | data31 | data32 | data33 | data34 | data35 | designer | extra-hdr | family | fighting_style | first | first_date | first_issue | first_major | first_minor | firstgame | franchise | full_name | gender | home | image | image_size | image_upright | info-hdr | last | last_date | last_issue | last_major | last_minor | lbl1 | lbl2 | lbl3 | lbl4 | lbl5 | lbl21 | lbl22 | lbl23 | lbl24 | lbl25 | lbl31 | lbl32 | lbl33 | lbl34 | lbl35 | motion_actor | multiple | name | nationality | nickname | nicknames | noinfo | occupation | origin | portrayer | position | race | relatives | religion | series | significant_other | significant_others | species | spouse | spouses | title | voice | weapon }}<noinclude>
-->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox character with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox character]] with unknown parameter "_VALUE_"|showblankpositional=1| affiliation | alias | aliases | alt | caption | children | creator | data1 | data2 | data3 | data4 | data5 | data21 | data22 | data23 | data24 | data25 | data31 | data32 | data33 | data34 | data35 | extra-hdr | family | full_name | gender | image | image_size | image_upright | info-hdr | lbl1 | lbl2 | lbl3 | lbl4 | lbl5 | lbl21 | lbl22 | lbl23 | lbl24 | lbl25 | lbl31 | lbl32 | lbl33 | lbl34 | lbl35 | name | noinfo | occupation | tribe | relatives | significant_other | year_hatched | spouse | title }}<noinclude>
{{Documentation}}
{{Documentation}}
<!-- Add categories to the /doc subpage, not here! -->
<!-- Add categories to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 00:34, 26 November 2024

In-universe information
Template documentation

Infobox character is used to create an infobox for a fictional character of any type.

Usage

The blank form immediately below shows the most commonly used fields, and complete instructions are listed further down the page.

{{{name}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright={{{image_upright}}}]]
{{{caption}}}
Created by{{{creator}}}
{{{lbl1}}}{{{data1}}}
{{{lbl2}}}{{{data2}}}
{{{lbl3}}}{{{data3}}}
{{{lbl4}}}{{{data4}}}
{{{lbl5}}}{{{data5}}}
{{{info-hdr}}}
Full name{{{full_name}}}
Alias{{{alias}}}
Gender{{{gender}}}
Title{{{title}}}
Occupation{{{occupation}}}
Affiliation{{{affiliation}}}
Family{{{family}}}
Spouse{{{spouse}}}
Significant other{{{significant_other}}}
Children{{{children}}}
Relatives{{{relatives}}}
Year of hatching{{{year_hatched}}}
{{{lbl21}}}{{{data21}}}
{{{lbl22}}}{{{data22}}}
{{{lbl23}}}{{{data23}}}
{{{lbl24}}}{{{data24}}}
{{{lbl25}}}{{{data25}}}
{{{extra-hdr}}}
{{{lbl31}}}{{{data31}}}
{{{lbl32}}}{{{data32}}}
{{{lbl33}}}{{{data33}}}
{{{lbl34}}}{{{data34}}}
{{{lbl35}}}{{{data35}}}

<syntaxhighlight lang="wikitext" style="overflow: auto;">

Infobox character
In-universe information
</syntaxhighlight>

Parameters

All parameters are optional. Separate multiple entries using {{Plainlist}}.

Parameter Notes
name Character name to display in top header (default = PAGENAME).
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.
alt Alt text for image.
caption A caption explaining the image.
creator Name of the individuals who are credited with the creation of the character.
noinfo Disable the first "In-universe information" header.
info-hdr Text for display in second header (default = Information).
full_name The character's full name.
  • alias
  • aliases
Any aliases used by the character.
tribe The tribe of the character.
gender The gender of the character. Use only if not obvious.
title Titles the character was known by.
affiliation The kingdom or nation the character belongs to.
family The character's family members.
spouse The character's spouse.
significant_other The character's significant other.
children The characters's children.
relatives The characters's relatives.
year_hatched The year of the character's hatching.
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#".

TemplateData

TemplateData


Infobox character

[[Category:Templates using TemplateData{{#translation:}}]]

Creates an infobox for a fictional character of any type.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

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

Stringoptional
Imageimage

Image of the character. "File:" and wikilinking is not required; i.e. use {{para|image|Example.png}}.

Stringoptional
Image sizeimage_size

A fixed pixel width for the image.

Example
125px
Unknownoptional
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.

Stringoptional
Altalt

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

Stringoptional
Captioncaption

A caption explaining the image.

Stringoptional
Creatorcreator

Name of the individuals who are credited with the creation of the character.

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 "In-universe information" header.

Stringoptional
Second header textinfo-hdr

Text for display in second header (default = Information).

Stringoptional
Full namefull_name

The character's full name.

Stringoptional
Aliasalias

An alias used by the character. If there is more than one alias, use {{para|aliases}} and separate multiple entries using {{tl|Plainlist}}.

Stringoptional
Aliasaliases

Any aliases used by the character. If there is only one alias, use {{para|alias}}.

Stringoptional
Tribetribe

The tribe of the character.

Stringoptional
Gendergender

The gender of the character.

Stringoptional
Titletitle

Titles the character was known by.

Stringoptional
Occupationoccupation

The character's job or role.

Stringoptional
Affiliationaffiliation

The kingdom or nation the character belongs to.

Stringoptional
Familyfamily

The character's family members.

Stringoptional
Spousespouse

The character's spouse.

Stringoptional
Significant othersignificant_other

The character's significant other.

Stringoptional
Childrenchildren

The characters's children

Stringoptional
Relativesrelatives

The characters's relatives

Stringoptional
Year of hatchingyear_hatched

The year of the character's hatching

Stringoptional
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

<syntaxhighlight lang="wikitext">

Infobox character
In-universe information
</syntaxhighlight>

Example

John Doe
Created byAgnes Nixon
In-universe information
AliasJack Dew
GenderMale
TitleDetective
OccupationLaw enforcement
FamilyDoe
SpouseJane Doe
ChildrenJohn Doe, Jr.
Relatives
  • Phil Doe (father)
  • Nancy Doe (mother)

<syntaxhighlight lang="wikitext">

John Doe
Created byAgnes Nixon
In-universe information
AliasJack Dew
GenderMale
TitleDetective
OccupationLaw enforcement
FamilyDoe
SpouseJane Doe
ChildrenJohn Doe, Jr.
Relatives
  • Phil Doe (father)
* Nancy Doe (mother)

</syntaxhighlight>

Tracking categories

See also