Template:CatMediaType

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:CatMediaType/doc.

Template for specifying that a category should only contain files of a specific type.

Usage

{{CatMediaType |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1The type of media allowed in this category. Acceptable values: image (or "i"), video ("v"), audio ("a"), photograph. You may also input a file extension, without the leading period.emptyrequired

Additional information

The template is intended to be used in the following namespaces: the Category namespace

The template is intended to be used by the following user groups: all users

Placement: At the top of the page

Relies on:
Template:Mbox
Template:CatMediaTypeExt
Template:CatMediaTypeXFiles

Examples

{{CatMediaType|v}}

renders as:


{{CatMediaType|photograph}}

renders as:

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)

CatMediaTypeExt and CatMediaTypeXFiles play a large part in translating this template. If you wish to add a language to this template, please also check those templates if it doesn't work at first.