User:Nyttend/template test

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

Taken on

Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Taken_on/doc.

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

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

{{Taken on |1= |cat= |location= }}

Template parameters

ParameterDescriptionDefaultStatus
1Date in ISO 8601 form (time can be included). {{ISOdate}} is used.emptyoptional
catDisables categorisation if noemptyoptional
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

Example

{{Taken on|2018-07-22}}

renders as:

Taken on 

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)