Difference between revisions of "Template:Infobox figure"

From Lolibrary Wiki
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{Infobox
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for clobbered parameters|Module:Check for unknown parameters}}
| bodyclass  = vcard
| child = {{lc:{{{embed|}}}}}
| decat = yes


== Usage ==
| titleclass = fn org
{{Parameter names example
| title      = {{if empty|{{{name|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
| name =  
 
| image =  
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{if empty|{{{image|}}}|{{{logo|}}}|{{{websitelogo|}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{image_alt|}}}}}
| image_size =  
| caption1 = {{if empty|{{{image_caption|}}}|{{{imagecaption|}}}}}
| image_alt =  
 
| image_caption =  
| label6  = Birth
| birth =  
| data6    = {{if empty|{{{birth|}}}|{{{foundation|}}}}}
| death =
 
| predecessor =  
| label7  = Death
| successor =  
| data7    = {{{death|}}}
| nationality =  
 
| brands =  
| label8  = Predecessor(s)
| url =  
| data8    = {{{predecessor|}}}
| blog =
 
| twitter =
| label9  = Associated Brand(s)
| instagram =
| 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|}}}


=== Full version ===
| label41  = Instagram
Please remove any unused parameters when copying to an article page.
| class41  = url
| data41  = {{{instagram|}}}


<syntaxhighlight lang="html" style="overflow: hidden; background: unset;">
| below    = {{{footnotes|}}}
{{Infobox brand
| name =
| image =
| image_size =
| image_alt =
| image_caption =
| birth =
| death =
| predecessor =
| successor =
| nationality =
| brands =
| url =
| blog =
| twitter =
| instagram =
}}
}}
</syntaxhighlight>
<noinclude>
{{Clear}}
 
==Parameters==
All parameters are optional. Avoid linking to an article more than once within the infobox.
{{TemplateData header}}
<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 123: 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 137: Line 118:
"birth",
"birth",
"death",
"death",
"predecessor",
"successor",
"nationality",
"nationality",
"brands",
"brand",
"url",
"url",
"blog",
"blog",
Line 148: Line 127:
}
}
</templatedata>
</templatedata>
== Example ==
</noinclude>
{{Infobox brand
| name = Wikipedia
| logo = [[File:Wikipedia-v2-logo.svg|150px|frameless|An incomplete sphere made of large, white, jigsaw puzzle pieces. Each puzzle piece contains one glyph from a different writing system, with each glyph written in black.]]<br />[[File:Wikipedia wordmark.svg|200px|The Wikipedia wordmark which displays the name Wikipedia, written in all caps. The{{nbsp}}''W'' and the{{nbsp}}''A'' are the same height and both are taller than the other letters which are also all the same height.]]
| logo_caption = The [[Wikipedia logo|logo of Wikipedia]], a globe featuring [[glyph]]s from various [[writing system]]s
| screenshot = Wikipedia Main Page.png{{!}}border
| screenshot_alt = Main page of the English Wikipedia
| caption = [[Main Page]] of the English Wikipedia on July 19, 2020
| collapsible = yes
| url = {{URL|https://www.wikipedia.org/|wikipedia.org}}
| language = 285 languages
| country_of_origin = United States
| owner = [[Wikimedia Foundation]]
| current_status = Active
| footnotes = <div class="plainlist" style="border-top:1px solid #aaa;padding-top:0.3em;text-align:left;">
* {{nowrap |{{sup|a}} Total registration across all editions (July 2020).<ref>[[meta:List of Wikipedias#Grand Total|Grand Total]]. Wikimedia. 22 July 2020. Retrieved 22 July 2020.</ref>}}
</div>
}}
 
<syntaxhighlight lang="html" style="overflow: hidden; background: unset;">
{{Infobox brand
| name = Wikipedia
| logo = [[File:Wikipedia-v2-logo.svg|150px|frameless|An incomplete sphere made of large, white, jigsaw puzzle pieces. Each puzzle piece contains one glyph from a different writing system, with each glyph written in black.]]<br />[[File:Wikipedia wordmark.svg|200px|The Wikipedia wordmark which displays the name Wikipedia, written in all caps. The{{nbsp}}''W'' and the{{nbsp}}''A'' are the same height and both are taller than the other letters which are also all the same height.]]
| logo_caption = The [[Wikipedia logo|logo of Wikipedia]], a globe featuring [[glyph]]s from various [[writing system]]s
| screenshot = Wikipedia Main Page.png{{!}}border
| screenshot_alt = Main page of the English Wikipedia
| caption = [[Main Page]] of the English Wikipedia on July 19, 2020
| collapsible = yes
| url = {{URL|https://www.wikipedia.org/|wikipedia.org}}
| language = 285 languages
| country_of_origin = United States
| owner = [[Wikimedia Foundation]]
| current_status = Active
| footnotes = <div class="plainlist" style="border-top:1px solid #aaa;padding-top:0.3em;text-align:left;">
* {{nowrap |{{sup|a}} Total registration across all editions (July 2020).<ref>[[meta:List of Wikipedias#Grand Total|Grand Total]]. Wikimedia. 22 July 2020. Retrieved 22 July 2020.</ref>}}
</div>
}}
</syntaxhighlight>
 
=== References ===
{{Reflist}}
{{Clear}}
 
 
<includeonly>{{Sandbox other|
| <!--Categories below this line, please; interwikis at Wikidata-->
[[Category:Websites templates| ]]
[[Category:Computing infobox templates|Website]]
[[Category:Embeddable templates]]
[[Category:Templates that add a tracking category]]
}}</includeonly>

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