Jump to content

Template:Infobox person: Difference between revisions

WikiBot (talk | contribs)
mNo edit summary
-lime.owotwiki (talk | contribs)
m Edit 'Text color' parameter description
 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<infobox>
{{Infobox
<title source="name"/>
| bodystyle  = {{#if:{{{background_color|}}}|background-color: {{{background_color}}};|{{#if:{{{backgroundColor|}}}|background-color: {{{backgroundColor}}};|}}}}
<image source="image">
| 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}}};|}}}}}}
    <caption source="imagecaption"/>
| 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}}};|}}}}}}
</image>
 
<group>
| above      = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
        <data source="realName"><label>Real name</label></data>
| autoheaders = y
    <data source="aliases"><label>Aliases</label></data>
 
    <data source="relatives"><label>Relatives</label></data>
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=300px|upright={{{image_upright|1}}}|alt={{{image_alt|}}}}}
    <data source="affiliation"><label>Affiliation</label></data>
| caption1    = {{#if:{{{image_caption|}}}|{{{image_caption}}}|{{{imageCaption|}}}}}
    </group>
 
    <group>
| label1      = Real name
        <header>General information</header>
| data1      = {{#if:{{{real_name|}}}|{{{real_name}}}|{{{realName|}}}}}
        <data source="age"><label>Age</label></data>
 
        <data source="sex"><label>Sex</label></data>
| label2      = {{#if:{{{alias|}}}|Alias|Aliases}}
        <data source="gender"><label>Gender</label></data>
| data2      = {{#if:{{{alias|}}}|{{{alias}}}|{{{aliases|}}}}}
        <data source="sexual orientation"><label>Sexual Orientation</label></data>
 
        <data source="race"><label>Race</label></data>
| label3      = Known for
        <data source="nationality"><label>Country of origin</label></data>
| data3      = {{#if:{{{known_for|}}}|{{{known_for}}}|{{{knownFor|}}}}}
        <data source="residence"><label>City or country of residence</label></data>
 
        <data source="marital"><label>Marital status</label></data>
| label4      = Family members
    <data source="birthDate"><label>Date of birth</label></data>
| data4      = {{{family|}}}
        <data source="birthPlace"><label>Place of birth</label></data>
 
        <data source="deathDate"><label>Date of death</label></data>
| label5      = Affiliations
        <data source="deathPlace"><label>Place of death</label></data>
| data5      = {{{affiliations|}}}
    </group>
 
    <group>
| label6      = Friends
        <header>Physical description</header>
| data6      = {{{friends|}}}
        <data source="height"><label>Height</label></data>
 
        <data source="weight"><label>Weight</label></data>
| label7      = Enemies
        <data source="eyes"><label>Eye color</label></data>
| data7      = {{{enemies|}}}
</group>
 
<group>
| header8    = General information
<header>Socials</header>
 
<data source="webpage"><label>Web Page</label></data>
| label9      = Age
</group>
| data9      = {{{age|}}}
</infobox>
 
| label10    = Sex
| data10      = {{{sex|}}}
 
| label11    = Gender
| data11      = {{{gender|}}}
 
| label12    = Sexual orientation
| data12      = {{#if:{{{sexual_orientation|}}}|{{{sexual_orientation}}}|{{{sexualOrientation|}}}}}
 
| label13    = Race
| data13      = {{{race|}}}
 
| label14    = Religion
| data14      = {{{religion|}}}
 
| label15    = Country of origin
| data15      = {{{origin|}}}
 
| label16    = Nationality
| data16      = {{{nationality|}}}
 
| label17    = City or country of residence
| data17      = {{{residence|}}}
 
| label18    = Marital status
| data18      = {{{marital|}}}
 
| label19    = {{#if:{{{significant_other|}}}|Significant other|{{#if:{{{significantOther|}}}|Significant other|Significant others}}}}
| data19      = {{#if:{{{significant_other|}}}|{{{significant_other}}}|{{#if:{{{significantOther|}}}|{{{significantOther}}}|{{{significant_others|}}}}}}}
 
| label20    = Occupation
| data20      = {{{occupation|}}}
 
| label21    = Employer
| data21      = {{{employer|}}}
 
| label22    = Organization
| data22      = {{{organization|}}}
 
| label23    = Date of birth
| data23      = {{#if:{{{birth_date|}}}|{{{birth_date}}}|{{{birthDate|}}}}}
 
| label24    = Place of birth
| data24      = {{#if:{{{birth_place|}}}|{{{birth_place}}}|{{{birthPlace|}}}}}
 
| label25    = Date of death
| data25      = {{#if:{{{death_date|}}}|{{{death_date}}}|{{{deathDate|}}}}}
 
| label26    = Place of death
| data26      = {{#if:{{{death_place|}}}|{{{death_place}}}|{{{deathPlace|}}}}}
 
| header27    = Physical description
 
| label28    = Height
| data28      = {{{height|}}}
 
| label29    = Weight
| data29      = {{{weight|}}}
 
| label30    = Eye color
| data30      = {{{eyes|}}}
 
| header31    = Socials
 
| label32    = Webpage
| data32      = {{{webpage|}}}
 
| label33    = Others
| data33      = {{#if:{{{other_socials|}}}|{{{other_socials}}}|{{{otherSocials|}}}}}
}}<noinclude>
{{Documentation}}
<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>