Template:Image license/doc

From America's Army Wiki
Jump to: navigation, search

This is the base template for all image license templates. It can also be used directly on a file page if the image under a license none of the available templates cover.

Direct usage

For use directly on a file page:

{{Image license
  |classes=any additional CSS classes that need to be added
  |text=optional text that replaces the standard text of the template aside from the template links
  |license=name of license, make it a link if possible
  |licensedesc=Optional text explaining the license. If used, the above parameter does not appear.
  |source=source of the image, optional
  |artist=the artist who created the image, optional
  |copyright=a copyright notice, typically including the years and the copyright holder if different from source or artist
  |restrictions=any restrictions or other notes on how the image may be used, optional
}}

Indirect usage

A simple case with a specific license:

<onlyinclude>{{Image license
  |template=name of the template you're including this on, required
  |classes=any additional CSS classes, rarely needed
  |license=the license for the template, linked if possible
  |source={{#if:{{{source|}}}|{{{source}}}|}}
  |artist={{#if:{{{artist|}}}|{{{artist}}}|}}
  |copyright={{#if:{{{copyright|}}}|{{{copyright}}}|}}
  |restrictions={{#if:{{{restrictions|}}}|{{{restrictions}}}|}}
}}<includeonly>[[Category:category name]]</includeonly></onlyinclude>
{{doc}}
[[Category:License templates]]

If the license needs more than a name and link:

<onlyinclude>{{Image license
  |template=name of the template you're including this on, required
  |classes=any additional CSS classes, rarely needed
  |licensedesc=text describing the license
  |source={{#if:{{{source|}}}|{{{source}}}|}}
  |artist={{#if:{{{artist|}}}|{{{artist}}}|}}
  |copyright={{#if:{{{copyright|}}}|{{{copyright}}}|}}
  |restrictions={{#if:{{{restrictions|}}}|{{{restrictions}}}|}}
}}<includeonly>[[Category:category name]]</includeonly></onlyinclude>
{{doc}}
[[Category:License templates]]

And for even more special cases:

<onlyinclude>{{Image license
  |template=name of the template you're including this on, required
  |classes=any additional CSS classes, rarely needed
  |text={{#if:{{{text|}}}|{{{text|}}}|}}
}}<includeonly>[[Category:category name]]</includeonly></onlyinclude>
{{doc}}
[[Category:License templates]]