Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Credit line/doc: Difference between revisions

Template page
No edit summary
examples
Line 25: Line 25:
|3=License
|3=License
|3d={{LangSwitch
|3d={{LangSwitch
|en=License portion of the ''Credit line''. Required for CC-BY-SA and GFDL licenses but optional for rare {{tl|Attribution}} or CC-BY licenses. Use word 'skip' to omit license section.
|en=License portion of the ''Credit line''. Required for CC-BY-SA and GFDL licenses but optional for rare {{tl|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)
 
|fr=La section du texte d’attribution concernant la licence. Requis pour les licences CC-BY-SA et GFDL, optionnel mais rare pour les licence CC-BY. Utiliser le mot « skip » pour omettre cette section.
|fr=La section du texte d’attribution concernant la licence. Requis pour les licences CC-BY-SA et GFDL, optionnel mais rare pour les licence CC-BY. Utiliser le mot « skip » pour omettre cette section.
}}
}}
|3def=
|3def=
|3stat=required
|3stat=required
Line 58: Line 60:
|relieson={{tl|Information field}}
|relieson={{tl|Information field}}
}}
}}
==Example 1 ==
 
== Hardwired license Shortcuts ==
{|border="1" style="right"
|-
! License
! Output
|-
|CC-BY-SA-3.0 & GFDL
|[http://creativecommons.org/licenses/by-sa/3.0/ CC-BY-SA-3.0] & [[w:GFDL|GFDL]]
|-
|CC-BY-SA-3.0|cc-by-sa-3.0
|[http://creativecommons.org/licenses/by-sa/3.0/ CC-BY-SA-3.0]
|-
|CC-BY-SA-3.0 (DE)
|[http://creativecommons.org/licenses/by-sa/3.0/de/deed.en CC-BY-SA-3.0 (DE)]
|-
|CC-BY-3.0
|[http://creativecommons.org/licenses/by/3.0/ CC-BY-3.0]
|-
|}
 
==Example of code for use with {{tl|Information}} template ==
  <nowiki>{{Information
  <nowiki>{{Information
|Description=description
|Description=description
Line 76: Line 99:
|other_fields={{Credit line |Author = © John Doe | Other = Wikimedia Commons |License = CC-BY-SA-3.0 & GFDL}}
|other_fields={{Credit line |Author = © John Doe | Other = Wikimedia Commons |License = CC-BY-SA-3.0 & GFDL}}
}}
}}
==Example 2 ==
 
==Example of code for use with {{tl|Artwork}} template ==
Also use this code for use with {{tl|Book}} template.
  <nowiki>{{Artwork
  <nowiki>{{Artwork
|Description=description
|Description=description
Line 93: Line 118:
|Date=1900
|Date=1900
|other_fields={{Credit line |Author = © John Doe | Other = Wikimedia Commons |License = CC-BY-SA-3.0 & GFDL |Style=html}}
|other_fields={{Credit line |Author = © John Doe | Other = Wikimedia Commons |License = CC-BY-SA-3.0 & GFDL |Style=html}}
}}
==Example with different values for all parameters ==
<nowiki>{{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]|Style=wiki}}
}}</nowiki>
will produce:
{{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]|Style=wiki}}
}}
}}

Revision as of 13:48, 24 June 2011

Template adds Credit line field to {{Information}} or {{Artwork}} 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

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

Template parameters

ParameterDescriptionDefaultStatus
AuthorAuthor's name portion of the Credit line. Could be pseudonym or Commons usernameemptyoptional
OtherOther 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
emptyoptional
LicenseLicense 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)emptyrequired
StyleTable style used by the parent template. If using with {{Information}} use "Style=wiki". With {{Artwork}} use "Style=html".wikioptional

Additional information

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: all users

Placement:

Has to be placed as a value of other_fields field of {{Information}} template

Relies on:
{{Information field}}

See also

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 "|xx= Your translation " (xx being the code of your language)

Hardwired license Shortcuts

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

{{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 license)
InfoField
© John Doe / Wikimedia Commons / 
© John Doe / Wikimedia Commons

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

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

{{Artwork
|Description=description
|Source=John Doe {{own}}
|Author=unknown
|Date=1900
|other_fields={{Credit line |Author = © John Doe | Other = Wikimedia Commons |License = CC-BY-SA-3.0 & GFDL |Style=html}}
}}

will produce:

Template:Artwork


Example with different values for all parameters

{{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]|Style=wiki}}
}}

will produce:

Description description
Date
Source Own work
Author User:Example
Attribution
(required by the license)
InfoField
User:Example / 
User:Example
Cookies help us deliver our services. By using our services, you agree to our use of cookies.