Template:Information/doc

TemplateData
{	"description": { "en": "This template is used to provide formatting to the basic information for files (description, source, author, etc.). For a full usage description of the template, see Commons:First steps/Quality and description." },	"format": "\n", "params": { "description": { "aliases": [ "Description" ],			"label": { "en": "Description" },			"description": { "en": "Description of the image or media file, including subject and location" },			"example": { "en": "Photo of a penguin in Antarctica" },			"type": "string", "default": { "en": "" },			"required": true },		"date": { "aliases": [ "Date" ],			"label": { "en": "Date of creation" },			"description": { "en": "When the original source was created" },			"example": { "en": "2001-12-31" },			"suggested": true, "type": "date" },		"source": { "aliases": [ "Source" ],			"label": { "en": "Source" },			"description": { "en": "Where the file is from. Your own files should be tagged with Own work." },			"default": { "en": "" },			"required": true, "type": "string" },		"author": { "aliases": [ "Author" ],			"label": { "en": "Author" },			"description": { "en": "Original author of the file; where appropriate, use ." },			"default": { "en": "" },			"required": true, "type": "line" },		"permission": { "aliases": [ "Permission" ],			"label": { "en": "Permission" },			"description": { "en": "License and other usage limitations and warnings" },			"type": "content", "suggested": true },		"other versions": { "aliases": [ "other_versions", "Other versions", "Other_versions" ],			"label": { "en": "Other versions" },			"description": { "en": "Links to files with very similar content or derived files" },			"type": "wiki-file-name" },		"other fields": { "aliases": [ "other_fields", "Other_fields", "Other fields" ],			"label": { "en": "Other fields" },			"description": { "en": "Additional table fields added on the bottom of the template" },			"type": "wiki-file-name" },		"other fields 1": { "aliases": [ "other_fields_1", "Other_fields_1", "Other fields 1" ],			"label": { "en": "Other fields 1" },			"description": { "en": "Additional table fields added between Description and Date rows" },			"type": "wiki-file-name" },		"lang": { "aliases": [ "Lang" ],			"deprecated": true },		"demo": { "aliases": [ "Demo" ],			"deprecated": true }	},	"paramOrder": [ "description", "date", "source", "author", "permission", "other versions", "other fields", "other fields 1", "lang", "demo" ] }

Example for photograph
For example the source code of the description of photograph File:Piers Sellers spacewalk.jpg is:

{{pre2|scroll| {{Information | Description = {{en|Astronaut Piers Sellers during the third spacewalk of STS-121, a demonstration of orbiter heat shield repair techniques.}} }}

The code hereinbefore produces the following information table:

{{Information | Description = {{en|Astronaut Piers Sellers during the third spacewalk of STS-121, a demonstration of orbiter heat shield repair techniques.}} | Date = 2006-07-12 | Source = NASA News & Events – http://www.nasa.gov/externalflash/121_gallery/hi-resjpgs/14.jpg, from http://www.nasa.gov/externalflash/121_gallery/index_noaccess.html | Author = NASA, astronaut Michael Edward Fossum | Permission = | Other versions = }}

Example other_fields
Example using the other fields parameter to display a credit line:

will produce:

Microformat
This template also emits an hCalendar microformat marking the creation of the image as an event. To do this, it requires the Date template, and takes the file name as the "summary" property. Optionally, it can include an hCard microformat, and use the contents of Description as the hCalendar's "description" property.

See also Machine-readable data.