|
|
Line 1: |
Line 1: |
| {{documentation subpage}}
| |
| {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for clobbered parameters|Module:Check for unknown parameters}}
| |
|
| |
|
| == Usage ==
| |
| {{Parameter names example
| |
| | name =
| |
|
| |
| | logo_size =
| |
| | logo_alt =
| |
| | logo_caption =
| |
| | screenshot =
| |
| | screenshot_size =
| |
| | screenshot_alt =
| |
| | collapsible = <!-- set as "on", "y", etc, otherwise omit/leave blank. Does nothing for mobile users. -->
| |
| | collapsetext = <!-- collapsible area's heading (default "Screenshot"); omit/leave blank if collapsible not set -->
| |
| | background = <!-- for collapsetext heading; default grey (gainsboro) -->
| |
| | caption =
| |
| | language =
| |
| | language_count =
| |
| | language_footnote =
| |
| | traded_as =
| |
| | founded = <!-- or: | foundation = -->
| |
| | dissolved =
| |
| | predecessor =
| |
| | successor =
| |
| | country_of_origin =
| |
| | locations =
| |
| | owner = <!-- or: | owners = -->
| |
| | founder =
| |
| | subsidiaries = <!-- or: | subsid = -->
| |
| | url = <!-- {{URL|example.com}} -->
| |
| | webshop = <!-- {{URL|example.com}} -->
| |
| | twitter =
| |
| | blog =
| |
| | instagram =
| |
| | weibo =
| |
| | current_status =
| |
| | lolibrary_link = <!-- Search on main Lolibrary site -->
| |
| | footnotes =
| |
| }}
| |
|
| |
| === Full version ===
| |
| Please remove any unused parameters when copying to an article page.
| |
|
| |
| <syntaxhighlight lang="html" style="overflow: hidden; background: unset;">
| |
| {{Infobox brand
| |
| | name =
| |
| | logo =
| |
| | logo_size =
| |
| | logo_alt =
| |
| | logo_caption =
| |
| | screenshot =
| |
| | screenshot_size =
| |
| | screenshot_alt =
| |
| | collapsible = <!-- set as "on", "y", etc, otherwise omit/leave blank. Does nothing for mobile users. -->
| |
| | collapsetext = <!-- collapsible area's heading (default "Screenshot"); omit/leave blank if collapsible not set -->
| |
| | background = <!-- for collapsetext heading; default grey (gainsboro) -->
| |
| | caption =
| |
| | language =
| |
| | language_count =
| |
| | language_footnote =
| |
| | traded_as =
| |
| | founded = <!-- or: | foundation = -->
| |
| | dissolved =
| |
| | predecessor =
| |
| | successor =
| |
| | country_of_origin =
| |
| | locations =
| |
| | owner = <!-- or: | owners = -->
| |
| | founder =
| |
| | subsidiaries = <!-- or: | subsid = -->
| |
| | url = <!-- {{URL|example.com}} -->
| |
| | webshop = <!-- {{URL|example.com}} -->
| |
| | twitter =
| |
| | blog =
| |
| | instagram =
| |
| | weibo =
| |
| | current_status =
| |
| | lolibrary_link = <!-- Search on main Lolibrary site -->
| |
| | footnotes =
| |
| }}
| |
| </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 brands", | | "description": "An infobox for articles about people and important figures", |
| "params": { | | "params": { |
| "logo": {
| |
| "description": "The website logo",
| |
| "label": "Logo",
| |
| "aliases": [
| |
| "websitelogo"
| |
| ],
| |
| "type": "wiki-file-name"
| |
| },
| |
| "logo_caption": {
| |
| "description": "Caption for the logo. Most logos need none. But this field can be used to insert mandatory deletion notices.",
| |
| "label": "Logo's caption",
| |
| "aliases": [
| |
| "logocaption"
| |
| ]
| |
| },
| |
| "screenshot": {
| |
| "description": "A screen photo of the homepage; see: [[:File:EnglishWikipediaMainPage3rdAugust2007.PNG|Example 1]].",
| |
| "label": "Screenshot",
| |
| "example": "EnglishWikipediaMainPage3rdAugust2007.PNG",
| |
| "type": "wiki-file-name"
| |
| },
| |
| "collapsible": {
| |
| "description": "Whether the screenshot should be collapsed or visible at page load. (Yes / No). Does nothing for mobile users (see [[phab:T111565]]).",
| |
| "label": "Is screenshot collapsible?",
| |
| "example": "yes",
| |
| "type": "boolean",
| |
| "default": "No"
| |
| },
| |
| "collapsetext": {
| |
| "description": "Text for the header of the collapsed section, defaults to ''Screenshot''.",
| |
| "label": "Collapsed screenshot header",
| |
| "type": "string"
| |
| },
| |
| "caption": {
| |
| "description": "A caption for the screenshot. Should contain the date the screenshot was taken.",
| |
| "label": "Screenshot's caption",
| |
| "example": "Screenshot of Wikipedia on 11 September 2014.",
| |
| "type": "string"
| |
| },
| |
| "url": { | | "url": { |
| "description": "The canonical URL of the website's home page meeting [[WP:ELOFFICIAL]]. If the website is primarily accessed through its IP address, the IP address may be listed instead.", | | "description": "The canonical URL of the figure's website or portfolio.", |
| "label": "Website", | | "label": "Website", |
| "type": "string", | | "type": "string", |
| "aliases": [ | | "aliases": [ |
| "website", | | "website" |
| "homepage"
| |
| ] | | ] |
| }, | | }, |
| "webshop": {
| | "blog": { |
| "description": "The canonical URL of the brand's online webstore.",
| |
| "label": "Webshop",
| |
| "type": "string"
| |
| }, | |
| "blog": {
| |
| "description": "The canonical URL of the brand's online blog.", | | "description": "The canonical URL of the brand's online blog.", |
| "label": "Blog", | | "label": "Blog", |
| "type": "string" | | "type": "string" |
| }, | | }, |
| "twitter": {
| | "twitter": { |
| "description": "The canonical URL of the brand's twitter account", | | "description": "The canonical URL of the brand's twitter account", |
| "label": "Twitter", | | "label": "Twitter", |
| "type": "string" | | "type": "string" |
| }, | | }, |
| "instagram": {
| | "instagram": { |
| "description": "The canonical URL of the brand's instagram account", | | "description": "The canonical URL of the brand's instagram account", |
| "label": "Instagram", | | "label": "Instagram", |
| "type": "string" | | "type": "string" |
| },
| |
| "weibo": {
| |
| "description": "The canonical URL of the brand's weibo account",
| |
| "label": "Weibo",
| |
| "type": "string"
| |
| },
| |
| "language": {
| |
| "description": "The language(s) in which the website is available",
| |
| "label": "Language",
| |
| "type": "number"
| |
| },
| |
| "lolibrary_link": {
| |
| "description": "Link to search results for this brand",
| |
| "label": "Lolibrary Link",
| |
| "type": "string"
| |
| },
| |
| "owner": {
| |
| "description": "The current owner(s); should be a company name, persons name, alias, etc.",
| |
| "label": "Owner(s)",
| |
| "aliases": [
| |
| "owners"
| |
| ],
| |
| "type": "string"
| |
| },
| |
| "current_status": {
| |
| "description": "The website's current status",
| |
| "label": "Current status",
| |
| "type": "string"
| |
| },
| |
| "footnotes": {
| |
| "description": "Footnotes displayed at the bottom of infobox",
| |
| "label": "Footnotes",
| |
| "type": "unbalanced-wikitext"
| |
| }, | | }, |
| "name": { | | "name": { |
| "label": "Name", | | "label": "Name", |
| "description": "Title of the website. Sometimes, it is the same as the domain name.", | | "description": "Name of the person or figure", |
| "example": "Ars Technica", | | "example": "Ars Technica", |
| "type": "string", | | "type": "string", |
| "default": "{{PAGENAMEBASE}}", | | "default": "{{PAGENAMEBASE}}", |
| "required": true, | | "required": true |
| "aliases": [
| |
| "websitename"
| |
| ]
| |
| }, | | }, |
| "logo_size": { | | "predecessor": { |
| "label": "Logo size", | | "label": "Predecessor", |
| "description": "Size of the logo. See Wikipedia image tutorial to find out about valid size values. The default is 250px.",
| | "type": "string" |
| "type": "string", | |
| "default": "250px"
| |
| }, | | }, |
| "logo_alt": { | | "successor": { |
| "label": "Logo's alternative text", | | "label": "Successor", |
| "description": "Alternative text for the logo. Alternative text is displayed when the logo itself cannot be displayed or when a screen reader reads the article for the blind people.",
| |
| "type": "string" | | "type": "string" |
| }, | | }, |
| "screenshot_size": { | | "image": { |
| "label": "Screenshot's size", | | "label": "Image", |
| "description": "Screenshot size. The default is 300px. Usually, changing the default is unnecessary.", | | "description": "Image of the figure", |
| "example": "300px",
| | "type": "wiki-file-name" |
| "type": "string" | |
| }, | | }, |
| "screenshot_alt": { | | "image_size": { |
| "label": "Screenshot's alternative text", | | "label": "Image size", |
| "description": "Alternative text for the screenshot. Alternative text is displayed when the screenshot itself cannot be displayed or when a screen reader reads the article for the blind people.", | | "description": "Size of the image. See Wikipedia image tutorial to find out about valid size values. The default is 250px.", |
| "type": "string" | | "type": "string", |
| | "default": "250px" |
| }, | | }, |
| "language_count": { | | "image_caption": { |
| "label": "Language count", | | "label": "Image's caption", |
| "description": "The number of languages in which the website is available", | | "description": "Caption for the image." |
| "type": "number"
| |
| }, | | }, |
| "language_footnote": { | | "image_alt": { |
| "label": "Language footnote", | | "label": "Image's alternative text", |
| "description": "The footnote text containing citation for the source that says what languages are available", | | "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": "unbalanced-wikitext" | | "type": "string" |
| }, | | }, |
| "founded": { | | "birth": { |
| "aliases": [
| | "label": "Birth", |
| "foundation"
| |
| ],
| |
| "label": "Founded", | |
| "type": "date" | | "type": "date" |
| }, | | }, |
| "dissolved": { | | "death": { |
| "label": "Dissolved", | | "label": "Death", |
| "type": "date" | | "type": "date" |
| }, | | }, |
| "predecessor": { | | "nationality": { |
| "label": "Predecessor", | | "label": "Nationality", |
| "type": "string" | | "type": "string" |
| }, | | }, |
| "successor": { | | "brands": { |
| "label": "Successor", | | "label": "Associated Brand(s)", |
| "type": "string"
| |
| },
| |
| "country_of_origin": {
| |
| "label": "Country",
| |
| "type": "string"
| |
| },
| |
| "locations": {
| |
| "label": "No. of locations",
| |
| "type": "number"
| |
| },
| |
| "founder": {
| |
| "label": "Founder(s)",
| |
| "type": "string"
| |
| },
| |
| "subsidiaries": {
| |
| "aliases": [
| |
| "subsid"
| |
| ],
| |
| "label": "Subsidiaries",
| |
| "type": "string" | | "type": "string" |
| } | | } |
Line 276: |
Line 83: |
| "paramOrder": [ | | "paramOrder": [ |
| "name", | | "name", |
| "logo", | | "image", |
| "logo_size", | | "image_size", |
| "logo_caption", | | "image_caption", |
| "logo_alt", | | "image_alt", |
| "screenshot", | | "birth", |
| "screenshot_size", | | "death", |
| "caption",
| |
| "screenshot_alt",
| |
| "collapsible",
| |
| "collapsetext",
| |
| "language",
| |
| "language_count",
| |
| "language_footnote",
| |
| "founded",
| |
| "dissolved",
| |
| "predecessor", | | "predecessor", |
| "successor", | | "successor", |
| "country_of_origin", | | "nationality", |
| "locations", | | "brands", |
| "owner",
| |
| "founder",
| |
| "subsidiaries",
| |
| "url", | | "url", |
| "webshop",
| | "blog", |
| "blog",
| | "twitter", |
| "twitter",
| | "instagram" |
| "instagram",
| |
| "weibo",
| |
| "current_status",
| |
| "lolibrary_link",
| |
| "footnotes"
| |
| ] | | ] |
| } | | } |
| </templatedata> | | </templatedata> |
|
| |
| == Example ==
| |
| {{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>
| |