Template:According to Exif data/doc
This template is used in the |date=
parameter of the {{Information}} template to render the words “according to Exif data” in the language specified in the user's preferences.
The template automatically sets the following categories: corresponding subcategory of
- Category:Photographs by date for image files (the template supresses the time and categorizes by date only). It doesn't distinguish photographs from paintings, drawings, graphics and other image files.
- Category:Videos by year and Category:Days by day for video files
- Category:Audio files by year and Category:Days by day for audio files
- Category:Texts by year and Category:Days by day for text files
The file type is detected with {{File type}}. The categorization can be supressed with parameter cat=no (appropriate when the file is manually moved to any subcategory of the default target category, e.g. a country-specific subcategory).
Usage
Or use the shorthand
This template should be used when no |date=
value has been set but there is a date in the Exif data. If a |date=
value has been set then {{Taken on}} or {{Taken in}} are usually more appropriate.
The template takes no parameters.
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
Relies on:
{{ISOdate}}
Examples
{{According to Exif data|2024-08-11}}
renders as:
11 August 2024 (according to Exif data)
{{According to Exif data|1970-01-01|origdate={{Other date|beginning|1970}}}}
renders as:
See also
{{Taken on}}, {{Taken in}}, {{Original upload date}}, {{Upload date}}, {{Other date}}, {{Invalid Exif date}}
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation
" (xx
being the code of your language)
This template is used in the "date" parameter of the {{Information}} template to render the words "according to Exif data" in the language specified in the user's preferences
Parameter | Description | Type | Status | |
---|---|---|---|---|
Date | 1 | Date in Exif data in ISO 8601 (YYYY-MM-DD) format
| Date | optional |
Original date entered by the uploader | origdate | The original date entered by the uploader, in ISO 8601 format | Unknown | optional |
Disable categorisation | cat | Disables categorisation if no
| Unknown | optional |
location | location | Categorises the file under the Category:Photographs by date by country category tree | String | optional |