Board Thread:New Features/@comment-409884-20180618192238/@comment-4522253-20180618220105

https://meta.wikimedia.org/wiki/User:CharlesC/Template_for_document_links_showing_file_icons#Creating_a_document_type_template is a place to start. You can also prepend links ending with .pdf with a ::before using some fancy CSS.