Template:Uploadlink/doc

Template page

{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}{{#if: | {{#ifeq: doc | doc | |

}} }}

[[File:Template-{{#if: | no | {{#if: | bad }} }}info.png|50px|bottom]] Documentation
{{#if: | This template has no documentation. If you know how to use this template, please add some.{{#ifeq: doc | doc | |}} |{{#if: | This template's documentation has been marked as bad. Please improve or add to it.{{#ifeq: doc | doc | |}}}} }}

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.

{{#ifeq: doc | doc |

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.

| }}