Last modified: 2011-07-10 12:29:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26229, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24229 - Define new "magic word" {{FILENAMEWITHOUTEXTENSION}}
Define new "magic word" {{FILENAMEWITHOUTEXTENSION}}
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.mediawiki.org/wiki/Help:Ma...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-02 10:15 UTC by User:Docu
Modified: 2011-07-10 12:29 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description User:Docu 2010-07-02 10:15:30 UTC
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.
Comment 1 User:Docu 2010-07-12 15:06:37 UTC
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
Comment 2 User:Docu 2011-07-10 12:29:08 UTC
How complex would this be to do?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links