Template:Compressed version
This image is a JPEG version of the original PNG image at File:Example.png.
Generally, this JPEG version should be used when displaying the file from Commons, in order to reduce the file size of thumbnail images.
However, any edits to the image should be based on the original PNG version in order to prevent generation loss, and both versions should be updated. Do not make edits based on this version. |
[edit]
Documentation
Template for labelling compressed versions of files, when a compressed version exists for the purpose of providing thumbnails. Place in the other_versions=
field in the {{Information}} template.</code> Label the archival version with {{Archival version}}.
Usage
{{Compressed version|file=|filetype=|thumb=|thumblimit=}}
Parameters
Parameter name | Description | Default value | required or optional?
|
---|---|---|---|
file | File name of the archival version | Image:Example.jpg | required |
filetype | Filetype of the archival version | PNG | optional |
thumb | if set to nothumb, no thumbnail of the archival version is shown in the template. Set automatically if thumblimit is set to any value. | empty | optional |
thumblimit | if set to any value, the text relating to filetypes which cannot produce thumbnails above COM:MAXTHUMB is displayed (texthumblimit in the language subpages, eg Template:Compressed version/en). Otherwise, the text relating to smaller size thumbnails (textreduce) is displayed. | empty | optional |
Additional information
The template is intended to be used in the following namespaces: the File namespace
The template is intended to be used by the following user groups: all users
See also
- {{Archival version}}, to be used in the source file
- {{No scaled down dupes}}, for improperly scaled-down files
Localization
English |
This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:Compressed version/layout.
To add your language to the list of languages supported by this template, please copy the code of Template:Compressed version/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.