Template:Attribution

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
© The copyright holder of this file allows anyone to use it for any purpose, provided that the copyright holder is properly attributed. Redistribution, derivative work, commercial use, and all other use is permitted.

Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Attribution/doc.

This license template is for media files which only require attribution.

The template automatically sets the following categories: Category:Attribution

Usage

{{Attribution |1= |2= |nolink= |text= }}

This template takes the copyright holder's username and/or real name as optional parameters. Use nolink=Name to insert a name without linking.

Template parameters

ParameterDescriptionDefaultStatus
1Username (including "User:")emptyoptional
2Full nameemptyoptional
nolinkName not linkedemptyoptional
textCustom attribution textemptyoptional
Template data
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

This license template is for media files which only require attribution.

Template parameters

ParameterDescriptionTypeStatus
1

Username (including "User:")

Unknownoptional
2

Full name

Unknownoptional
nolink

Name not linked

Unknownoptional
text

Custom attribution text

Unknownoptional

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: In the "Permission" parameter of the {{Information}} template (or the respective parameter of similar templates) or in the "Licensing" section

Relies on:
{{Copyrighted-Layout}}

Localization

This template is localized by utilizing MediaWiki namespace messages. These can be translated at translatewiki.net (current translations).

Examples

  • {{attribution|User:Example}}
© The copyright holder of this file, User:Example, allows anyone to use it for any purpose, provided that the copyright holder is properly attributed. Redistribution, derivative work, commercial use, and all other use is permitted.
Attribution: User:Example

  • {{attribution|User talk:Example|User:Example}} to avoid a redlink for users without a user page
© The copyright holder of this file, User:Example, allows anyone to use it for any purpose, provided that the copyright holder is properly attributed. Redistribution, derivative work, commercial use, and all other use is permitted.
Attribution: User:Example

  • {{attribution|User:Example|Full name}}
© The copyright holder of this file, Full name, allows anyone to use it for any purpose, provided that the copyright holder is properly attributed. Redistribution, derivative work, commercial use, and all other use is permitted.
Attribution: Full name

  • {{attribution|nolink=Full name|text=Required attribution text: by Someuser, available from somewhere.}}
© The copyright holder of this file, Full name, allows anyone to use it for any purpose, provided that the copyright holder is properly attributed. Redistribution, derivative work, commercial use, and all other use is permitted.
Attribution: Required attribution text: by Someuser, available from somewhere.