This page is protected against editing.

Template:File type en

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

Returns the type of the file (guessed from the extension): one of video/audio/image/text. Intended to be used with #switch as a translation help for languages which do not have an equivalent of the word "media".

Usage

{{File type |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1file name.Current pageoptional

Additional information

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

The template is intended to be used by the following user groups: no user group specified

Relies on:
{{File extension}}

Example

{{File type|sample.ogg}}

renders as:

audio

Localization

This template is not intended to be localized.