Difference between revisions of "Fileext"

From Sega Retro

(Created page with "<includeonly>{{#ifeq:{{#sub:{{{1}}}|{{#len:{{{1}}}}}-4|1}}|.|{{#sub:{{{1}}}|{{#len:{{{1}}}}}-3|3}}|}}</includeonly><noinclude> This template returns the file extension of a fi...")
 
Line 1: Line 1:
<includeonly>{{#ifeq:{{#sub:{{{1}}}|{{#len:{{{1}}}}}-4|1}}|.|{{#sub:{{{1}}}|{{#len:{{{1}}}}}-3|3}}|}}</includeonly><noinclude>
+
<includeonly>{{#ifeq:{{#sub:{{{1}}}|{{#expr:{{#len:{{{1}}}}}-4}}|1}}|.|{{#sub:{{{1}}}|{{#expr:{{#len:{{{1}}}}}-3}}|3}}|}}</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:03, 8 March 2014

This template returns the file extension of a file link or url.