Template:Infobox person: Difference between revisions

Add alt-text
(templatedata)
(Add alt-text)
Tag: 2017 source edit
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<infobox theme="person">
{{infobox
<title source="name">
| title   = {{#if:{{{honorific_prefix|}}}|{{{honorific_prefix|}}} |}}{{{name|{{PAGENAME}}}}}{{#if:{{{honorific_suffix|}}}| {{{honorific_suffix|}}}|}}
<default>{{PAGENAME}}</default>
| image   = {{#if:{{{picture|}}}|[[File:{{{picture|}}}|200px|alt={{{alt|}}}]]|}}
</title>
| caption1 = {{{caption|}}}
<image source="picture">
| label1  = Date of birth
<caption source="caption" />
| data1    = {{{date_birth|}}}
</image>
| label2  = Place of birth
<data source="date_birth">
| data2    = {{{place_birth|}}}
<label>Birth</label>
| label3  = Date of death
<format>{{{date_birth}}} ({{{place_birth}}})</format>
| data3    = {{{date_death|}}}
</data>
| label4  = Place of death
<data source="date_death">
| data4    = {{{place_death|}}}
<label>Death</label>
| label5  = Other names
<format>{{{date_death}}} ({{{place_death}}})</format>
| data5    = {{{other_names|}}}
</data>
| label6  = Nationality
<data source="nationality">
| data6    = {{{nationality|}}}
<label>Nationality</label>
| label7  = Pronouns
</data>
| data7    = {{{pronouns|}}}
<data source="pronouns">
| label8  = Gender identity
<label>Pronouns</label>
| data8    = {{{gender|}}}
</data>
| label9  = Education
<data source="gender">
| data9    = {{{education|}}}
  <label>Gender identity</label>
| label10 = Alma mater
</data>
| data10  = {{{alma_mater|}}}
<data source="occupation">
| label11  = Occupation
  <label>Occupation</label>
| data11  = {{{occupation|}}}
</data>
| label12  = Years active
<data source="known_for">
| data12  = {{{years_active|}}}
  <label>Known for</label>
| label13 = Employer
</data>
| data13  = {{{employer|}}}
</infobox>
| label14  = Organization
<noinclude>
| data14  = {{{organization|}}}
| label15 = Known for
| data15  = {{{known_for|}}}
| label16  = Notable works
| data16  = {{{notable_works|}}}
| label17  = Website
| data17  = {{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}}
| label18  = {{#if:{{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}}|Other links|Links}}
| data18  = {{{other_links|{{{socials|}}}}}}
}}<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"name": {
"label": "Name",
"description": "Name of the person (defaults to the article title)",
"type": "string"
},
"honorific_prefix": {
"label": "Honorific (prefix)",
"description": "Mx, Sir, Ms, Mr, Rev, etcetera",
"type": "string"
},
"honorific_suffix": {
"label": "Honorific (suffix)",
"type": "string"
},
"date_birth": {
"date_birth": {
"label": "Date of birth",
"label": "Date of birth",
Line 52: Line 75:
"type": "string"
"type": "string"
},
},
"name": {
"other_names": {
"label": "Name",
"label": "Other names",
"description": "Name of the person (defaults to the article title)",
"description": "Other names the person uses/used, except deadnames",
"type": "string"
"type": "string"
},
},
Line 66: Line 89:
"label": "Caption",
"label": "Caption",
"description": "Short description of the picture",
"description": "Short description of the picture",
"type": "string"
},
"alt": {
"label": "Alt",
"description": "Alt text of image",
"type": "string"
"type": "string"
},
},
Line 79: Line 107:
"occupation": {
"occupation": {
"label": "Occupation"
"label": "Occupation"
},
"years_active": {
"label": "Years active",
"description": "Years active in occupation"
},
"employer": {
"label": "Employer",
"type": "string"
},
"organization": {
"label": "Organization",
"type": "string"
},
},
"known_for": {
"known_for": {
"label": "Known for",
"label": "Known for",
"description": "What is this person known for, other than their occupation?"
"description": "What is this person known for, other than their occupation?"
},
"notable_works": {
"label": "Notable works",
"type": "string"
},
"website": {
"label": "website"
},
},
"gender": {
"gender": {
Line 89: Line 136:
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
"education": {
"label": "Education",
"description": "Only use if relevant",
"type": "string"
},
"alma_mater": {
"label": "Alma mater",
"description": "Only use if relevant",
"type": "string"
},
"socials": {
"label": "Socials"
}
}
},
},
Line 104: Line 164:
"gender",
"gender",
"occupation",
"occupation",
"known_for"
"known_for",
"honorific_prefix",
"honorific_suffix",
"other_names",
"education",
"alma_mater",
"years_active",
"employer",
"organization",
"notable_works",
"website",
"socials",
"alt"
],
],
"format": "block"
"format": "block"
}
}
</templatedata>
</templatedata>
[[Category:Infobox templates]]
</noinclude>
</noinclude>
283

edits