Jump to content

Template:Credit line/doc

From Wikisource


(this part of the documentation is only available in some languages)

Template adds Credit line field to {{Information}} templates used with most images, which stores credit line or attribution text, that author wishes to be used by reusers, as is required for files using Creative Commons CC-BY and CC-BY-SA licenses.

Usage

[edit]

{{Credit line|Author=|Other=|License=}}

Parameters

Parameter name Description (this part of the documentation is only available in some languages) Default value required or optional?

Author Author's name portion of the Credit line. Could be pseudonym or Commons username empty optional
Other Other parts of the Credit line separated by "/". They can include:
  • Attribution Parties, like Wikimedia Commons or sponsor institute
  • URI, like web address
  • Title of the work

Other=WC will provide link to Wikimedia Commons

empty optional
License License portion of the Credit line. Required for CC-BY-SA and GFDL licenses but optional for rare Attribution or CC-BY licenses. Use word 'skip' to omit license section. License should have a name of the license and link to the license. Several shortcuts were defined to more popular licenses (see table below) empty required

Additional information

[edit]

The template is intended to be used in the following namespaces:

  • the File namespace

The template is intended to be used by the following user groups:

  • no user group specified

Relies on:
{{Information field}}

⧼See also⧽

(this part of the documentation is only available in some languages)

Localization

To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch| }}" construct. It takes the form "{{{1}}}" (xx being the code of your language)

Hardwired license Shortcuts

[edit]
License Output
CC-BY-SA-3.0 & GFDL CC-BY-SA-3.0 & GFDL
cc-by-sa-3.0 CC-BY-SA-3.0
CC-BY-SA-3.0 (DE) CC-BY-SA-3.0 (DE)
CC-BY-3.0 CC-BY-3.0

Example of code for use with {{Information}} template

[edit]
{{Information
|Description=description
|Source={{own}}
|Author=John Doe
|Date=2008-06-09
|other_fields={{Credit line |Author = © John Doe | Other = Wikimedia Commons |License = CC-BY-SA-3.0 & GFDL}}
}}

will produce:

Description description
Date
Source Own work
Author John Doe
Attribution
(required by the licence)
© John Doe / Wikimedia CommonsCC-BY-SA-3.0 & GFDL

Also use this code for use with {{Book}} template.


Example with different values for all parameters

[edit]
{{Information
|Description=description
|Source={{own}}
|Author=[[User:Example]]
|Date=2008-06-09
|other_fields={{Credit line |Author = [http://commons.wikimedia.org/wiki/User:Example User:Example] |License = [http://creativecommons.org/licenses/by-sa/2.0/ CC-BY-SA-2.0]}}
}}

will produce:

Description description
Date
Source Own work
Author User:Example
Attribution
(required by the licence)
User:Example / CC-BY-SA-2.0