Template:ArticlePDF/doc

Usage
If there is a pdf with the same name as the page name, then link to that, otherwise use the provided filename or file url. Note, it will ignore colons in page names, since these cannot be included in file names.