Difference between revisions of "Template:FileLink"

From Wikispooks
Jump to navigation Jump to search
(Use this for better portability)
 
(Fix)
Line 1: Line 1:
 
<noinclude>'''Makes a link to a page in the {{NS|File}}.'''<br/>
 
<noinclude>'''Makes a link to a page in the {{NS|File}}.'''<br/>
Usage:<br/>
+
Usage example:<br/>
{{t|<nowiki>{{FileLink|Pagename|Anchortext}}</nowiki>}}[[Category:Convenience Templates]]
+
{{t|<nowiki>{{FileLink|File:Example.pdf|Example Anchortext}}</nowiki>}}[[Category:Convenience Templates]]
</noinclude><includeonly>[{{localurl:{{{Pagename|}}}}} {{Anchortext}}]</includeonly>
+
</noinclude><includeonly>[{{localurl:{{{1|}}}}} {{{2}}}]</includeonly>

Revision as of 07:27, 2 January 2016

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