Template:Infobox product

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Infobox product/doc.

Template:Uses Wikidata

Usage[edit]

This template can draw data from Wikidata, assuming it is defined there. Simply use {{Infobox product}}. You may also set values manually: Template:Parameter names example

Example[edit]

Reason washing machine
Type Washing machine
Inventor Andrew Reason
Inception Template:Start date
Manufacturer Reason company
Available Available
Current supplier Reason
Models made Ultra, Super
{{Infobox product
| title            = Reason washing machine
| image            = 
| image_size       = 
| alt              = 
| caption          = 
| type             = [[Washing machine]]
| inventor         = [[Andrew Reason]]
| inception        = {{start date|2009}}
| manufacturer     = Reason company
| available        = Available
| current supplier = Reason
| last production  = 
| models           = Ultra, Super
| website          = 
| notes            = 
}}

Microformats[edit]

Template:UF-hprod

See also[edit]

TemplateData[edit]

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

An infobox for products. This is a general infobox for products that don't have an infobox for their category, and should be used for general products.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

The title of the product stated in the article or what the article is covering.

Example
Reason washing machine
Auto value
Stringoptional
Imageimage

The image that reveals the product stated. Make sure that it is a valued image, as image that are deleted will not show.

Example
example.jpg
Filesuggested
Image sizeimage_size

The size of the image. The default is 250px and must not include "px".

Default
250
Example
275
Auto value
250
Numberdeprecated
Image alternative textalt

Alternative text describing the image showing the product for visually impaired readers.

Example
An Earth globe, and on the left side is being walked upon by a orange-red fur fox, it's own tail is on fire.
Auto value
Stringoptional
Image captioncaption

The caption describing the image shown on the infobox. Must be concise and short, not excessively detailed.

Example
The sixth-generation iPod Nano.
Stringoptional
Typetype

The type of the product stated in the article. Can be verified, but must state the type of product.

Example
Media player
Stringrequired
Inventorinventor

The creator or inventor of the product.

Example
Reason
Stringsuggested
Inceptioninception

The launch date of the product.

Example
May 2012
Datesuggested
Manufacturermanufacturer

The company or entity that manufactures this product.

Example
Moleskine
Auto value
Stringrequired
Availableavailable

Whether the product is currently available.

Example
Yes
Stringsuggested
Current suppliercurrent supplier

The distributor or entity that is the most current supplier of this product.

Example
Amazon.com
Stringoptional
Last production datelast production

The date of the last known or confirmed date that the product stopped selling or discontinued.

Example
2016
Dateoptional
Modelsmodels

The models of this product.

Example
iriver H100
Stringoptional
Websiteurl Official URL

The homepage or official URL for this product. It must be at least archived or running.

Example
[http://www.example.net example.net]
URLsuggested
Notesnotes

Additional notes

Stringoptional

Template:Wikidata infoboxes