• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Get file type

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]

Usage

edit

Use this template to get a file type. It will produce either "picture", "video", or "audio". If the format isn't listed in the template or is blank, then the type will be blank.

This template uses {{Get file format}} to get the file format.

Examples

edit
  • {{Get file type|myFile.png}} → picture
  • {{Get file type|File:video.mov}} → video
  • {{Get file type|weird.FAKEFILEFORMAT}} →
  • {{Get file type|noFileFormat}} →
  • {{Get file type|file.svg.png}} → picture
  • {{Get file type|File:1:2.mp3}} → audio
This template has not been added to any categories. Please help out by adding categories to it so that it can be listed with similar templates.
The above documentation is transcluded from Template:Get file type/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Get_file_type&oldid=1336578098"