Extension:MsLinks

The MsLinks extension adds a button to the editor that creates links to view or download files using icons appropriate to the file type.

Configuration
You can configure the icon that is associated with each file type, by adding the icon to the images folder of the MsLinks extension and setting the  array appropriately. Below is the default configuration:

Usage
To insert a MsLink, simply edit a page and click on the new button in the toolbar. It will insert an empty MsLink, which you can then fill with the filename of the file you want to link to. You can also add some parameters to it, like in regular images. Below are some examples of usage: