Template:File link: Difference between revisions
From Halopedia, the Halo wiki
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifexist:File:{{{1}}}|[[:File:{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]<span style="display:none">}}[[Media:{{{1}}}{{#ifexist:File:{{{1}}}||{{!}}{{#if:{{{2|}}}|{{{2}}}|File:{{{1}}}}}}}]]{{#ifexist:File:{{{1}}}|</span>}}</includeonly><noinclude> | <includeonly>{{#ifexist:File:{{{1}}}|[[:File:{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]<span style="display:none">}}[[Media:{{{1}}}{{#ifexist:File:{{{1}}}||{{!}}{{#if:{{{2|}}}|{{{2}}}|File:{{{1}}}}}}}]]{{#ifexist:File:{{{1}}}|</span>}}</includeonly><noinclude> | ||
Use this to link to files while also marking them as used, keeping them off of [[Special:UnusedFiles]]. | Use this template to link to files while also marking them as used, keeping them off of [[Special:UnusedFiles]]. | ||
== Usage == | == Usage == |
Latest revision as of 09:56, March 24, 2024
Use this template to link to files while also marking them as used, keeping them off of Special:UnusedFiles.
Usage
{{file link|SunriseOnSanghelios.pdf}}
{{file link|SunriseOnSanghelios.pdf|Archive link}}