Template:Art caption/doc

Description
This template is used to add the attribution text and reference code for art in the caption of the image thumbnail or the article infobox, as well as on image description pages.

It automatically links to and adds the image to the artist's category under Category:Fan art. If no source is given, it automatically adds the cite tag.

Dependencies

 * Requires  or   to be included somewhere in the article when a reference is included.

Syntax
To create an art caption, paste this code where desired:

Parameters

 *  :  The subject of the art, i.e., the name of the person or item, a description of the event, or the artist's title.  Accepts wikilinks and other wikimarkup.
 *  :  The name by which the artist wishes to be credited, or if not known, the artist's real name, or if not known, the artist's common username.  Automatically links to the artist's category on this wiki.
 *  :  A link to the page or post where the artist shared the work, preferring the original version or version most directly linked to the artist.
 *  :  Any additional information, which will be omitted from the caption but included in the reference.  However, if the reference is omitted due to    being defined, then    will be displayed in the caption.
 *  :  The URL evidence of the artist granting permission for the piece to be used on this wiki.
 * If an artist has granted blanket permission, then do not include  .  This template will automatically collect the permission from the artist's category page, where the URL will be surrounded in "onlyinclude" tags:   &lt;onlyinclude&gt;http://www.artistpermission.url&lt;/onlyinclude&gt; 
 * The   parameter will override the category-based blanket permission.
 *  :  Indicates whether to omit the "Fan art of " phrase.  Entering any value (such as "1" or "true", or even "0" or "false") will omit the fan art phrase, otherwise it is applied.  This is useful in the case of photographs or official artwork, and any desired introductory text may then be added to   .
 *  :  Indicates whether to omit a reference.  Entering any value (such as "1" or "true", or even "0" or "false") will omit the ref tag, otherwise it is applied.  Usually, the ref tag will be included on articles and omitted on image description pages.

Using Unnamed Parameters
For convenience, this template will substitute unnamed parameters for  ,   , or   , in that order. For example:
 * If  ,   , and    are all three omitted, but unnamed parameters   ,   , and    are used, then subject=1, artist=2, and source=3.
 * If   and    are defined but    is not, then source=1.

Examples
Standard usage as a caption on an article:
 * ...produces...

References:

If no source is given, this template automatically includes the cite template:
 * ...produces...

This template can be used as the description on an image's description page, like this:
 * ...produces...

This template can be used for images that are not fan art, such as photographs:
 * ...produces...

References:

If permission is not detected on the artist's category page, and if does not provide a URL, then a note will display that permission is needed:
 * ...produces...