Template:Topic cat/file name/doc

This template trims the file extension (the part after the last ".") off a file name.

Usage
Specify the file name as unnamed parameter.

Internals
Uses evalx. If there is no ".", returns the parameter unchanged. Can be used to produce a slightly civilized alt text when none is specified.