Template:MediaNewTab/doc: Difference between revisions

From LPedia
Jump to navigation Jump to search
(Created page with "==Usage== This templates allows links to media files such as PDFs to open in new tabs. ===Code=== The code is as follows. <pre> {{MediaNewTab|MEDIA-FILE-NAME|DISPLAY-TEXT}} <...")
 
No edit summary
 
Line 23: Line 23:
;Result
;Result
{{MediaNewTab|Free New York 2003-10.pdf|View}}
{{MediaNewTab|Free New York 2003-10.pdf|View}}
<noinclude>[[Category:Documentation Subpages]]</noinclude>

Latest revision as of 15:41, 26 October 2017

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

View (info)