Template:Infobox product/doc

From Doc Moates Wiki
Jump to navigation Jump to search

__EXPECTED_UNCONNECTED_PAGE__

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

{{{name}}}
[[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

Reason washing machine
TypeWashing machine
InventorAndrew Reason
Inception2009 (2009)
ManufacturerReason company
AvailableYes
Current supplier
Reason
ModelsUltra, Super
SloganClean for a reason
Websiteexample.com
{{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

Tracking categories

See also