Fileext
From NEC Retro
Revision as of 17:39, 17 September 2015 by Scarred Sun (talk | contribs) (Created page with "<includeonly>{{#ifeq:{{#rpos:{{{1|}}}|.}}|-1||{{#sub:{{{1|}}}|{{#expr:{{#rpos:{{{1|}}}|.}}-{{#len:{{{1|}}}}}+1}}}}}}</includeonly><noinclude> This template returns the file ex...")
Revision as of 17:39, 17 September 2015 by Scarred Sun (talk | contribs) (Created page with "<includeonly>{{#ifeq:{{#rpos:{{{1|}}}|.}}|-1||{{#sub:{{{1|}}}|{{#expr:{{#rpos:{{{1|}}}|.}}-{{#len:{{{1|}}}}}+1}}}}}}</includeonly><noinclude> This template returns the file ex...")
This template returns the file extension of a file link or url.
Example
{{fileext|Filename.txt}}
gives the result:
txt