Actions

Template

Fileext

From Retro CDN

Revision as of 13:29, 26 April 2021 by Hivebrain (talk | contribs) (Created page with "<includeonly>{{#if:{{#pos:{{{1|}}}|.}}|{{#explode:{{{1|}}}|.|-1}}}}</includeonly><noinclude> This template returns the file extension of a file link or url. ==Examples== {|cl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Examples

Code Result
{{fileext|Filename.txt}}
txt
{{fileext|https://segaretro.org/skins/foreground/assets/img/segaretro_logo.png}}
png
{{fileext|Not a file name}}
{{fileext|String ending with a stop.}}