Template:ExtGet

Documentation
Template:ExtGet automatically gets the extension of a file.


Usage
{{ExtGet|Filename}}


Code
{{#ifexist: File:{{{1}}}.png | png | {{#ifexist: File:{{{1}}}.PNG | PNG | {{#ifexist: File:{{{1}}}.jpg | jpg | {{#ifexist: File:{{{1}}}.JPG | JPG | {{#ifexist: File:{{{1}}}.gif | gif | {{#ifexist: File:{{{1}}}.GIF | GIF | {{#ifexist: File:{{{1}}}.jpeg | jpeg | {{#ifexist: File:{{{1}}}.JPEG | JPEG | {{#ifexist: File:{{{1}}}.OGG | OGG | {{#ifexist: File:{{{1}}}.ogg | ogg | No matches. }}}}}}}}}}}}}}}}}}}}