Jump to content
Search

The new Ubuntu Wiki is live. Legacy content may be unavailable and page links may have changed. Read the announcement on Discourse.

Template:CCLicense/doc

From Ubuntu Wiki

Template:CCLicense is a meta-template for generating Creative Commons license tags. Logic is delegated to Module:CCLicense.

TemplateData

Meta-template for constructing Creative Commons license cards via Module:CCLicense.

Template parameters

ParameterDescriptionTypeStatus
CC0 / Public Domainzero cc0

Generates CC0 Universal Public Domain rights and metadata.

Default
false
Booleanoptional
Attribution (BY)by

Adds Attribution requirement text (sets metadata attrreq="true"). Defaults to true for standard licenses.

Default
true
Booleanoptional
NonCommercial (NC)nc

Adds NonCommercial restriction text (sets metadata nonfree="true").

Default
false
Booleanoptional
ShareAlike (SA)sa

Adds ShareAlike condition text.

Default
false
Booleanoptional
NoDerivatives (ND)nd

Adds NoDerivatives restriction text (removes 'to remix' permission, sets metadata nonfree="true", and overrides ShareAlike).

Default
false
Booleanoptional
Versionversion

License version string (e.g., 4.0, 3.0, 2.5).

Default
4.0
Stringrequired
Jurisdiction / Portjurisdiction port

Ported country code (e.g., de, us, uk).

Stringoptional
Attribution Entityattr attribution author

Custom attribution string passed directly to {{License card}} as attr.

Stringoptional

Examples

CC BY-SA 4.0 with Custom Attribution

{{CCLicense
| version = 4.0
| by = yes
| sa = yes
| attr = Canonical Ltd.
}}

This file is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license.

You are free:

  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit to Canonical Ltd., provide a link to the license, and indicate if changes were made.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

CC BY-SA 4.0 Creative Commons Attribution-ShareAlike 4.0 International https://creativecommons.org/licenses/by-sa/4.0/ true Canonical Ltd. true false


CC BY-NC 3.0 Germany (Ported License)

{{CCLicense
| version = 3.0
| by = yes
| nc = yes
| jurisdiction = de
| attr = Jane Doe
}}

This file is licensed under the Creative Commons Attribution-NonCommercial 3.0 De license.

You are free:

  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit to Jane Doe, provide a link to the license, and indicate if changes were made.
  • noncommercial – You may not use the material for commercial purposes.

CC BY-NC 3.0 DE Creative Commons Attribution-NonCommercial 3.0 De https://creativecommons.org/licenses/by-nc/3.0/de/ true Jane Doe true true


CC0 1.0 Universal (Public Domain Dedication)

{{CCLicense
| version = 1.0
| zero = yes
}}

This work has been dedicated to the public domain under the CC0 1.0 Universal Public Domain Dedication.

You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

CC0 1.0 CC0 1.0 Universal https://creativecommons.org/publicdomain/zero/1.0/ false

false false