Difference between revisions of "Template:Infobox figure"

From Lolibrary Wiki
 
(5 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|}}}
| label8  = Predecessor(s)
| data8    = {{{predecessor|}}}
| 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>
{
{
"description": "An infobox for articles about people and important figures",
"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.",
"label": "Website",
"type": "string",
"type": "string",
"aliases": [
"label": "Website"
"website"
]
},
},
"blog": {
"blog": {
"description": "The canonical URL of the brand's online blog.",
"label": "Blog",
"label": "Blog",
"description": "The canonical URL of the figure's online blog.",
"type": "string"
"type": "string"
},
},
"twitter": {
"twitter": {
"description": "The canonical URL of the brand's twitter account",
"label": "Twitter",
"label": "Twitter",
"description": "The canonical URL of the figure's public Twitter account.",
"type": "string"
"type": "string"
},
},
"instagram": {
"instagram": {
"description": "The canonical URL of the brand's instagram account",
"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.",
"example": "Ars Technica",
"type": "string",
"type": "string",
"default": "{{PAGENAMEBASE}}",
"default": "{{PAGENAMEBASE}}",
"required": true
"suggested": true
},
"predecessor": {
"label": "Predecessor",
"type": "string"
},
"successor": {
"label": "Successor",
"type": "string"
},
"image": {
"label": "Image",
"description": "Image of the figure",
"type": "wiki-file-name"
},
"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",
"default": "250px"
},
"image_caption": {
"label": "Image's caption",
"description": "Caption for the image."
},
"image_alt": {
"label": "Image's alternative 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 people.",
"type": "string"
},
},
"birth": {
"birth": {
Line 75: Line 86:
"type": "string"
"type": "string"
},
},
"brands": {
"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"
}
}
},
},
"format": "block",
"description": "Infobox for articles about people and important figures",
"paramOrder": [
"paramOrder": [
"name",
"name",
Line 89: Line 118:
"birth",
"birth",
"death",
"death",
"predecessor",
"successor",
"nationality",
"nationality",
"brands",
"brand",
"url",
"url",
"blog",
"blog",
Line 100: Line 127:
}
}
</templatedata>
</templatedata>
</noinclude>

Latest revision as of 00:17, 7 December 2021

Infobox for articles about people and important figures

Template parameters

ParameterDescriptionTypeStatus
Namename

Name of the person or figure.

Default
{{PAGENAMEBASE}}
Stringsuggested
Imageimage

no description

Fileoptional
Image Sizeimage_size

Size of the image. See Wikipedia image tutorial to find out about valid size values. The default is 250px.

Stringoptional
Image Captionimage_caption

Caption for the image

Unknownoptional
Alt Textimage_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.

Stringoptional
Birthbirth

no description

Dateoptional
Deathdeath

no description

Dateoptional
Nationalitynationality

no description

Stringoptional
Associated Brand(s)brand

no description

Stringoptional
Websiteurl

The canonical URL of the figure's website or portfolio.

Stringoptional
Blogblog

The canonical URL of the figure's online blog.

Stringoptional
Twittertwitter

The canonical URL of the figure's public Twitter account.

Stringoptional
Instagraminstagram

The canonical URL of the figure's public Instagram account.

Stringoptional