Difference between revisions of "Template:Uploadlink"

From Outer Wilds Wiki
Jump to: navigation, search
(<default import>)
m (1 revision imported)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly><span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{1|}}}}}{{#ifeq:{{lc:{{{reupload|}}}}}|yes|&wpForReUpload=1|}}}} {{#if:{{{2|}}}|{{{2}}}|File:{{{1}}} }}]</span></includeonly><noinclude>
 
<includeonly><span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{1|}}}}}{{#ifeq:{{lc:{{{reupload|}}}}}|yes|&wpForReUpload=1|}}}} {{#if:{{{2|}}}|{{{2}}}|File:{{{1}}} }}]</span></includeonly><noinclude>
 
{{doc}}
 
{{doc}}
[[Category:Formatting templates|{{PAGENAME}}]]</noinclude>
+
[[Category:Formatting templates]]</noinclude>

Latest revision as of 07:27, 31 July 2020

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.