Template:File type en
Jump to navigation
Jump to search
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
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | file name. | Current page | optional |
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.