Mad Max Wiki
m (1 revision)
m (→‎top: clean up, replaced: emplates|{{PAGENAME}}]] → emplates]])
Line 1: Line 1:
<onlyinclude><includeonly><span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{1|}}}}}{{#ifeq:{{lc:{{{reupload|}}}}}|yes|&wpForReUpload=1|}}}} {{#if:{{{2|}}}|{{{2}}}|File:{{{1}}} }}]</span></includeonly></onlyinclude>
+
<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}}
 
 
[[Category:Formatting templates]]</noinclude>
==Documentation==
 
This template creates a direct link to upload a given file.
 
 
Usage:
 
<nowiki>{{uploadlink|file}}</nowiki>
 
<nowiki>{{uploadlink|file|link text}}</nowiki>
 
<nowiki>{{uploadlink|file|reupload=yes}}</nowiki>
 
<nowiki>{{uploadlink|file|link text|reupload=yes}}</nowiki>
 
 
Setting <tt>reupload</tt> to <tt>yes</tt> 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.
 
 
[[Category:Formatting templates|{{PAGENAME}}]]
 

Revision as of 14:51, 3 July 2018

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.