Template:PhotoDate
Category:Photographs taken on 2024-12-22 = 22 December 2024
This template adds files to “taken on” categories and also shows a date of photo in the language set in the preferences.
Usage
{{PhotoDate |1= |2= |3= }}
- or
{{ PhotoDate | 1 = JJJJ | 2 = MM | 3 = DD }}
- or
{{ PhotoDate | 1 = JJJJ | 2 = MM | 3 = DD | location = Location }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | Year | number of decimal digits: 4 | empty | required |
2 | Month | number of decimal digits: 2 | empty | required |
3 | Day | number of decimal digits: 2 | empty | required |
location | Location | Categorises the file under the Category:Photographs by date by country category tree | empty | optional |
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information This template adds files to “taken on” categories and also shows a date of photo in the language set in the preferences.
|
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
Placement: At the bottom of the page
Relies on:
Example
{{PhotoDate|2024|12|22}}
renders as:
22 December 2024
See also
Localization
This template is not intended to be localized.