Template:Infobox person: Difference between revisions

Add alt-text
(Add "socials" paramater because many pages have a "Links" section which is just three links)
Tag: 2017 source edit
(Add alt-text)
Tag: 2017 source edit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{infobox
{{infobox
| title    = {{#if:{{{honorific_prefix|}}}|{{{honorific_prefix|}}} |}}{{{name|{{PAGENAME}}}}}{{#if:{{{honorific_suffix|}}}| {{{honorific_suffix|}}}|}}
| title    = {{#if:{{{honorific_prefix|}}}|{{{honorific_prefix|}}} |}}{{{name|{{PAGENAME}}}}}{{#if:{{{honorific_suffix|}}}| {{{honorific_suffix|}}}|}}
| image    = {{#if:{{{picture|}}}|[[File:{{{picture|}}}|200px]]|}}
| image    = {{#if:{{{picture|}}}|[[File:{{{picture|}}}|200px|alt={{{alt|}}}]]|}}
| caption1 = {{{caption|}}}
| caption1 = {{{caption|}}}
| label1  = Date of birth
| label1  = Date of birth
Line 37: Line 37:
| label17  = Website
| label17  = Website
| data17  = {{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}}
| data17  = {{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}}
| label18  = Socials
| label18  = {{#if:{{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}}|Other links|Links}}
| data18  = {{{socials|}}}
| data18  = {{{other_links|{{{socials|}}}}}}
}}<noinclude>
}}<noinclude>
<templatedata>
<templatedata>
Line 89: 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 170: Line 175:
"notable_works",
"notable_works",
"website",
"website",
"socials"
"socials",
"alt"
],
],
"format": "block"
"format": "block"
283

edits