Difference between revisions of "Fileext"
From Sega Retro
Line 1: | Line 1: | ||
− | <includeonly>{{#ifeq:{{#sub:{{{1}}}|{{#expr:{{#len:{{{1}}}}}-4}}|1}}|.|{{#sub:{{{1}}}|{{#expr:{{#len:{{{1}}}}}-3}}|3}}|}}</includeonly><noinclude> | + | <includeonly>{{#ifeq:{{#sub:{{{1}}}|{{#expr:{{#len:{{{1}}}}}-4}}|1}}|.|{{#sub:{{{1}}}|{{#expr:{{#len:{{{1}}}}}-3}}|3}}|}}{{ |
+ | #ifeq:{{#sub:{{{1}}}|{{#expr:{{#len:{{{1}}}}}-3}}|1}}|.|{{#sub:{{{1}}}|{{#expr:{{#len:{{{1}}}}}-2}}|2}}|}}{{ | ||
+ | #ifeq:{{#sub:{{{1}}}|{{#expr:{{#len:{{{1}}}}}-5}}|1}}|.|{{#sub:{{{1}}}|{{#expr:{{#len:{{{1}}}}}-4}}|4}}|}} | ||
+ | </includeonly><noinclude> | ||
This template returns the file extension of a file link or url. | This template returns the file extension of a file link or url. | ||
[[Category:Sega Retro templates|{{PAGENAME}}]]</noinclude> | [[Category:Sega Retro templates|{{PAGENAME}}]]</noinclude> |
Revision as of 18:06, 8 March 2014
This template returns the file extension of a file link or url.