Jump to content

Template:Infobox person: Difference between revisions

Dat Hack3r (talk | contribs)
Added default image size.
-lime.owotwiki (talk | contribs)
m Edit 'Text color' parameter description
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
| bodystyle   = background-color: {{{backgroundColor|}}};
| bodystyle   = {{#if:{{{background_color|}}}|background-color: {{{background_color}}};|{{#if:{{{backgroundColor|}}}|background-color: {{{backgroundColor}}};|}}}}
| abovestyle   = {{#if:{{{color|}}}|background-color: {{{color}}}; color: {{{textColor|{{Greater color contrast|{{{color}}}}}}}};|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:{{{text_color|}}}|{{{text_color}}}|{{#if:{{{textColor|}}}|{{{textColor}}}|{{Greater color contrast ratio|{{{color}}}}}}}}};|{{#if:{{{text_color|}}}|color: {{{text_color}}}|{{#if:{{{textColor|}}}|color: {{{textColor}}};|}}}}}}


| title        = {{{name|{{PAGENAME}}}}}
| above      = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
| autoheaders = y
| autoheaders = y


| image       = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imageSize|}}}|sizedefault=300px|upright={{{imageUpright|1}}}|alt={{{imageAlt|}}}}}
| image       = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=300px|upright={{{image_upright|1}}}|alt={{{image_alt|}}}}}
| caption1 = {{{imageCaption|}}}
| caption1   = {{#if:{{{image_caption|}}}|{{{image_caption}}}|{{{imageCaption|}}}}}


| label1       = Real name
| label1     = Real name
| data1       = {{{realName|}}}
| data1       = {{#if:{{{real_name|}}}|{{{real_name}}}|{{{realName|}}}}}


| label2       = Aliases
| label2     = {{#if:{{{alias|}}}|Alias|Aliases}}
| data2       = {{{aliases|}}}
| data2       = {{#if:{{{alias|}}}|{{{alias}}}|{{{aliases|}}}}}


| label3       = Known for
| label3     = Known for
| data3       = {{{knownFor|}}}
| data3       = {{#if:{{{known_for|}}}|{{{known_for}}}|{{{knownFor|}}}}}


| label4       = Family
| label4     = Family members
| data4       = {{{family|}}}
| data4       = {{{family|}}}


| label5       = Affiliations
| label5     = Affiliations
| data5       = {{{affiliations|}}}
| data5       = {{{affiliations|}}}


| label6       = Friends
| label6     = Friends
| data6       = {{{friends|}}}
| data6       = {{{friends|}}}


| label7       = Enemies
| label7     = Enemies
| data7       = {{{enemies|}}}
| data7       = {{{enemies|}}}


| header1      = General information
| header8    = General information


| label8      = Age
| label9      = Age
| data8        = {{{age|}}}
| data9      = {{{age|}}}


| label9      = Sex
| label10    = Sex
| data9        = {{{sex|}}}
| data10      = {{{sex|}}}


| label10      = Gender
| label11    = Gender
| data10      = {{{gender|}}}
| data11      = {{{gender|}}}


| label11      = Sexual orientation
| label12    = Sexual orientation
| data11      = {{{sexualOrientation|}}}
| data12      = {{#if:{{{sexual_orientation|}}}|{{{sexual_orientation}}}|{{{sexualOrientation|}}}}}


| label12      = Race
| label13    = Race
| data12      = {{{race|}}}
| data13      = {{{race|}}}


| label13      = Religion
| label14    = Religion
| data13      = {{{religion|}}}
| data14      = {{{religion|}}}


| label14      = Country of origin
| label15    = Country of origin
| data14      = {{{nationality|}}}
| data15      = {{{origin|}}}


| label15      = City or country of residence
| label16    = Nationality
| data15      = {{{residence|}}}
| data16      = {{{nationality|}}}


| label16      = Marital status
| label17    = City or country of residence
| data16      = {{{marital|}}}
| data17      = {{{residence|}}}


| label17      = Significant other
| label18    = Marital status
| data17      = {{{significantOther|}}}
| data18      = {{{marital|}}}


| label18      = Occupation
| label19    = {{#if:{{{significant_other|}}}|Significant other|{{#if:{{{significantOther|}}}|Significant other|Significant others}}}}
| data18      = {{{occupation|}}}
| data19      = {{#if:{{{significant_other|}}}|{{{significant_other}}}|{{#if:{{{significantOther|}}}|{{{significantOther}}}|{{{significant_others|}}}}}}}


| label19      = Employer
| label20    = Occupation
| data19      = {{{employer|}}}
| data20      = {{{occupation|}}}


| label20      = Organization
| label21    = Employer
| data20      = {{{organization|}}}
| data21      = {{{employer|}}}


| label21      = Date of birth
| label22    = Organization
| data21      = {{{birthDate|}}}
| data22      = {{{organization|}}}


| label22      = Place of birth
| label23    = Date of birth
| data22      = {{{birthPlace|}}}
| data23      = {{#if:{{{birth_date|}}}|{{{birth_date}}}|{{{birthDate|}}}}}


| label23      = Date of death
| label24    = Place of birth
| data23      = {{{deathDate|}}}
| data24      = {{#if:{{{birth_place|}}}|{{{birth_place}}}|{{{birthPlace|}}}}}


| label24      = Place of death
| label25    = Date of death
| data24      = {{{deathPlace|}}}
| data25      = {{#if:{{{death_date|}}}|{{{death_date}}}|{{{deathDate|}}}}}


| header2     = Physical description
| label26    = Place of death
| data26     = {{#if:{{{death_place|}}}|{{{death_place}}}|{{{deathPlace|}}}}}


| label25      = Height
| header27    = Physical description
| data25      = {{{height|}}}


| label26      = Weight
| label28    = Height
| data26      = {{{weight|}}}
| data28      = {{{height|}}}


| label27      = Eye color
| label29    = Weight
| data27      = {{{eyes|}}}
| data29      = {{{weight|}}}


| header3     = Socials
| label30    = Eye color
| data30     = {{{eyes|}}}


| label28      = Webpage
| header31    = Socials
| data28      = {{{webpage|}}}


| label29     = Others
| label32    = Webpage
| data29      = {{{otherSocials|}}}
| data32     = {{{webpage|}}}
 
| label33    = Others
| data33      = {{#if:{{{other_socials|}}}|{{{other_socials}}}|{{{otherSocials|}}}}}
}}<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>