Template:FileContentsByBot/Properties

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Properties
DimensionsModeFormatFilesizePaletteLengthMIME
Template documentationview · edit · history · purge ]

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

ParameterDescriptionDefaultStatus
1One {{FileContentsByBot/Properties}} block. Confer example below.emptyoptional
Dimensions-00The file's width (dimX) in px. Number only. Mainly for Image-Annotator.
Row's class: bot-Properties-Dimensions. Field/Cell's id: FileContentsByBot-DimX.
emptyrequired
Dimensions-01The file's height (dimY) in px. Number only. Mainly for Image-Annotator.
Row's class: bot-Properties-Dimensions. Field/Cell's id: FileContentsByBot-DimY.
emptyrequired
FormatThe file's image format.
Field/Cell's class: bot-Properties-Format.
emptyrequired
ModeThe file's color mode.
Field/Cell's class: bot-Properties-Mode.
emptyrequired
FilesizeThe file's size.
Field/Cell's class: bot-Properties-Filesize.
emptyrequired
PaletteThe file's color palette size (number of colors used in all channels).
Field/Cell's class: bot-Properties-Palette.
emptyrequired
LengthThe 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.
-1required

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