This page is semi-protected against editing.

Template:According to Exif data

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

according to Exif data

Template documentationview · edit · history · purge ]

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

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

{{According to Exif data |1= |origdate= |cat= |location= }}

Or use the shorthand
{{AccordingToExif|… parameters as described …}}

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.

Template parameters

ParameterDescriptionDefaultStatus
1Date in Exif data in ISO 8601 (YYYY-MM-DD) format, e.g. 2009-02-17 for 17 February 2009.emptyoptional
origdateThe original date entered by the uploader, in ISO 8601 format, e.g. {{According to Exif data|2010-06-30|origdate=2010-06}} renders as "June 2010 (30 June 2010, according to Exif data)" and {{According to Exif data|2010-06-30|origdate={{other date|summer|2010}}}} renders as "Summer 2010
date QS:P,+2010-00-00T00:00:00Z/9,P4241,Q40720564
(30 June 2010, according to Exif data)".
emptyoptional
dipDisplay also the date in parentheses, e.g. {{According to Exif data|2024-11-21|dip=1}} renders as "(21 November 2024, according to Exif data)". This parameter is deprecated. Use origdate instead.emptydeprecated
cat
English: Disables categorisation if no
Deutsch: Deaktiviert die Kategorisierung, wenn no
emptyoptional
locationCategorises the file under the Category:Photographs by date by country category treeemptyoptional

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-11-21}}

renders as:

21 November 2024 (according to Exif data)


{{According to Exif data|1970-01-01|origdate={{Other date|beginning|1970}}}}

renders as:

early 1970
date QS:P,+1970-00-00T00:00:00Z/9,P4241,Q40719727
(1 January 1970, according to Exif data)

See also

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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Date1

Date in Exif data in ISO 8601 (YYYY-MM-DD) format

Example
2009-02-17 for 17 February 2009
Dateoptional
Original date entered by the uploaderorigdate

The original date entered by the uploader, in ISO 8601 format

Unknownoptional
Disable categorisationcat

Disables categorisation if no

Suggested values
no
Unknownoptional
locationlocation

Categorises the file under the Category:Photographs by date by country category tree

Stringoptional