|
|
(6 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 = | |
|
| |
|
| | logo_size = | | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{if empty|{{{image|}}}|{{{logo|}}}|{{{websitelogo|}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{image_alt|}}}}} |
| | logo_alt = | | | caption1 = {{if empty|{{{image_caption|}}}|{{{imagecaption|}}}}} |
| | logo_caption = | | |
| | screenshot = | | | label6 = Birth |
| | screenshot_size = | | | data6 = {{if empty|{{{birth|}}}|{{{foundation|}}}}} |
| | screenshot_alt = | | |
| | collapsible = <!-- set as "on", "y", etc, otherwise omit/leave blank. Does nothing for mobile users. --> | | | label7 = Death |
| | collapsetext = <!-- collapsible area's heading (default "Screenshot"); omit/leave blank if collapsible not set --> | | | data7 = {{{death|}}} |
| | background = <!-- for collapsetext heading; default grey (gainsboro) --> | | |
| | caption = | | | label8 = Predecessor(s) |
| | language = | | | data8 = {{{predecessor|}}} |
| | language_count = | | |
| | language_footnote =
| | | label9 = Associated Brand(s) |
| | traded_as = | | | data9 = {{{brand|}}} |
| | founded = <!-- or: | foundation = --> | | |
| | dissolved = | | | label11 = Nationality |
| | predecessor = | | | data11 = {{{nationality|}}} |
| | successor = | | |
| | country_of_origin =
| | | label37 = Website |
| | locations = | | | class37 = url |
| | owner = <!-- or: | owners = --> | | | data37 = {{if empty|{{{url|}}}|{{{website|}}}|{{{homepage|}}}}} |
| | founder = | | |
| | subsidiaries = <!-- or: | subsid = --> | | | label39 = Twitter |
| | url = <!-- {{URL|example.com}} --> | | | class39 = url |
| | webshop = <!-- {{URL|example.com}} --> | | | data39 = {{{twitter|}}} |
| | twitter = | | |
| | blog = | | | label40 = Blog |
| | instagram = | | | class40 = url |
| | weibo = | | | data40 = {{{blog|}}} |
| | current_status = | |
| | lolibrary_link = <!-- Search on main Lolibrary site --> | |
| | footnotes = | |
| }} | |
|
| |
|
| === 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 =
| |
| | 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> | | <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 brands",
| |
| "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",
| |
| "type": "string", | | "type": "string", |
| "aliases": [ | | "label": "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.",
| |
| "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" |
| },
| |
| "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",
| |
| "type": "string", | | "type": "string", |
| "default": "{{PAGENAMEBASE}}", | | "default": "{{PAGENAMEBASE}}", |
| "required": true, | | "suggested": true |
| "aliases": [
| |
| "websitename"
| |
| ]
| |
| },
| |
| "logo_size": {
| |
| "label": "Logo size",
| |
| "description": "Size of the logo. See Wikipedia image tutorial to find out about valid size values. The default is 250px.",
| |
| "type": "string",
| |
| "default": "250px"
| |
| },
| |
| "logo_alt": {
| |
| "label": "Logo's alternative text",
| |
| "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"
| |
| },
| |
| "screenshot_size": {
| |
| "label": "Screenshot's size",
| |
| "description": "Screenshot size. The default is 300px. Usually, changing the default is unnecessary.",
| |
| "example": "300px",
| |
| "type": "string"
| |
| },
| |
| "screenshot_alt": {
| |
| "label": "Screenshot's alternative text",
| |
| "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.",
| |
| "type": "string"
| |
| },
| |
| "language_count": {
| |
| "label": "Language count",
| |
| "description": "The number of languages in which the website is available",
| |
| "type": "number"
| |
| },
| |
| "language_footnote": {
| |
| "label": "Language footnote",
| |
| "description": "The footnote text containing citation for the source that says what languages are available",
| |
| "type": "unbalanced-wikitext"
| |
| }, | | }, |
| "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": { | | "image": { |
| "label": "Successor", | | "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" | | "type": "string" |
| }, | | }, |
| "country_of_origin": { | | "brand": { |
| "label": "Country", | | "label": "Associated Brand(s)", |
| "type": "string" | | "type": "string" |
| }, | | }, |
| "locations": { | | "image_size": { |
| "label": "No. of locations", | | "label": "Image Size", |
| "type": "number" | | "description": "Size of the image. See Wikipedia image tutorial to find out about valid size values. The default is 250px.", |
| },
| |
| "founder": {
| |
| "label": "Founder(s)",
| |
| "type": "string" | | "type": "string" |
| }, | | }, |
| "subsidiaries": { | | "image_caption": { |
| "aliases": [
| | "label": "Image Caption", |
| "subsid"
| | "description": "Caption for the image" |
| ],
| |
| "label": "Subsidiaries", | |
| "type": "string" | |
| } | | } |
| }, | | }, |
| "format": "block", | | "description": "Infobox for articles about people and important figures", |
| "paramOrder": [ | | "paramOrder": [ |
| "name", | | "name", |
| "logo", | | "image", |
| "logo_size", | | "image_size", |
| "logo_caption", | | "image_caption", |
| "logo_alt", | | "image_alt", |
| "screenshot", | | "birth", |
| "screenshot_size", | | "death", |
| "caption", | | "nationality", |
| "screenshot_alt", | | "brand", |
| "collapsible",
| |
| "collapsetext",
| |
| "language",
| |
| "language_count",
| |
| "language_footnote",
| |
| "founded",
| |
| "dissolved",
| |
| "predecessor",
| |
| "successor",
| |
| "country_of_origin",
| |
| "locations",
| |
| "owner",
| |
| "founder",
| |
| "subsidiaries",
| |
| "url", | | "url", |
| "webshop",
| | "blog", |
| "blog",
| | "twitter", |
| "twitter",
| | "instagram" |
| "instagram",
| |
| "weibo",
| |
| "current_status",
| |
| "lolibrary_link",
| |
| "footnotes"
| |
| ] | | ] |
| } | | } |
| </templatedata> | | </templatedata> |
| | | </noinclude> |
| == 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>
| |