Template:Topic cat/file name/doc

From Wikinews, the free news source you can write!
Jump to navigation Jump to search

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

Usage[edit]

Specify the file name as unnamed parameter.

Internals[edit]

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