Template:File extension/doc

Outputs the file extension of the filename indicated by parameter. In the File: namespace, this parameter defaults to. In all other namespaces, the default output is an empty string. Any uppercase letters in the file extension are changed to lowercase.