Template:Uploadlink: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
m (Text replacement - "includeonly" to "onlyinclude")
m (Text replacement - "templates" to "Templates")
 
Line 1: Line 1:
<onlyinclude><span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{1|}}}}}{{#ifeq:{{lc:{{{reupload|}}}}}|yes|&wpForReUpload=1|}}}} {{#if:{{{2|}}}|{{{2}}}|File:{{{1}}} }}]</span></onlyinclude><noinclude>
<onlyinclude><span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{1|}}}}}{{#ifeq:{{lc:{{{reupload|}}}}}|yes|&wpForReUpload=1|}}}} {{#if:{{{2|}}}|{{{2}}}|File:{{{1}}} }}]</span></onlyinclude><noinclude>
{{doc}}
{{doc}}
[[Category:Formatting templates]]</noinclude>
[[Category:Formatting Templates]]</noinclude>

Latest revision as of 21:54, 22 August 2022

File:{{{1}}}

Template-info.png Documentation

This template creates a direct link to upload a given file.

Usage

{{uploadlink|file}}
{{uploadlink|file|link text}}
{{uploadlink|file|reupload=yes}}
{{uploadlink|file|link text|reupload=yes}}

Setting reupload to yes indicates there is a file there and this link should be for uploading a new version. You should verify the file exists before using this form.