Template:Infobox person: Difference between revisions
Appearance
Dat Hack3r (talk | contribs) Switching from camel case to snake case for parameter names to avoid capitalization issues and maintain consistency with {{Infobox website}}. |
m Edit 'Text color' parameter description |
||
(3 intermediate revisions by 2 users not shown) | |||
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}}}} | ||
Line 107: | Line 107: | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"background_color": { | |||
"aliases": [ | |||
"backgroundColor" | |||
], | |||
"label": "Background color", | |||
"description": "The background color of the infobox." | |||
}, | |||
"color": { | |||
"aliases": [ | |||
"text_color", | |||
"textColor" | |||
], | |||
"label": "Text color", | |||
"description": "The text color of the infobox's headers. The body text is automatically determined from this." | |||
}, | |||
"name": { | |||
"label": "Name" | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "The file name of the image attributed to the person. File: is not required." | |||
}, | |||
"image_size": { | |||
"label": "Image size", | |||
"description": "in format {n}px" | |||
}, | |||
"image_upright": { | |||
"label": "Image (upright)" | |||
}, | |||
"image_alt": { | |||
"label": "Image alt text" | |||
}, | |||
"image_caption": { | |||
"aliases": [ | |||
"imageCaption" | |||
], | |||
"label": "Image caption" | |||
}, | |||
"real_name": { | |||
"aliases": [ | |||
"realName" | |||
], | |||
"label": "Real name", | |||
"description": "Do not fill in unless the person listed is comfortable with this on their wiki page." | |||
}, | |||
"alias": { | |||
"aliases": [ | |||
"aliases" | |||
], | |||
"label": "Alias(es)", | |||
"description": "Alias(es) the person goes by." | |||
}, | |||
"known_for": { | |||
"aliases": [ | |||
"knownFor" | |||
], | |||
"label": "Known for" | |||
}, | |||
"family": { | |||
"label": "Family members" | |||
}, | |||
"affiliations": { | |||
"label": "Affiliations" | |||
}, | |||
"friends": { | |||
"label": "Friends" | |||
}, | |||
"enemies": { | |||
"label": "Enemies" | |||
}, | |||
"age": { | |||
"label": "Age", | |||
"description": "Do not fill in if the person is not comfortable with this on their wiki page." | |||
}, | |||
"sex": { | |||
"label": "Sex" | |||
}, | |||
"gender": { | |||
"label": "Gender" | |||
}, | |||
"sexual_orientation": { | |||
"aliases": [ | |||
"sexualOrientation" | |||
], | |||
"label": "Sexual orientation" | |||
}, | |||
"race": { | |||
"label": "Race" | |||
}, | |||
"religion": { | |||
"label": "Religion" | |||
}, | |||
"origin": { | |||
"label": "Origin" | |||
}, | |||
"nationality": { | |||
"label": "Nationality" | |||
}, | |||
"residence": { | |||
"label": "Residence", | |||
"description": "Do not fill in unless the person is comfortable with this on their wiki page." | |||
}, | |||
"marital": { | |||
"label": "Marital status" | |||
}, | |||
"significant_other": { | |||
"aliases": [ | |||
"significantOther", | |||
"significantOthers", | |||
"significant_others" | |||
], | |||
"label": "Significant other(s)" | |||
}, | |||
"occupation": { | |||
"label": "Occupation" | |||
}, | |||
"employer": { | |||
"label": "Employer" | |||
}, | |||
"organization": { | |||
"label": "Organization" | |||
}, | |||
"birth_date": { | |||
"aliases": [ | |||
"birthDate" | |||
], | |||
"label": "Birth date", | |||
"description": "Do not fill in if the person is not comfortable with this on their wiki page." | |||
}, | |||
"birth_place": { | |||
"aliases": [ | |||
"birthPlace" | |||
], | |||
"label": "Birth place", | |||
"description": "Do not fill in if the person is not comfortable with this on their wiki page." | |||
}, | |||
"death_date": { | |||
"aliases": [ | |||
"deathDate" | |||
], | |||
"label": "Death date", | |||
"description": "Will OWoT even last long enough for this field to be used?" | |||
}, | |||
"death_place": { | |||
"aliases": [ | |||
"deathPlace" | |||
], | |||
"label": "Death place" | |||
}, | |||
"height": { | |||
"label": "Height" | |||
}, | |||
"weight": { | |||
"label": "Weight" | |||
}, | |||
"eyes": { | |||
"label": "Eye color" | |||
}, | |||
"webpage": { | |||
"label": "Webpage" | |||
}, | |||
"other_socials": { | |||
"aliases": [ | |||
"otherSocials" | |||
], | |||
"label": "Other socials" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"background_color", | |||
"color", | |||
"name", | |||
"image", | |||
"image_size", | |||
"image_upright", | |||
"image_alt", | |||
"image_caption", | |||
"real_name", | |||
"alias", | |||
"known_for", | |||
"family", | |||
"affiliations", | |||
"friends", | |||
"enemies", | |||
"age", | |||
"sex", | |||
"gender", | |||
"sexual_orientation", | |||
"race", | |||
"religion", | |||
"origin", | |||
"nationality", | |||
"residence", | |||
"marital", | |||
"significant_other", | |||
"occupation", | |||
"employer", | |||
"organization", | |||
"birth_date", | |||
"birth_place", | |||
"death_date", | |||
"death_place", | |||
"height", | |||
"weight", | |||
"eyes", | |||
"webpage", | |||
"other_socials" | |||
] | |||
} | |||
</templatedata></noinclude> |