Difference between revisions of "Template:License CC"

384 bytes added ,  11:17, 5 October 2020
Update to use rights/conditions parameters to build license name/URL.
(Created page with "{| class="box gray license" cellpadding="0" cellspacing="10" |- | width="64" valign="top" | 64px|link= | valign="top" | '''This file is licensed un...")
 
(Update to use rights/conditions parameters to build license name/URL.)
Line 2: Line 2:
 
|-
 
|-
 
| width="64" valign="top" | [[File:Cc.logo.circle.svg|64px|link=]]
 
| width="64" valign="top" | [[File:Cc.logo.circle.svg|64px|link=]]
| valign="top" | '''This file is licensed under the [{{{link}}} Creative Commons {{{name}}}] license.'''
+
| valign="top" | '''This file is licensed under the [https://creativecommons.org/licenses/by{{#if: {{{nc|}}} | -nc }}{{#if: {{{nd|}}} | -nd }}{{#if: {{{sa|}}} | -sa }}/{{{version}}}/ Creative Commons BY{{#if: {{{nc|}}} | -NC }}{{#if: {{{nd|}}} | -ND }}{{#if: {{{sa|}}} | -SA }} {{{version}}} International] license.'''
  
 
You are free:
 
You are free:
Line 9: Line 9:
  
 
Under the following conditions:
 
Under the following conditions:
* '''attribution''' — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
+
* '''attribution''' — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.{{#if: {{{sa|}}}
{{#if: {{{sa|}}} | * '''share alike''' — If you remix, transform, or build upon the material, you must distribute your contributions under the [https://creativecommons.org/share-your-work/licensing-considerations/compatible-licenses same or compatible license] as the original. }}
+
  | * '''share alike''' — If you remix, transform, or build upon the material, you must distribute your contributions under the [https://creativecommons.org/share-your-work/licensing-considerations/compatible-licenses same or compatible license] as the original.
{{#if: {{{nc|}}} | * '''non-commercial''' — You may not use the material for commercial purposes. }}
+
}}{{#if: {{{nc|}}}  
{{#if: {{{nd|}}} | * '''no derivatives''' — If you remix, transform, or build upon the material, you may not distribute the modified material. }}
+
  | * '''non-commercial''' — You may not use the material for commercial purposes.
 +
}}{{#if: {{{nd|}}}  
 +
  | * '''no derivatives''' — If you remix, transform, or build upon the material, you may not distribute the modified material.
 +
}}
 +
* '''no additional restrictions''' — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
 
| width="64" valign="top" |
 
| width="64" valign="top" |
 
|-
 
|-