Template:MediaNewTab: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span class="linkNewTab">[[Media:{{{1}}}|{{{2|}}}]] <small>([[:File:{{{1}}}|info]])</small></span></includeonly><noinclude>{{Documentation}}</noinclude> | <includeonly><span class="linkNewTab">[[Media:{{{1}}}|{{{2|}}}]]</span> <span class="linkNewTab"><small>([[:File:{{{1}}}|info]])</small></span></includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 21:17, 25 July 2024
Template documentation (for the above template, sometimes hidden or invisible)
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 "Media:Free New York 2003-10.pdf.
- Code
{{MediaNewTab|Free New York 2003-10.pdf|View}}
- Result
Visit Template:MediaNewTab/doc to edit this text! (How does this work?)