Difference between revisions of "Template:FileLink"

From Wikispooks
Jump to navigation Jump to search
(Fix)
(Use canonicalurl)
 
(2 intermediate revisions by the same user not shown)
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">[{{canonicalurl:{{{1|}}}}} {{{2}}}]</span></includeonly>

Latest revision as of 07:42, 2 January 2016

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