Template:Infobox product/doc
| This is a documentation subpage for Template:Infobox product. It may contain usage information, categories and other content that is not part of the original template page. |
__EXPECTED_UNCONNECTED_PAGE__
| This template uses Lua: |
NO LABEL (P154) (see uses)
NO LABEL (P18) (see uses)
NO LABEL (P31) (see uses)
NO LABEL (P61) (see uses)
NO LABEL (P571) (see uses)
NO LABEL (P176) (see uses)
NO LABEL (P856) (see uses)
Infobox product is a general infobox for products that have no more specific infobox. It can fill most rows from Wikidata: placing {{Infobox product}} with no parameters on an article linked to a Wikidata item shows the logo, image, inventor, inception, manufacturer and website from that item. Any value given locally replaces the Wikidata value.
Usage
| [[File:{{{logo}}}|{{{logo_size}}}|alt={{{logo_alt}}}|class=logo]] {{{logo_caption}}} | |
| [[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}|upright={{{image_upright}}}]] {{{image_caption}}} | |
| Type | {{{type}}} |
|---|---|
| Inventor | {{{inventor}}} |
| Inception | {{{inception}}} |
| Manufacturer | {{{manufacturer}}} |
| Available | {{{available}}} |
Current supplier | {{{current_supplier}}} |
Last production year | {{{last_production_year}}} |
| Models | {{{models}}} |
| Slogan | {{{slogan}}} |
| Website | {{{website}}} |
| Notes {{{notes}}} | |
{{Infobox product
| name =
| logo =
| logo_size =
| logo_alt =
| logo_caption =
| image =
| image_size =
| image_upright =
| image_alt =
| image_caption =
| type =
| inventor =
| inception =
| manufacturer =
| available =
| current_supplier =
| last_production_year =
| models =
| slogan =
| website =
| notes =
}}
Parameters
| Parameter | Wikidata | Explanation |
|---|---|---|
name
|
Name of the product. Defaults to {{PAGENAMEBASE}}.
| |
logo
|
(P154) | The product's logo, as a file name without the File: prefix.
|
logo_size
|
Logo width, e.g. 150px. Default: frameless.
| |
logo_alt
|
Alt text for the logo. | |
logo_caption
|
Caption shown under the logo. | |
image
|
(P18) | An image of the product, as a file name without the File: prefix.
|
image_size
|
Image width, e.g. 200px. Default: frameless. Prefer image_upright.
| |
image_upright
|
Image scaling factor relative to the reader's default thumbnail size, e.g. 1.2. Default: 1.
| |
image_alt
|
Alt text for the image. | |
image_caption
|
Caption shown under the image. | |
type
|
(P31) | The kind of product, e.g. [[Media player (hardware)|Media player]]. Not fetched from Wikidata unless |fetchwikidata= is set.
|
inventor
|
(P61) | The inventor or creator of the product. |
inception
|
(P571) | When the product was launched, ideally with {{Start date}}. |
manufacturer
|
(P176) | The company or entity that makes the product. |
available
|
Whether, or where, the product is currently available. | |
current_supplier
|
The current supplier or distributor of the product. | |
last_production_year
|
The year production ended. | |
models
|
Models of the product. | |
slogan
|
The product's slogan or tagline. | |
website
|
(P856) | The official website, ideally with {{URL}}. |
notes
|
Additional notes, shown at the bottom of the box under a bold "Notes" heading. | |
| Wikidata controls | ||
qid
|
The Wikidata item to fetch from, e.g. Q2813. Default: the item linked to the article. Use it only when the article is not about the product itself.
| |
fetchwikidata
|
Which fields to fetch: ALL (default), NONE, or a comma-separated list of field names (logo, image, type, inventor, inception, manufacturer, website).
| |
suppressfields
|
A comma-separated list of field names never to fetch from Wikidata, e.g. website, inventor.
| |
onlysourced
|
Default yes: only Wikidata values with a reference are used for type, inventor, inception and manufacturer. Set no to allow unsourced values. The logo and image are always used; the website is used unsourced unless this is set to yes.
| |
noicon
|
Set yes to hide the pencil icon that links each Wikidata value to its item.
| |
Example
| Type | Washing machine |
|---|---|
| Inventor | Andrew Reason |
| Inception | 2009 |
| Manufacturer | Reason company |
| Available | Yes |
Current supplier | Reason |
| Models | Ultra, Super |
| Slogan | Clean for a reason |
| Website | example |
{{Infobox product
| name = Reason washing machine
| fetchwikidata = NONE
| type = [[Washing machine]]
| inventor = Andrew Reason
| inception = {{Start date|2009}}
| manufacturer = Reason company
| available = Yes
| current_supplier = Reason
| models = Ultra, Super
| slogan = ''Clean for a reason''
| website = {{URL|example.com}}
}}
Template data
TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See a monthly parameter usage report for Template:Infobox product in articles based on its TemplateData.
TemplateData for Infobox product A general infobox for products that have no more specific infobox. Most rows are filled from Wikidata when no local value is given.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tracking categories
See also
- {{Infobox brand}}