Template:PPTLink
[[Media:{{{1}}}|{{{1}}}]] File:Powerpoint icon.png [[:Image:{{{1}}}|Link]]
These Media templates assist in linking to PDF documents that have been uploaded to USApedia. Clicking on the linked text preceding the file icon takes you to the document, while clicking on the "Link" text following the icon takes you to the USApedia page for the document.
See Help:Files for a complete description of how to upload files correctly and see Help:Templates for information on templates. Help:Media templates provides information about these templates as well.
It is not necessary to include File:
at the start of the file name in these templates, but the templates will still work if it is included. The templates will not work, however, if Media:
or Image:
are used instead.
PDF file links
For PDF files, you can also link to them as an image instead using the {{PDFLink}}
template. This approach will show an image of the first page of the PDF file. The same display options are available as for other image files, plus an additional option (|page=
) is available to specify which page of the PDF to display. See below for an example and see help:images for more details.
Examples
What to Type | Example | Explanation |
---|---|---|
{{PDFLink | USApedia test.pdf | USApedia test }}
|
USApedia test Link | Link to a Adobe PDF (.pdf) file and show icon |
{{PDFLink | USApedia test.pdf }}
|
USApedia test.pdf Link | |
[[File:USApedia test.pdf | USApedia test | 300px]]
|
USApedia test | A direct link to a PDF file, rather than using {{PDFLink}} will show the first page of the PDF file as an image. See Extension:PdfHandler#Usage for more information.
|
Creates a direct link to PowerPoint files stored on Powerpedia, followed by a PowerPoint icon and a link to the Powerpedia page for the file.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Powerpedia filename.pptx | 1 | Type the name of the file you want to link to. It is not necessary to include File: at the start of the name. | File | required |
Link label | 2 | Add alternate text if you want something other than the filename to be shown (for instance, if you don't want to show the .pptx file extension). | String | suggested |