Difference between revisions of "Template:Infobox figure"
From Lolibrary Wiki
Sage-blossom (talk | contribs) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Infobox | ||
{{ | | bodyclass = vcard | ||
| child = {{lc:{{{embed|}}}}} | |||
| decat = yes | |||
== | | titleclass = fn org | ||
{{ | | title = {{if empty|{{{name|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}} | ||
| | |||
| | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{if empty|{{{image|}}}|{{{logo|}}}|{{{websitelogo|}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{image_alt|}}}}} | ||
| | | caption1 = {{if empty|{{{image_caption|}}}|{{{imagecaption|}}}}} | ||
| | |||
| | | label6 = Birth | ||
| | | data6 = {{if empty|{{{birth|}}}|{{{foundation|}}}}} | ||
| | |||
| | | label7 = Death | ||
| | | data7 = {{{death|}}} | ||
| nationality = | |||
| | | label8 = Predecessor(s) | ||
| url = | | data8 = {{{predecessor|}}} | ||
| | |||
| twitter = | | label9 = Associated Brand(s) | ||
| | | data9 = {{{brand|}}} | ||
}} | |||
| label11 = Nationality | |||
| data11 = {{{nationality|}}} | |||
| label37 = Website | |||
| class37 = url | |||
| data37 = {{if empty|{{{url|}}}|{{{website|}}}|{{{homepage|}}}}} | |||
| label39 = Twitter | |||
| class39 = url | |||
| data39 = {{{twitter|}}} | |||
| label40 = Blog | |||
| class40 = url | |||
| data40 = {{{blog|}}} | |||
=== | | label41 = Instagram | ||
| class41 = url | |||
| data41 = {{{instagram|}}} | |||
| below = {{{footnotes|}}} | |||
{{ | |||
| | |||
}} | }} | ||
< | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"url": { | "url": { | ||
"description": "The canonical URL of the figure's website or portfolio.", | "description": "The canonical URL of the figure's website or portfolio.", | ||
"type": "string", | "type": "string", | ||
" | "label": "Website" | ||
}, | }, | ||
"blog": { | "blog": { | ||
"label": "Blog", | "label": "Blog", | ||
"description": "The canonical URL of the figure's online blog.", | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
"twitter": { | "twitter": { | ||
"label": "Twitter", | "label": "Twitter", | ||
"description": "The canonical URL of the figure's public Twitter account.", | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
"instagram": { | "instagram": { | ||
"label": "Instagram", | "label": "Instagram", | ||
"description": "The canonical URL of the figure's public Instagram account.", | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
"name": { | "name": { | ||
"label": "Name", | "label": "Name", | ||
"description": "Name of the person or figure | "description": "Name of the person or figure.", | ||
"type": "string", | "type": "string", | ||
"default": "{{PAGENAMEBASE}}", | "default": "{{PAGENAMEBASE}}", | ||
" | "suggested": true | ||
}, | }, | ||
"birth": { | "birth": { | ||
Line 123: | Line 86: | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "image": { | ||
"label": "Image", | |||
"type": "wiki-file-name" | |||
}, | |||
"image_alt": { | |||
"label": "Alt Text", | |||
"description": "Alternative text for the image. Alternative text is displayed when the image itself cannot be displayed or when a screen reader reads the article for the blind.", | |||
"type": "string" | |||
}, | |||
"brand": { | |||
"label": "Associated Brand(s)", | "label": "Associated Brand(s)", | ||
"type": "string" | "type": "string" | ||
}, | |||
"image_size": { | |||
"label": "Image Size", | |||
"description": "Size of the image. See Wikipedia image tutorial to find out about valid size values. The default is 250px.", | |||
"type": "string" | |||
}, | |||
"image_caption": { | |||
"label": "Image Caption", | |||
"description": "Caption for the image" | |||
} | } | ||
}, | }, | ||
" | "description": "Infobox for articles about people and important figures", | ||
"paramOrder": [ | "paramOrder": [ | ||
"name", | "name", | ||
Line 137: | Line 118: | ||
"birth", | "birth", | ||
"death", | "death", | ||
"nationality", | "nationality", | ||
" | "brand", | ||
"url", | "url", | ||
"blog", | "blog", | ||
Line 148: | Line 127: | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | |||
Latest revision as of 00:17, 7 December 2021
Infobox for articles about people and important figures
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Name of the person or figure.
| String | suggested |
Image | image | no description | File | optional |
Image Size | image_size | Size of the image. See Wikipedia image tutorial to find out about valid size values. The default is 250px. | String | optional |
Image Caption | image_caption | Caption for the image | Unknown | optional |
Alt Text | image_alt | Alternative text for the image. Alternative text is displayed when the image itself cannot be displayed or when a screen reader reads the article for the blind. | String | optional |
Birth | birth | no description | Date | optional |
Death | death | no description | Date | optional |
Nationality | nationality | no description | String | optional |
Associated Brand(s) | brand | no description | String | optional |
Website | url | The canonical URL of the figure's website or portfolio. | String | optional |
Blog | blog | The canonical URL of the figure's online blog. | String | optional |
twitter | The canonical URL of the figure's public Twitter account. | String | optional | |
instagram | The canonical URL of the figure's public Instagram account. | String | optional |