Template:Infobox character/doc: Difference between revisions

From Black Cat Studios
Jump to navigationJump to search
No edit summary
No edit summary
Line 25: Line 25:
| spouse            = {{{spouse}}}
| spouse            = {{{spouse}}}
| significant_other = {{{significant_other}}}
| significant_other = {{{significant_other}}}
| availability      = {{{availability}}}
| kinks            = {{{kinks}}}
}}
}}


Line 46: Line 48:
| spouse            = <!-- or |spouses= -->
| spouse            = <!-- or |spouses= -->
| significant_other = <!-- or |significant_others= -->
| significant_other = <!-- or |significant_others= -->
| availability      = {{{availability}}}
| kinks            = {{{kinks}}}
}}</syntaxhighlight>
}}</syntaxhighlight>


Line 82: Line 86:
! scope="row" | voice
! scope="row" | voice
| Name of the individuals who voiced the character. Should be omitted if the same as "portrayer".  
| Name of the individuals who voiced the character. Should be omitted if the same as "portrayer".  
|-
! scope="row" | info-hdr
| Text for display in second header (default = Information).
|-
|-
! scope="row" | full_name
! scope="row" | full_name
Line 116: Line 117:
| The character's significant others.
| The character's significant others.
|-
|-
! scope="row" | extra-hdr
! scope="row" | availability
| Text for display in third header (default = No third header).
| Where the character can be found.
|-
! scope="row" | kinks
| What the character is into.
|-
|-
! scope="row" | lbl#
! scope="row" | lbl#
Line 156: Line 160:
"type": "string",
"type": "string",
"required": false,
"required": false,
"suggested": false,
"suggested": true,
"deprecated": false,
"deprecated": false,
"description": "Image of the character. \"File:\" and wikilinking is not required; i.e. use {{para|image|Example.png}}."
"description": "Image of the character. \"File:\" and wikilinking is not required; i.e. use {{para|image|Example.png}}."
Line 187: Line 191:
"label": "Creator",
"label": "Creator",
"type": "string",
"type": "string",
"required": false,
"required": true,
"suggested": false,
"suggested": true,
"deprecated": false,
"deprecated": false,
"description": "Name of the individuals who are credited with the creation of the character."
"description": "Name of the individuals who are credited with the creation of the character."
Line 196: Line 200:
"type": "string",
"type": "string",
"required": false,
"required": false,
"suggested": false,
"suggested": true,
"deprecated": false,
"deprecated": false,
"description": "Name of the individuals who designed the character."
"description": "Name of the individuals who designed the character."
Line 207: Line 211:
"deprecated": false,
"deprecated": false,
"description": "Name of the individuals who voiced the character (if different from portrayer or there is no portrayer)"
"description": "Name of the individuals who voiced the character (if different from portrayer or there is no portrayer)"
},
"lbl1": {
"label": "Label 1",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Label to display in left column for custom fields under the 1st header."
},
"data1": {
"label": "Data 1",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Text to display in the right column corresponding to lbl1."
},
"lbl2": {
"label": "Label 2",
"inherits": "lbl1"
},
"data2": {
"label": "Data 2",
"description": "Text to display in the right column corresponding to lbl2.",
"inherits": "data1"
},
"lbl3": {
"label": "Label 3",
"inherits": "lbl1"
},
"data3": {
"label": "Data 3",
"description": "Text to display in the right column corresponding to lbl3.",
"inherits": "data1"
},
"lbl4": {
"label": "Label 4",
"inherits": "lbl1"
},
"data4": {
"label": "Data 4",
"description": "Text to display in the right column corresponding to lbl4.",
"inherits": "data1"
},
"lbl5": {
"label": "Label 5",
"inherits": "lbl1"
},
"data5": {
"label": "Data 5",
"description": "Text to display in the right column corresponding to lbl5.",
"inherits": "data1"
},
},
"noinfo": {
"noinfo": {
Line 267: Line 219:
"deprecated": false,
"deprecated": false,
"description": "Disable the first \"In-universe information\" header."
"description": "Disable the first \"In-universe information\" header."
},
"info-hdr": {
"label": "Second header text",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Text for display in second header (default = Information)."
},
},
"full_name": {
"full_name": {
Line 404: Line 348:
"description": "The character's significant others. If there is only one significant_other, use {{para|significant_other}}."
"description": "The character's significant others. If there is only one significant_other, use {{para|significant_other}}."
},
},
"extra-hdr": {
"availability": {
"label": "Third header text",
"label": "Availability",
"type": "string",
"required": false,
"suggested": true,
"deprecated": false,
"description": "The character's availability."
},
"kinks": {
"label": "Kinks",
"type": "string",
"type": "string",
"required": false,
"required": false,
"suggested": false,
"suggested": true,
"deprecated": false,
"deprecated": false,
"description": "Text for display in third header (default = No third header)."
"description": "The character's kinks."
}
}
},
},
Line 420: Line 372:
=== All parameters (not for general use) ===
=== All parameters (not for general use) ===
{{Collapse top|title=Complete list of parameters}}
{{Collapse top|title=Complete list of parameters}}
{{Parameter names example|_template=| alias | alt | based_on | caption | color | creator | designer | extra-hdr | full_name | gender | image | image_size | image_upright | info-hdr | name | nickname | occupation | position | race | significant_other | species | spouse | title | voice }}
{{Parameter names example|_template=| alias | alt | availability| caption | color | creator | designer | full_name | gender | image | image_size | image_upright | kinks | name | nickname | occupation | position | race | significant_other | species | spouse | title | voice }}


<syntaxhighlight lang="wikitext">
<syntaxhighlight lang="wikitext">
Line 434: Line 386:
| voice              =  
| voice              =  
| noinfo            =  
| noinfo            =  
| info-hdr          =
| full_name          =  
| full_name          =  
| nickname          = <!-- or |nicknames= -->
| nickname          = <!-- or |nicknames= -->
Line 445: Line 396:
| spouse            = <!-- or |spouses= -->
| spouse            = <!-- or |spouses= -->
| significant_other  = <!-- or |significant_others= -->
| significant_other  = <!-- or |significant_others= -->
| extra-hdr          =  
| availability      = {{{availability}}}
| kinks            = {{{kinks}}}
}}</syntaxhighlight>
}}</syntaxhighlight>
{{Collapse bottom}}
{{Collapse bottom}}
Line 462: Line 414:
| spouse            = Jane Doe
| spouse            = Jane Doe
| significant_other  =  
| significant_other  =  
| availability      = 7a - 7p
| kinks            = Transformation
}}
}}


Line 477: Line 431:
  | spouse            = Jane Doe
  | spouse            = Jane Doe
  | significant_other  =  
  | significant_other  =  
| availability      = 7a - 7p
| kinks            = Transformation
  }}
  }}
</syntaxhighlight>
</syntaxhighlight>

Revision as of 01:29, 20 June 2023

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}}}|frameless|alt={{{alt}}}|upright=1]]
{{{caption}}}
Created by{{{creator}}}
Designed by{{{designer}}}
Voiced by{{{voice}}}
Full name{{{full_name}}}
Alias{{{alias}}}
Nickname{{{nickname}}}
Species{{{species}}}
Gender{{{gender}}}
Title{{{title}}}
Occupation{{{occupation}}}
Spouse{{{spouse}}}
Significant other{{{significant_other}}}


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

Infobox character/doc

</syntaxhighlight>

Parameters

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

Parameter Notes
color Background color for header bars (default = #DEDEE2). The text color is automatically determined. Must meet AAA compliance standards outlines on WP:COLOR.
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 per WP:MOSALT.
caption A caption explaining the image.
creator Name of the individuals who are credited with the creation of the character.
designer Name of the individuals who designed the character.
voice Name of the individuals who voiced the character. Should be omitted if the same as "portrayer".
full_name The character's full name.
  • nickname
  • nicknames
Any nicknames used by the character.
  • alias
  • aliases
Any aliases used by the character.
  • species
  • race
The species or race of the character. Use for non-human characters only.
gender The gender of the character. Use only if not obvious.
title Titles the character was known by.
  • occupation
  • position
The character's job or role.
class The character class for RPG characters.
  • spouse
  • spouses
The character's spouses.
  • significant_other
  • significant_others
The character's significant others.
availability Where the character can be found.
kinks What the character is into.
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
Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Infobox character

Creates an infobox for a fictional character of any type.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
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).

Stringrequired
Imageimage

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

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.

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.

Stringrequired
Designerdesigner

Name of the individuals who designed the character.

Stringsuggested
Voice actorvoice

Name of the individuals who voiced the character (if different from portrayer or there is no portrayer)

Stringoptional
Disable second headernoinfo

Disable the first "In-universe information" header.

Stringoptional
Full namefull_name

The character's full name.

Stringoptional
Nicknamenickname

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

Stringoptional
Nicknamesnicknames

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

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
Speciesspecies

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

Stringoptional
Racerace

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

Stringoptional
Gendergender

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

Stringoptional
Titletitle

Titles the character was known by.

Stringoptional
Occupationoccupation

The character's job or role.

Stringoptional
Positionposition

The character's job or role.

Stringoptional
Classclass

The character class for RPG characters.

Stringoptional
Spousespouse

The character's spouses.

Stringoptional
Spousesspouses

The character's spouses.

Stringoptional
Significant othersignificant_other

The character's significant others. If there is more than one significant_other, use {{para|significant_others}} and separate multiple entries using {{tl|Plainlist}}.

Stringoptional
Significant otherssignificant_others

The character's significant others. If there is only one significant_other, use {{para|significant_other}}.

Stringoptional
Availabilityavailability

The character's availability.

Stringsuggested
Kinkskinks

The character's kinks.

Stringsuggested

All parameters (not for general use)

Complete list of parameters
{{{name}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright={{{image_upright}}}]]
{{{caption}}}
Created by{{{creator}}}
Designed by{{{designer}}}
Voiced by{{{voice}}}
Full name{{{full_name}}}
Alias{{{alias}}}
Nickname{{{nickname}}}
Species{{{species}}}
Gender{{{gender}}}
Title{{{title}}}
Occupation{{{occupation}}}
Spouse{{{spouse}}}
Significant other{{{significant_other}}}


<syntaxhighlight lang="wikitext">

Infobox character/doc

</syntaxhighlight>

Example

John Doe
Created byAgnes Nixon
AliasJack Dew
NicknameDoeboy
GenderMale
TitleDetective
OccupationLaw enforcement
SpouseJane Doe


<syntaxhighlight lang="wikitext">

John Doe
Created byAgnes Nixon
AliasJack Dew
NicknameDoeboy
GenderMale
TitleDetective
OccupationLaw enforcement
SpouseJane Doe

</syntaxhighlight>

Tracking categories

Supporting templates

See also