Template:FileContentsByBot/Properties

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Properties
Dimensions Mode Format Filesize Palette Length MIME
Documentation icon Documentation[view] [edit] [history] [purge]

This documentation is transcluded from Template:FileContentsByBot/Properties/doc.

The general properties of the image. Use one {{FileContentsByBot/Properties}} for the formatting. Refer to that template to find how you can read the data from the HTML.
Row's id: FileContentsByBot-Properties. Caption class: bot-Properties-legend.

Usage

{{FileContentsByBot/Properties
 |1 =
 |Dimensions-00 =
 |Dimensions-01 =
 |Format =
 |Mode =
 |Filesize =
 |Palette =
 |Length =
}}

Template parameters

Parameter Description Default Status
1 One {{FileContentsByBot/Properties}} block. Confer example below. empty optional
Dimensions-00 The file's width (dimX) in px. Number only. Mainly for Image-Annotator.
Row's class: bot-Properties-Dimensions. Field/Cell's id: FileContentsByBot-DimX.
empty required
Dimensions-01 The file's height (dimY) in px. Number only. Mainly for Image-Annotator.
Row's class: bot-Properties-Dimensions. Field/Cell's id: FileContentsByBot-DimY.
empty required
Format The file's image format.
Field/Cell's class: bot-Properties-Format.
empty required
Mode The file's color mode.
Field/Cell's class: bot-Properties-Mode.
empty required
Filesize The file's size.
Field/Cell's class: bot-Properties-Filesize.
empty required
Palette The file's color palette size (number of colors used in all channels).
Field/Cell's class: bot-Properties-Palette.
empty required
Length The file's length, this includes number of pages or layers used but also length in seconds for audio or video.
Field/Cell's class: bot-Properties-Length.
-1 required

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Example of usage:

{{FileContentsByBot/Properties|
  {{FileContentsByBot/Properties
  | Filesize = 145895
  | Dimensions-00 = 894
  | Dimensions-01 = 910
  | Mode = RGB
  | Format = JPEG
  | Palette = -
  | Length = 1
  }}
}}

How the bot obtained this information