Difference between revisions of "Template:FileLink"

From Wikispooks
Jump to navigation Jump to search
(fix)
(Use canonicalurl)
 
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><span class="plainlinks">[{{SERVER}}{{SCRIPTPATH}}/{{{1|}}} {{{2}}}]</span></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}}