Difference between revisions of "Template:FileLink"

From Wikispooks
Jump to navigation Jump to search
(Fix)
(class="plainlinks")
Line 2: Line 2:
 
Usage example:<br/>
 
Usage example:<br/>
 
{{t|<nowiki>{{FileLink|File:Example.pdf|Example Anchortext}}</nowiki>}}[[Category:Convenience Templates]]
 
{{t|<nowiki>{{FileLink|File:Example.pdf|Example Anchortext}}</nowiki>}}[[Category:Convenience Templates]]
</noinclude><includeonly>[{{localurl:{{{1|}}}}} {{{2}}}]</includeonly>
+
</noinclude><includeonly><span class="plainlinks">[{{SERVER}}{{SCRIPTPATH}}/{{{1|}}}}} {{{2}}}]</span></includeonly>

Revision as of 07:31, 2 January 2016

Makes a link to a page in the File: namespace.
Usage example:
{{FileLink|File:Example.pdf|Example Anchortext}}