|
|
Line 1: |
Line 1: |
| {{documentation subpage}}
| |
| {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for clobbered parameters|Module:Check for unknown parameters}}
| |
|
| |
|
| == Usage ==
| | <noinclude> |
| {{Parameter names example
| |
| | name =
| |
| | image =
| |
| | image_size =
| |
| | image_alt =
| |
| | image_caption =
| |
| | birth =
| |
| | death =
| |
| | predecessor =
| |
| | successor =
| |
| | nationality =
| |
| | brands =
| |
| | url =
| |
| | blog =
| |
| | twitter =
| |
| | instagram =
| |
| }}
| |
| | |
| === Full version ===
| |
| Please remove any unused parameters when copying to an article page.
| |
| | |
| <syntaxhighlight lang="html" style="overflow: hidden; background: unset;"> | |
| {{Infobox brand
| |
| | name =
| |
| | image =
| |
| | image_size =
| |
| | image_alt =
| |
| | image_caption =
| |
| | birth =
| |
| | death =
| |
| | predecessor =
| |
| | successor =
| |
| | nationality =
| |
| | brands =
| |
| | url =
| |
| | blog =
| |
| | twitter =
| |
| | instagram =
| |
| }}
| |
| </syntaxhighlight>
| |
| {{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 43: |
| "type": "string" | | "type": "string" |
| }, | | }, |
| "brands": { | | "image": { |
| "label": "Associated Brand(s)", | | "label": "Image", |
| "type": "string" | | "type": "wiki-file-name" |
| } | | } |
| }, | | }, |
| "format": "block", | | "description": "Infobox for articles about people and important figures", |
| "paramOrder": [ | | "paramOrder": [ |
| "name", | | "name", |
| "image", | | "image", |
| "image_size",
| |
| "image_caption",
| |
| "image_alt",
| |
| "birth", | | "birth", |
| "death", | | "death", |
| "predecessor",
| |
| "successor",
| |
| "nationality",
| |
| "brands",
| |
| "url", | | "url", |
| "blog", | | "blog", |
| "twitter", | | "twitter", |
| "instagram" | | "instagram", |
| | "nationality" |
| ] | | ] |
| } | | } |
| </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>
| |