Template:Infobox character: Difference between revisions

From Black Cat Studios
Jump to navigationJump to search
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
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 }}; }}
| subheader    = {{#if: {{{series|}}}{{{franchise|}}} | {{#if: {{{series|}}} | ''{{{series|}}}'' | {{{franchise|}}} }} character{{#if: {{{multiple|}}} | s }} }}


| 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 12: Line 10:
| 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 }}; }}


| label1       = First appearance
| label1      = Created by
| data1        = {{#if: {{{first|}}} | {{{first|}}} | {{#invoke:Formatted appearance|getFormattedAppearance|major_work={{{first_major|}}} |minor_work={{{first_minor|}}} |issue={{{first_issue|}}} |date={{{first_date|}}} }} }}
| data1       = {{{creator|}}}
 
| 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
| 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|}}}
| data11      = {{{data1|}}}
 
| label12      = {{{lbl2|}}}
| data12      = {{{data2|}}}
 
| label13      = {{{lbl3|}}}
| data13      = {{{data3|}}}
 
| label14      = {{{lbl4|}}}
| data14      = {{{data4|}}}
 
| label15      = {{{lbl5|}}}
| 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 }} }} }}
 
| label21      = Full name
| data21      = {{{full_name|}}}
 
| label22      = {{#if: {{{alias|}}} | Alias | Aliases }}
| data22      = {{If empty |{{{alias|}}} |{{{aliases|}}} }}
 
| label23      = {{#if: {{{nickname|}}} | Nickname | Nicknames }}
| data23      = {{If empty |{{{nickname|}}} |{{{nicknames|}}} }}
 
| label24      = {{#if: {{{race|}}} | Race | Species }}
| data24      = {{If empty |{{{race|}}} |{{{species|}}} }}
 
| label25      = Gender
| data25      = {{{gender|}}}
 
| label26      = Title
| data26      = {{{title|}}}
 
| label27      = {{#if: {{{occupation|}}} | Occupation | {{#if: {{{position|}}} | Position | Class }} }}
| data27      = {{If empty |{{{occupation|}}} |{{{position|}}} |{{{class|}}} }}
 
| label28      = {{#if: {{{affiliation|}}} | Affiliation | Alignment }}
| data28      = {{If empty |{{{affiliation|}}} |{{{alignment|}}} }}
 
| label29      = Fighting style
| data29      = {{{fighting_style|}}}
 
| label30      = Weapon
| data30      = {{{weapon|}}}
 
| label31      = Family
| data31      = {{{family|}}}
 
| label32      = {{#if: {{{spouse|}}} | Spouse | Spouses }}
| data32      = {{If empty |{{{spouse|}}} |{{{spouses|}}} }}
 
| label33      = {{#if: {{{significant_other|}}} | Significant {{nowrap|other}} | Significant {{nowrap|others}} }}
| data33      = {{If empty |{{{significant_other|}}} |{{{significant_others|}}} }}
 
| label34      = Children
| data34      = {{{children|}}}
 
| label35      = Relatives
| data35      = {{{relatives|}}}
 
| label36      = Religion
| data36      = {{{religion|}}}
 
| label37      = {{#if: {{{origin|}}} | Origin | Home }}
| data37      = {{If empty |{{{origin|}}} |{{{home|}}} }}


| label38      = Nationality
| label2      = Designed by
| data38      = {{{nationality|}}}
| data2        = {{{designer|}}}


| label39      = {{{lbl21|}}}
| label3      = Voiced by
| data39      = {{{data21|}}}
| data3        = {{{voice|}}}


| label40     = {{{lbl22|}}}
| label4     = Full name
| data40       = {{{data22|}}}
| data4       = {{{full_name|}}}


| label41     = {{{lbl23|}}}
| label5     = {{#if: {{{alias|}}} | Alias | Aliases }}
| data41       = {{{data23|}}}
| data5       = {{If empty |{{{alias|}}} |{{{aliases|}}} }}


| label42     = {{{lbl24|}}}
| label6     = {{#if: {{{nickname|}}} | Nickname | Nicknames }}
| data42       = {{{data24|}}}
| data6       = {{If empty |{{{nickname|}}} |{{{nicknames|}}} }}


| label43     = {{{lbl25|}}}
| label7     = Species
| data43       = {{{data25|}}}  
| data7       = {{{species|}}}


| header50    = {{#if: {{{data31|}}} {{{data32|}}} {{{data33|}}} {{{data34|}}} {{{data35|}}} | {{{extra-hdr|}}} }}
| label8      = Gender
| data8      = {{{gender|}}}


| label51     = {{{lbl31|}}}
| label9     = Title
| data51       = {{{data31|}}}
| data9       = {{{title|}}}


| label52     = {{{lbl32|}}}
| label10     = {{#if: {{{occupation|}}} | Occupation | {{#if: {{{position|}}} | Position }} }}
| data52       = {{{data32|}}}
| data10       = {{If empty |{{{occupation|}}} |{{{position|}}} }}


| label53     = {{{lbl33|}}}
| label11     = {{#if: {{{spouse|}}} | Spouse | Spouses }}
| data53       = {{{data33|}}}
| data11       = {{If empty |{{{spouse|}}} |{{{spouses|}}} }}


| label54     = {{{lbl34|}}}
| label12     = {{#if: {{{significant_other|}}} | Significant {{nowrap|other}} | Significant {{nowrap|others}} }}
| data54       = {{{data34|}}}
| data12       = {{If empty |{{{significant_other|}}} |{{{significant_others|}}} }}


| label55      = {{{lbl35|}}}
| label13      = Available
| data55      = {{{data35|}}}
| data13        = {{{available|}}}


}}<!-- Start tracking
| label14      = Desires
-->{{Main other
| data14        = {{{desires|}}}
|{{#if: {{{lbl35|}}} {{{data35|}}} {{{lbl25|}}} {{{data25|}}} {{{lbl5|}}} {{{data5|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|5{{PAGENAME}}]]
}}
| {{#if: {{{lbl34|}}} {{{data34|}}} {{{lbl24|}}} {{{data24|}}} {{{lbl4|}}} {{{data4|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|4{{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_" | alias | aliases | alt | available | caption| color | colour | creator | designer | desires | full_name | gender | image | image_size | image_upright | name | nickname | nicknames | occupation | position | race | significant_other | significant_others | species | spouse | spouses | title | voice }}<noinclude>
| {{#if: {{{lbl33|}}} {{{data33|}}} {{{lbl23|}}} {{{data23|}}} {{{lbl3|}}} {{{data3|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|3{{PAGENAME}}]]
| {{#if: {{{lbl32|}}} {{{data32|}}} {{{lbl22|}}} {{{data22|}}} {{{lbl2|}}} {{{data2|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|2{{PAGENAME}}]]
}} }} }} }}<!--
-->{{Ensure AAA contrast ratio|base={{If empty |{{{color|}}} |{{{colour|}}} }}|category={{Main other|[[Category:Articles using infoboxes for fictional elements with invalid color combination]]}}}}}}<!--
-->{{#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_"| adapted_by | affiliation | alias | aliases | alignment | alt | caption | children | class | color | colour | 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>
{{Documentation}}
{{Documentation}}
<!-- Add categories to the /doc subpage, not here! -->
<!-- Add categories to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 02:22, 20 June 2023