Template:Infobox character: Difference between revisions

From The Goon Show Depository

No edit summary
en>Jonesey95
(fix text color in dark mode)
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;


| 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-color: #DEDEE2; color:black;


| subheader    = {{#if: {{{series|}}}{{{franchise|}}} | {{#if: {{{series|}}} | ''{{{series|}}}'' | {{{franchise|}}} }} character{{#if: {{{multiple|}}} | s }} }}
| 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|}}}|upright={{{image_upright|}}}|alt={{{alt|}}}}}
| caption      = {{{caption|}}}
| caption      = {{{caption|}}}


| headerstyle  = background: {{If empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} |color: {{Greater color contrast ratio|{{If empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }}
| headerstyle  = background-color: #DEDEE2; color:black;


| label1      = First appearance
| label1      = First appearance
Line 151: Line 152:
  | {{#if: {{{lbl33|}}} {{{data33|}}} {{{lbl23|}}} {{{data23|}}} {{{lbl3|}}} {{{data3|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|3{{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}}]]
  | {{#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_"|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_"| 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>

Revision as of 13:00, 18 June 2024