Template:Infobox character: Difference between revisions

From Omniversalis
Content added Content deleted
m (1 revision imported)
Template>Centrist16
(Created page with "{{Infobox | bodystyle = border-spacing: 2px 5px; | above = {{If empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }} | abovestyle = background: {{If...")
Line 1:
{{Infobox
| bodystyle = border-spacing: 2px 5px;
 
| above = {{ifemptyIf empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }}
| abovestyle = background: {{ifemptyIf empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} | color: {{Greater color contrast ratio|{{ifemptyIf 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|}}}}}
| caption = {{{caption|}}}
 
| headerstyle = background: {{ifemptyIf empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} |color: {{Greater color contrast ratio|{{ifemptyIf empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }}
|labelstyle = {{{lbl-style|}}}
|datastyle = {{{data-style|}}}
 
| 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|}}} }} }}
|data1 = {{{first|}}}
 
| label2 = LastFirst appearancegame
| data2 = {{{lastfirstgame|}}}
 
| label3 = Last appearance
|label4 = Created by
| data3 = {{#if: {{{last|}}} | {{{last|}}} | {{#invoke:Formatted appearance|getFormattedAppearance|major_work={{{last_major|}}} |minor_work={{{last_minor|}}} |issue={{{last_issue|}}} |date={{{last_date|}}} }} }}
|data4 = {{{creator|}}}
 
|label5 label4 = PortrayedCreated by
|data5 data4 = {{{portrayercreator|}}}
 
| label5 = Based on
|label6 = [[Voice acting|Voiced by]]
|data6 data5 = {{{voicebased_on|}}}
 
|label7 label6 = {{{lbl1|}}}Adapted by
|data7 data6 = {{{data1adapted_by|}}}
 
|label8 label7 = {{{lbl2|}}}Designed by
|data8 data7 = {{{data2designer|}}}
 
|label9 label8 = {{{lbl3|}}}Portrayed by
|data9 data8 = {{{data3portrayer|}}}
 
| label9 = Voiced by
|label10 = {{{lbl4|}}}
|data10 data9 = {{{data4voice|}}}
 
| label10 = Motion capture
|label11 = {{{lbl5|}}}
|data11 data10 = {{{data5motion_actor|}}}
 
| label11 = {{{lbl1|}}}
|header12 = {{ #if: {{{noinfo|}}} || {{ #if: {{{nickname|}}} {{{alias|}}} {{{species|}}} {{{gender|}}} {{{occupation|}}} {{{title|}}} {{{family|}}} {{{spouse|}}} {{{significantother|}}} {{{children|}}} {{{relatives|}}} {{{religion|}}} {{{nationality|}}} {{{data21|}}} {{{data22|}}} {{{data23|}}} {{{data24|}}} {{{data25|}}} | {{ifempty|{{{info-hdr|}}}|Information}} }} }}
| data11 = {{{data1|}}}
 
| label12 = {{{lbl2|}}}
|label13 = Full name
|data13 data12 = {{{fullnamedata2|}}}
 
|label14 label13 = {{nowrap{lbl3|Nickname(s)}}}
|data14 data13 = {{{nicknamedata3|}}}
 
| label14 = {{{lbl4|}}}
|label15 = Aliases
|data15 data14 = {{{aliasdata4|}}}
 
| label15 = {{{lbl5|}}}
|label16 = Species
|data16 data15 = {{{speciesdata5|}}}
 
| 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|}}} |Information }} }} }}
|label17 = Gender
|data17 = {{{gender|}}}
 
| label21 = Full name
|label18 = Occupation
|data18 data21 = {{{occupationfull_name|}}}
 
| label22 = {{#if: {{{alias|}}} | Alias | Aliases }}
|label19 = Affiliation
|data19 data22 = {{If empty |{affiliation{{alias|}}} |{{{aliases|}}} }}
 
| label23 = {{#if: {{{nickname|}}} | Nickname | Nicknames }}
|label20 = Title
| data23 = {{If empty |{{{nickname|}}} |{{{nicknames|}}} }}
|data20 = {{{title|}}}
 
| label24 = {{#if: {{{race|}}} | Race | Species }}
|label21 = Family
|data21 data24 = {{If empty |{family{{race|}}} |{{{species|}}} }}
 
| label25 = Gender
|label22 = {{nowrap|Spouse(s)}}
|data22 data25 = {{{spousegender|}}}
 
| label26 = Title
|label23 = [[Significant other|Significant {{nowrap|other(s)}}]]
|data23 data26 = {{{significantothertitle|}}}
 
| label27 = {{#if: {{{occupation|}}} | Occupation | {{#if: {{{position|}}} | Position | Class }} }}
|label24 = Children
| data27 = {{If empty |{{{occupation|}}} |{{{position|}}} |{{{class|}}} }}
|data24 = {{{children|}}}
 
| label28 = {{#if: {{{affiliation|}}} | Affiliation | Alignment }}
|label25 = Relatives
| data28 = {{If empty |{{{affiliation|}}} |{{{alignment|}}} }}
|data25 = {{{relatives|}}}
 
| label29 = Fighting style
|label26 = Religion
|data26 data29 = {{{religionfighting_style|}}}
 
| label30 = Weapon
|label27 = Nationality
|data27 data30 = {{{nationalityweapon|}}}
 
| label31 = Family
|label33 = {{{lbl21|}}}
|data33 data31 = {{{data21family|}}}
 
|label34 label32 = {{#if: {lbl22{{spouse|}}} | Spouse | Spouses }}
|data34 data32 = {{If empty |{data22{{spouse|}}} |{{{spouses|}}} }}
 
| label33 = {{#if: {{{significant_other|}}} | Significant {{nowrap|other}} | Significant {{nowrap|others}} }}
|label35 = {{{lbl23|}}}
| data33 = {{If empty |{{{significant_other|}}} |{{{significant_others|}}} }}
|data35 = {{{data23|}}}
 
| label34 = Children
|label36 = {{{lbl24|}}}
|data36 data34 = {{{data24children|}}}
 
| label35 = Relatives
|label37 = {{{lbl25|}}}
|data37 data35 = {{{data25relatives|}}}
 
| label36 = Religion
|header38 = {{ #if: {{{data31|}}} {{{data32|}}} {{{data33|}}} {{{data34|}}} {{{data35|}}} | {{{extra-hdr|}}} }}
| data36 = {{{religion|}}}
 
|label39 label37 = {{#if: {lbl31{{origin|}}} | Origin | Home }}
|data39 data37 = {{If empty |{data31{{origin|}}} |{{{home|}}} }}
 
| label38 = Nationality
|label40 = {{{lbl32|}}}
|data40 data38 = {{{data32nationality|}}}
 
|label41 label39 = {{{lbl33lbl21|}}}
|data41 data39 = {{{data33data21|}}}
 
|label42 label40 = {{{lbl34lbl22|}}}
|data42 data40 = {{{data34data22|}}}
 
|label43 = {{{lbl35|}}}
|data43 label41 = {{{data35lbl23|}}}
| data41 = {{{data23|}}}
}}{{Main other|{{#if:{{{lbl35|}}}{{{data35|}}}{{{lbl25|}}}{{{data25|}}}{{{lbl5|}}}{{{data5|}}}
 
|[[Category:Articles using Infobox character with multiple unlabeled fields|5{{PAGENAME}}]]
| label42 = {{{lbl24|}}}
|{{#if:{{{lbl34|}}}{{{data34|}}}{{{lbl24|}}}{{{data24|}}}{{{lbl4|}}}{{{data4|}}}
| data42 = {{{data24|}}}
|[[Category:Articles using Infobox character with multiple unlabeled fields|4{{PAGENAME}}]]
 
|{{#if:{{{lbl33|}}}{{{data33|}}}{{{lbl23|}}}{{{data23|}}}{{{lbl3|}}}{{{data3|}}}
| label43 = {{{lbl25|}}}
|[[Category:Articles using Infobox character with multiple unlabeled fields|3{{PAGENAME}}]]
| data43 = {{{data25|}}}
|{{#if:{{{lbl32|}}}{{{data32|}}}{{{lbl22|}}}{{{data22|}}}{{{lbl2|}}}{{{data2|}}}
 
|[[Category:Articles using Infobox character with multiple unlabeled fields|2{{PAGENAME}}]]
| header50 = {{#if: {{{data31|}}} {{{data32|}}} {{{data33|}}} {{{data34|}}} {{{data35|}}} | {{{extra-hdr|}}} }}
}} }} }} }}{{Ensure AAA contrast ratio|base={{If empty|{{{color|}}}|{{{colour|}}}}}|category=[[Category:Articles using Template:Infobox character with invalid colour combination]]}}}}<!-- Start tracking
 
-->{{main other|{{#ifeq:{{{sep|♠}}}|♠||[[Category:Infobox character articles using potentially unnecessary parameters|{{#ifeq:{{{sep|♠}}}|♠||S}}]]}}}}<!-- End tracking
| label51 = {{{lbl31|}}}
-->{{#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_"|ignoreblank=y| affiliation | alias | alt | caption | children | color | colour | creator | data-style | data1 | data2 | data21 | data22 | data23 | data24 | data25 | data3 | data31 | data32 | data33 | data34 | data35 | data4 | data5 | extra-hdr | family | first | fullname | gender | image | image_size | image_upright | info-hdr | last | lbl-style | lbl1 | lbl2 | lbl21 | lbl22 | lbl23 | lbl24 | lbl25 | lbl3 | lbl31 | lbl32 | lbl33 | lbl34 | lbl35 | lbl4 | lbl5 | multiple | name | nationality | nickname | noinfo | occupation | portrayer | relatives | religion | sep | series | significantother | species | spouse | title | voice }}<noinclude>
| data51 = {{{data31|}}}
 
| label52 = {{{lbl32|}}}
| data52 = {{{data32|}}}
 
| label53 = {{{lbl33|}}}
| data53 = {{{data33|}}}
 
| label54 = {{{lbl34|}}}
| data54 = {{{data34|}}}
 
| label55 = {{{lbl35|}}}
| data55 = {{{data35|}}}
 
}}<!-- Start tracking
-->{{Main other
|{{#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}}]]
| {{#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}}
<!-- Add categories to the /doc subpage, not here! -->

Revision as of 21:08, 25 November 2019