Difference between revisions of "Fileext"
From Sega Retro
Scarred Sun (talk | contribs) m (Protected "Template:Fileext" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
m (Text replacement - "Category:Sega Retro templates" to "Category:Templates") |
||
Line 23: | Line 23: | ||
|} | |} | ||
− | [[Category: | + | [[Category:Templates]]</noinclude> |
Latest revision as of 13:15, 1 January 2022
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.}} |