Topic on Project:Support desk

Feature Request: Basename without filename extension

5
Jidanni (talkcontribs)
Malyacko (talkcontribs)
Dcljr (talkcontribs)

Users should generally discuss feature requests before posting them at the Phabricator.

Bawolff (talkcontribs)

That's probably too niche for us to make it a MW core magic word.

You could create an extension, or you could use Extension:Scribunto (or parser functions with string functions enabled) to make something equivalent.

Jonathan3 (talkcontribs)

Try this: [[File:{{#explode:{{PAGENAME}}|.|-2}} 2.{{#explode:{{PAGENAME}}|.|-1}}]]

Reply to "Feature Request: Basename without filename extension"