Template:MediaNewTab/doc: Difference between revisions
Jump to navigation
Jump to search
m (→Example: - Final fix) |
|||
Line 14: | Line 14: | ||
===Example=== | ===Example=== | ||
For the October 2003 edition of Free New York, where the media file is "[[File:Free New York 2003-10.pdf]]. | For the October 2003 edition of Free New York, where the media file is "[[:File:Free New York 2003-10.pdf]]. | ||
;Code | ;Code |
Latest revision as of 00:42, 5 February 2025
Usage
This templates allows links to media files such as PDFs to open in new tabs.
Code
The code is as follows.
{{MediaNewTab|MEDIA-FILE-NAME|DISPLAY-TEXT}}
- MEDIA-FILE-NAME
The name of the media file without the "Media:"
- DISPLAY-TEXT
The text you want to display.
Example
For the October 2003 edition of Free New York, where the media file is "File:Free New York 2003-10.pdf.
- Code
{{MediaNewTab|Free New York 2003-10.pdf|View}}
- Result