Difference between revisions of "Template:Uploadlink/doc"

From Outer Wilds Wiki
Jump to: navigation, search
(<default import>)
 
m (1 revision imported)
 
(4 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
This template creates a direct link to upload a given file.
 
This template creates a direct link to upload a given file.
   
Usage:
+
==Usage==
 
<nowiki>{{uploadlink|file}}</nowiki>
 
<nowiki>{{uploadlink|file}}</nowiki>
 
<nowiki>{{uploadlink|file|link text}}</nowiki>
 
<nowiki>{{uploadlink|file|link text}}</nowiki>
Line 8: Line 8:
 
<nowiki>{{uploadlink|file|link text|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.
+
Setting <code>reupload</code> to <code>yes</code> 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.
 
{{doc/end}}
 
{{doc/end}}

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.