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: Difference between revisions

Template page
Add option for 'CC-BY-SA-4.0 & GFDL' per request on talk page
Fix the odd trailing " / " that previously appeared in lots of credit lines, such as in the Stockphoto gadget and in Mediaviewer, due to this template often being used with Author+License, without Other. For example, File:Kormoran am Nordseestrand bei Nebel, Amrum.jpg via User:Frank_Schulenburg/Attribution4
Line 37: Line 37:
-->{{Information field
-->{{Information field
|name=
|name=
|value={{#if:{{{Author|}}}|{{{Author|}}}&nbsp;/&nbsp;}}<!--  
|value={{#if:{{{Author|}}}|{{{Author|}}}}}<!--  
===========================
===========================
=== Other  ===============
=== Other  ===============
Line 43: Line 43:
-->{{#if:{{{Other|}}} |
-->{{#if:{{{Other|}}} |
   {{#switch: {{lc:{{{Other|}}}}}
   {{#switch: {{lc:{{{Other|}}}}}
     |wc|commons|wikimedia commons=[[Main Page|Wikimedia Commons]]
     |wc|commons|wikimedia commons=&nbsp;/&nbsp;[[Main Page|Wikimedia Commons]]
     |wc/title|commons/title|wikimedia commons/title=[[Main Page|Wikimedia Commons]]&nbsp;/&nbsp;<span class="plainlinks noprint">[{{fullurl:{{FULLPAGENAME}}}} "{{#invoke:FileName|removeExtension}}"]</span>
     |wc/title|commons/title|wikimedia commons/title=&nbsp;/&nbsp;[[Main Page|Wikimedia Commons]]<span class="plainlinks noprint">&nbsp;/&nbsp;[{{fullurl:{{FULLPAGENAME}}}} "{{#invoke:FileName|removeExtension}}"]</span>
     |title=<span class="plainlinks noprint">[{{fullurl:{{FULLPAGENAME}}}} "{{#invoke:FileName|removeExtension}}"]</span>
     |title=<span class="plainlinks noprint">&nbsp;/&nbsp;[{{fullurl:{{FULLPAGENAME}}}} "{{#invoke:FileName|removeExtension}}"]</span>
     |#default={{{Other|}}}
     |#default=&nbsp;/&nbsp;{{{Other|}}}
   }}}}
   }}}}
|class=fileinfotpl_credit
|class=fileinfotpl_credit

Revision as of 19:57, 7 February 2019

Attribution
(required by the license)
InfoField
AUTHOR / OTHER /  LICENSE
Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Credit line/doc.

This template adds a Credit line field to the {{Information}} or {{Artwork}} templates used with most images, which stores the credit line or attribution text that the 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= }}

Template parameters

ParameterDescriptionDefaultStatus
AuthorThe author's name portion of the Credit line, which can be a pseudonym or Commons username.emptyoptional
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


Several shortcuts are defined:

  • Other=WC will provide a link to Wikimedia Commons
  • Other=TITLE will provide the filename as a work title
  • Other=WC/TITLE will provide a link to Wikimedia Commons and the filename as a work title
emptyoptional
LicenseThe license portion of the Credit line, which is required for CC and GFDL licenses but optional for rare {{Attribution}} licenses. Use the word 'skip' to omit license section. The license should have the name of the license and link to the license. Several shortcuts were defined to more popular licenses (see table below).emptyrequired

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:

This has to be placed as a value of the other_fields field of {{Information}} template.

Relies on:

Other templates that can be used with {{Information field}} include:

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-4.0 CC BY-SA 4.0
CC-BY-SA-3.0 CC BY-SA 3.0
CC-BY-SA-3.0 (DE) CC BY-SA 3.0 (DE)
CC-BY-SA-2.0 CC BY-SA 2.0
CC-BY-4.0 CC BY 4.0
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 / CC BY-SA 3.0 & GFDL
© John Doe / Wikimedia Commons

Example with different values for all parameters

{{Information
|Description=description
|Source={{own}}
|Author=[[User:Example]]
|Date=2008-06-09
|other_fields={{Credit line 
 |Author = [https://commons.wikimedia.org/wiki/User:Example User:Example] 
 |License = [https://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 license)
InfoField
User:Example / CC BY-SA 2.0
User:Example


Cookies help us deliver our services. By using our services, you agree to our use of cookies.