Template:Commons file

Wikimedia Commons has a file available.

{{Documentation|content= Template {{bxtn|commons file}} implements and formats inline links to pages at the namespace. By default, the template displays a Wikimedia icon, pre-inserted text, and trailing punctuation, as well as static link text. Appended text may also be included. Several of the default options may be edited by the user.

Structure
In the box below. for presentation purposes only, required parameters are in bold; [brackets] indicate parameter values; variables are.



Copy a blank version to use. All parameter names must be in lowercase. Use the "|" (pipe) character between each parameter. Leading and trailing spaces (&#160;) are trimmed from parameter values; therefore, parameters will not display if they are only populated by spaces. By default, displayed values are separated by a single whitespace character. Delete unused parameters. See for important details.

Parameters
There are two ordered anonymous parameters; the target file page parameter is.
 * [1] (filename): use the first anonymous parameter for the filename of an associated file: namespace page, which becomes the target file page. Enter the file's name, including its extension, in plain text – enter the namespace prefix ("file:" or "image:"). Do not use any formatting or special editing. This parameter is ; output will not display otherwise.
 * the default link is to the of the Commons file page; for linking to the original, see parameter p below.


 * [2] (postscript): use the second anonymous parameter to append optional explanatory text that displays the link to the target file page.
 * p (project): by default, the link to the file page targets the Wikipedia copy; set c to link the original at Wikimedia Commons.

}}