Page MenuHomePhabricator

Define new "magic word" {{FILENAMEWITHOUTEXTENSION}}
Open, LowPublicFeature

Description

Author: test5555

Description:
Similar to other page name related "magic words", it would be useful to have one that uses just the filename without the extension, e.g.:

For "File:abc.jpg" the magic word "{{FILENAMEWITHOUTEXTENSION}}" would display "abc". Obviously, ".jpg", ".jpeg", ".JPEG", ".JPG" .. would give the same result.

People using descriptive filenames could more easily use {{subst:FILENAMEWITHOUTEXTENSION}} as description.

Maybe there is a better name for the magic word, but "without ext(ension)" should be easily understood.


Version: unspecified
Severity: enhancement
URL: http://www.mediawiki.org/wiki/Help:Magic_words#Page_names

Details

Reference
bz24229

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:10 PM
bzimport set Reference to bz24229.
bzimport added a subscriber: Unknown Object (MLST).

test5555 wrote:

Better names for the magic word brought up in a discussion of this request at Commons are:

  • FILEBASENAME (compare with [[w:filename]], but not [[w:Basename]])
  • FILEROOTNAME
  • FILETITLE (shortest)

Discussion is/was at http://commons.wikimedia.org/wiki/Commons:Village_pump#Magic_word_for_filename_w.2Fo_extension

test5555 wrote:

How complex would this be to do?

DannyS712 changed the subtype of this task from "Task" to "Feature Request".Aug 13 2019, 6:26 AM