Template:Infobox person: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(Switching from camel case to snake case for parameter names to avoid capitalization issues and maintain consistency with {{Infobox website}}.)
(Added snake case alternatives to "backgroundColor" and "textColor" that I forgot to add in my previous edit.)
Line 1: Line 1:
{{Infobox
{{Infobox
  | bodystyle  = {{#if:{{{backgroundColor|}}}|background-color: {{{backgroundColor}}};|}}
  | bodystyle  = {{#if:{{{background_color|}}}|background-color: {{{background_color}}};|{{#if:{{{backgroundColor|}}}|background-color: {{{backgroundColor}}};|}}}}
  | abovestyle = {{#if:{{{color|}}}|background-color: {{{color}}}; color: {{#if:{{{textColor|}}}|{{{textColor}}}|{{Greater color contrast ratio|{{{color}}}}}}};|{{#if:{{{textColor|}}}|color: {{{textColor}}};|}}}}
  | abovestyle = {{#if:{{{color|}}}|background-color: {{{color}}}; color: {{#if:{{{text_color|}}}|{{{text_color}}}|{{#if:{{{textColor|}}}|{{{textColor}}}|{{Greater color contrast ratio|{{{color}}}}}}}}};|{{#if:{{{text_color|}}}|color: {{{text_color}}}|{{#if:{{{textColor|}}}|color: {{{textColor}}};|}}}}}}
  | headerstyle = {{#if:{{{color|}}}|background-color: {{{color}}}; color: {{#if:{{{textColor|}}}|{{{textColor}}}|{{Greater color contrast ratio|{{{color}}}}}}};|{{#if:{{{textColor|}}}|color: {{{textColor}}};|}}}}
  | headerstyle = {{#if:{{{color|}}}|background-color: {{{color}}}; color: {{#if:{{{text_color|}}}|{{{text_color}}}|{{#if:{{{textColor|}}}|{{{textColor}}}|{{Greater color contrast ratio|{{{color}}}}}}}}};|{{#if:{{{text_color|}}}|color: {{{text_color}}}|{{#if:{{{textColor|}}}|color: {{{textColor}}};|}}}}}}


  | above      = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
  | above      = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}

Revision as of 21:06, 25 November 2024

Infobox person