Template:Infobox character: Difference between revisions
m (1 revision imported) |
No edit summary |
||
Line 4: | Line 4: | ||
| above = {{If empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }} | | above = {{If empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }} | ||
| abovestyle = background: {{If empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} | color: {{Greater color contrast ratio|{{If empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }} | | abovestyle = background: {{If empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} | color: {{Greater color contrast ratio|{{If empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}}} | ||
Line 11: | Line 9: | ||
| headerstyle = background: {{If empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} |color: {{Greater color contrast ratio|{{If empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }} | | headerstyle = background: {{If empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} |color: {{Greater color contrast ratio|{{If empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }} | ||
| label4 = Created by | | label4 = Created by | ||
| data4 = {{{creator|}}} | | data4 = {{{creator|}}} | ||
| label7 = Designed by | | label7 = Designed by | ||
| data7 = {{{designer|}}} | | data7 = {{{designer|}}} | ||
| label9 = Voiced by | | label9 = Voiced by | ||
| data9 = {{{voice|}}} | | data9 = {{{voice|}}} | ||
| header20 = {{#if: {{{noinfo|}}} || {{#if: {{{full_name|}}} {{{alias|}}} {{{aliases|}}} {{{nickname|}}} {{{nicknames|}}} {{{race|}}} {{{species|}}} {{{gender|}}} {{{title|}}} {{{occupation|}}} {{{position|}}} {{{class|}}} {{{spouse|}}} {{{spouses|}}} {{{significant_other|}}} {{{significant_others|}}} | {{If empty |{{{info-hdr|}}} |In-universe information }} }} }} | |||
| header20 = {{#if: {{{noinfo|}}} || {{#if: {{{full_name|}}} {{{alias|}}} {{{aliases|}}} {{{nickname|}}} {{{nicknames|}}} {{{race|}}} {{{species|}}} {{{gender|}}} {{{title|}}} {{{occupation|}}} {{{position|}}} {{{class | |||
| label21 = Full name | | label21 = Full name | ||
Line 79: | Line 41: | ||
| label27 = {{#if: {{{occupation|}}} | Occupation | {{#if: {{{position|}}} | Position | Class }} }} | | label27 = {{#if: {{{occupation|}}} | Occupation | {{#if: {{{position|}}} | Position | Class }} }} | ||
| data27 = {{If empty |{{{occupation|}}} |{{{position|}}} |{{{class|}}} }} | | data27 = {{If empty |{{{occupation|}}} |{{{position|}}} |{{{class|}}} }} | ||
| label32 = {{#if: {{{spouse|}}} | Spouse | Spouses }} | | label32 = {{#if: {{{spouse|}}} | Spouse | Spouses }} | ||
Line 98: | Line 48: | ||
| data33 = {{If empty |{{{significant_other|}}} |{{{significant_others|}}} }} | | data33 = {{If empty |{{{significant_other|}}} |{{{significant_others|}}} }} | ||
}} | |||
{{#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_" | alias | aliases | alt | caption | class | color | colour | creator | designer | full_name | gender | image | image_size | image_upright | info-hdr | name | nickname | nicknames | noinfo | occupation | position | race | significant_other | significant_others | species | spouse | spouses | title | voice }}<noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories to the /doc subpage, not here! --> | <!-- Add categories to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Revision as of 01:00, 20 June 2023
This template is used on approximately 7,700 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Lua-Logo.svg | This template uses Lua: |
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]] | |
Created by | {{{creator}}} |
Designed by | {{{designer}}} |
Voiced by | {{{voice}}} |
In-universe information | |
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 |
---|
</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. |
|
Any nicknames used by the character. |
|
Any aliases used by the character. |
|
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. |
|
The character's job or role. |
class | The character class for RPG characters. |
|
The character's spouses. |
|
The character's significant others. |
|
Where the character can be found. |
|
What the character is into. |
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.
|
All parameters (not for general use)
Complete list of parameters
| ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
</syntaxhighlight> |
Example
John Doe | |
---|---|
Created by | Agnes Nixon |
In-universe information | |
Alias | Jack Dew |
Nickname | Doeboy |
Gender | Male |
Title | Detective |
Occupation | Law enforcement |
Spouse | Jane Doe |
<syntaxhighlight lang="wikitext">
John Doe | |
---|---|
Created by | Agnes Nixon |
In-universe information | |
Alias | Jack Dew |
Nickname | Doeboy |
Gender | Male |
Title | Detective |
Occupation | Law enforcement |
Spouse | Jane Doe |
</syntaxhighlight>
Tracking categories
- Category:Pages using infobox character with unknown parameters (0)
- Category:Articles using Infobox character with multiple unlabeled fields (0)
- Category:Articles using infoboxes for fictional elements with invalid color combination (0)
Supporting templates
See also
- {{Infobox person}}