Difference between revisions of "Template:CC"
(test template) |
PanchamBro (talk | contribs) (adding File Info category check) |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | <includeonly>{{#ifeq:{{NAMESPACENUMBER}}|6|{{#incat:Files using File Info||[[Category:Files missing the File Info template]]}}}}</includeonly>{{LicenseBox |
− | |image=[[File:Creative Commons logo. | + | |image=[[File:Creative Commons logo.svg|20px|link=]]{{#switch:{{{1|}}} |
− | |#default|BY=[[File:BY. | + | |#default|BY=[[File:BY.svg|20px|link=]] |
− | |BY-SA=[[File:BY. | + | |BY-SA=[[File:BY.svg|20px|link=]][[File:SA.svg|20px|link=]] |
− | |BY-NC=[[File:BY. | + | |BY-NC=[[File:BY.svg|20px|link=]][[File:NC.svg|20px|link=]] |
− | |BY-NC-SA=[[File:BY. | + | |BY-NC-SA=[[File:BY.svg|20px|link=]][[File:NC.svg|20px|link=]][[File:SA.svg|20px|link=]] |
− | |BY-ND=[[File:BY. | + | |BY-ND=[[File:BY.svg|20px|link=]][[File:ND.svg|20px|link=]] |
− | |BY-NC-ND=[[File:BY. | + | |BY-NC-ND=[[File:BY.svg|20px|link=]][[File:NC.svg|20px|link=]][[File:ND.svg|20px|link=]]}} |
− | |header=This work is licensed under the [ | + | |header=This work is licensed under the [https://creativecommons.org/licenses/{{#switch:{{{1|}}}|#default|BY=by|BY-SA=by-sa|BY-NC=by-nc|BY-NC-SA=by-nc-sa|BY-ND=by-nd|BY-NC-ND=by-nc-nd}}/{{{2|4.0}}}/{{#ifeq:{{{3|}}}|JP|jp/}} Creative Commons {{#switch:{{{1|}}} {{{2|}}} {{#if:{{{3|}}}|{{{3|}}}}}|#default |
|BY 4.0 = Attribution 4.0 International | |BY 4.0 = Attribution 4.0 International | ||
|BY-SA 4.0 = Attribution-ShareAlike 4.0 International | |BY-SA 4.0 = Attribution-ShareAlike 4.0 International | ||
Line 46: | Line 46: | ||
|message= | |message= | ||
This license means: | This license means: | ||
− | * '''To share''' – You are free to copy, distribute and transmit the work. | + | * '''To share''' – You are free to copy, distribute and transmit the work.{{#switch:{{{1|}}}|BY-ND=|BY-NC-ND=| |
− | {{#switch:{{{1|}}}|BY-ND=|BY-NC-ND=| | ||
* '''To remix''' – You are free to adapt the work.}} | * '''To remix''' – You are free to adapt the work.}} | ||
Under the following conditions: | Under the following conditions: | ||
− | * '''Attribution''' – You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). | + | * '''Attribution''' – You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).{{#switch:{{{1|}}}|BY-SA|BY-NC-SA= |
− | {{#switch:{{{1|}}}|BY-SA|BY-NC-SA= | + | * '''Share alike''' – If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.}}{{#switch:{{{1|}}}|BY-NC|BY-NC-SA|BY-ND|BY-NC-ND= |
− | * '''Share alike''' – If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.}} | + | * '''Non-commercial''' - The work must not be used for commercial purposes.}}{{#switch:{{{1|}}}|BY-ND|BY-NC-ND= |
− | {{#switch:{{{1|}}}|BY-NC|BY-NC-SA|BY-ND|BY-NC-ND= | ||
− | * '''Non-commercial''' - The work must not be used for commercial purposes.}} | ||
− | {{#switch:{{{1|}}}|BY-ND|BY-NC-ND= | ||
* '''No-derivatives''' - The work cannot be remixed or adapted.}} | * '''No-derivatives''' - The work cannot be remixed or adapted.}} | ||
− | {{#if: {{{Source|}}} | | + | {{#if: {{{Source|}}} |File information: |
*'''Source of image:''' {{{Source|}}} | }}{{#if: {{{Author|}}} |<br /> | *'''Source of image:''' {{{Source|}}} | }}{{#if: {{{Author|}}} |<br /> | ||
− | *'''Author of image:''' {{{Author|}}} }}}} | + | *'''Author of image:''' {{{Author|}}} }}}}<includeonly>{{#if:{{{Source|}}}|[[Category:Files with sources linked in license templates]]|}}</includeonly><noinclude> |
+ | ---- | ||
+ | This template is used on file pages in which the image is licensed under a Creative Commons license. The type and version of the CC license should be mentioned. The first parameter should specify which CC license to use: | ||
+ | * BY: Attribution | ||
+ | * BY-SA: Attribution-ShareAlike | ||
+ | * BY-NC: Attribution-NonCommercial | ||
+ | * BY-NC-SA: Attribution-NonCommercial-ShareAlike | ||
+ | * BY-ND: Attribution-NoDerivatives (or Attribution-NoDerivs before 4.0) | ||
+ | * BY-NC-ND: Attribution-NonCommercial-NoDerivatives (or Attribution-NonCommercial-NoDerivs before 4.0) | ||
+ | |||
+ | The second parameter should identify the version of the CC license to use: | ||
+ | * 1.0: 1.0 Generic | ||
+ | * 2.0: 2.0 Generic | ||
+ | * 2.1: 2.1 Japan (see usage below) | ||
+ | * 2.5: 2.5 Generic | ||
+ | * 3.0: 3.0 Unported | ||
+ | * 4.0: 4.0 International | ||
+ | |||
+ | The third parameter is optional, but it should only be used to specify if the CC license is version 2.1 Japan and can only be used in conjunction with version 2.1 (e.g. <code><nowiki>{{CC|BY-SA|2.1|JP}}</nowiki></code>). | ||
+ | |||
+ | While source and author(s) of the image can be mentioned, it is recommend for it to be done on the [[Template:File Info|File Info]] template instead. This template is used by placing the following code in the file's description (replace "SOURCE" with the link that the image originates from and "AUTHOR" with the author(s) of the image): | ||
+ | |||
+ | <big><code><nowiki>{{CC|<type>|<version>|<JP (optional)>|Source=SOURCE|Author=AUTHOR}}</nowiki></code></big> | ||
+ | |||
+ | [[Category:Licensing templates|{{PAGENAME}}]] | ||
+ | </noinclude> |
Latest revision as of 06:02, June 19, 2022
- To share – You are free to copy, distribute and transmit the work.
- To remix – You are free to adapt the work.
Under the following conditions:
- Attribution – You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
- To share – You are free to copy, distribute and transmit the work.
- To remix – You are free to adapt the work.
Under the following conditions:
- Attribution – You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
This template is used on file pages in which the image is licensed under a Creative Commons license. The type and version of the CC license should be mentioned. The first parameter should specify which CC license to use:
- BY: Attribution
- BY-SA: Attribution-ShareAlike
- BY-NC: Attribution-NonCommercial
- BY-NC-SA: Attribution-NonCommercial-ShareAlike
- BY-ND: Attribution-NoDerivatives (or Attribution-NoDerivs before 4.0)
- BY-NC-ND: Attribution-NonCommercial-NoDerivatives (or Attribution-NonCommercial-NoDerivs before 4.0)
The second parameter should identify the version of the CC license to use:
- 1.0: 1.0 Generic
- 2.0: 2.0 Generic
- 2.1: 2.1 Japan (see usage below)
- 2.5: 2.5 Generic
- 3.0: 3.0 Unported
- 4.0: 4.0 International
The third parameter is optional, but it should only be used to specify if the CC license is version 2.1 Japan and can only be used in conjunction with version 2.1 (e.g. {{CC|BY-SA|2.1|JP}}
).
While source and author(s) of the image can be mentioned, it is recommend for it to be done on the File Info template instead. This template is used by placing the following code in the file's description (replace "SOURCE" with the link that the image originates from and "AUTHOR" with the author(s) of the image):
{{CC|<type>|<version>|<JP (optional)>|Source=SOURCE|Author=AUTHOR}}