Template:Taken on/sandbox
Taken on
When the exact date of media creation is known, this template renders the words "Taken on" in the language specified in the user's preference followed by the date. The template automatically adds a "taken on" category using the exact date. If the exact date is not known, use the {{Taken in}} template. The English language distinguishes between the two terms: a photograph is "taken on" an exact day, date, or week, but is "taken in" a longer period of time, e.g., a week, month, season, year, or longer.
This template is generally used in the "date" parameter of the {{Information}} template.
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 suppressed with |cat=no
(appropriate when the file is manually moved to any subcategory of the default target category, e.g. a country-specific subcategory).
Timezones: Note that the date/time used for categorization are assumed to be UTC, and so for example a photo taken in New Zealand on 2023-01-01 at 7AM will actually be categorized as 2022-12-31.
Usage
{{Taken on |1= |cat= |location= |source= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | Date in ISO 8601 form (time can be included). {{ISOdate}} is used. | empty | optional | |
cat | Disables categorisation if no | empty | optional | |
location | Categorises the file under the Category:Photographs by date by country category tree | empty | optional | |
source | When source=EXIF, adds (according to EXIF), suitably translated | 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
Examples
{{Taken on|2022-11-17}}
renders as:
Taken on 17 November 2022
{{Taken on|2022-11-17 10:21 UTC+8}}
renders as:
Taken on 17 November 2022, 10:21 UTC+8
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)
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Date | 1 | Date in ISO 8601 form (time can be included). {{ISOdate}} is used. | Date | required |
source | source | When source=EXIF, adds (according to EXIF), suitably translated
| Line | optional |
cat | cat | Disables categorisation if no
| Line | optional |
location | location | Country. Categorises the file under the Category:Photographs by date by country category tree | Line | optional |