Template:Cc: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(Imported from OTF2W)
 
m (Well I hope this works)
 
Line 1: Line 1:
{{#if:{{{1|{{{type|}}}}}}|{{Ambox
#REDIRECT [[Template:CC]]
| type    = images
| image    = {{#switch:{{uc:{{{1|{{{type|}}}}}}}}
| SELF
| BY-3.0
| BY-2.5
| BY-2.0 = Cc-by.png
| BY-SA-3.0
| BY-SA-2.5
| BY-SA-2.0 = CC ShareAlike.png
| BY-NC-SA-3.0
| BY-NC-SA-2.5
| BY-NC-SA-2.0 = Cc-by-nc-sa.png
| #default = Cc logo circle.png
}}
| imagewidth  = {{#if:{{{1|{{{type|}}}}}}|88|32}}px
| {{#if:{{{1|{{{type|}}}}}}|image2width|null}} = 32px
| {{#if:{{{1|{{{type|}}}}}}|image2|null}} = Cc logo circle.png
 
| contents = {{#ifeq:{{uc:{{{2|}}}}} | SELF
| I, the author of this work, hereby publish it under the
| This file is licensed under the
}}&#32;'''''{{nowrap|1=[http://creativecommons.org/licenses{{#switch:{{uc:{{{1|{{{type|}}}}}}}}<!--
// Attribution licenses
    -->
| BY-3.0 = /by/3.0/deed.en Creative Commons Attribution 3.0 License
| BY-2.5 = /by/2.5/deed.en Creative Commons Attribution 2.5 License
| BY-2.0 = /by/2.0/deed.en Creative Commons Attribution 2.0 License<!--
// Attribution ShareAlike licenses
    -->
| BY-SA-3.0 = /by-sa/3.0/ Creative Commons Attribution ShareAlike 3.0 License
| BY-SA-2.5 = /by-sa/2.5/ Creative Commons Attribution ShareAlike 2.5 License
| BY-SA-2.0 = /by-sa/2.0/ Creative Commons Attribution ShareAlike 2.0 License<!--
// Attribution Noncommercial ShareAlike licenses
    -->
| BY-NC-SA-3.0 = /by-nc-sa/3.0/ Creative Commons Attribution Noncommercial ShareAlike 3.0 License
| BY-NC-SA-2.5 = /by-nc-sa/2.5/ Creative Commons Attribution ShareAlike 2.5 License
| BY-NC-SA-2.0 = /by-nc-sa/2.0/ Creative Commons Attribution ShareAlike 2.0 License
 
}}]'''''.
}}
}}
| <includeonly><span class="error mid">ERROR {{tl|CC}}: license type must be specified with either {{code|type}} or first unnamed parameter.[[Category:ERROR]]</span></includeonly>
}}[[Category:Creative Commons files|<includeonly>{{PAGENAME}}</includeonly> ]]<noinclude>
{{doc begin}}
Master template for Creative Commons licenses. Supports 2.0, 2.5 and 3.0 versions of BY, BY-SA, and BY-NC-SA. Tagging images with {{tl|CC}} will place the file in [[:Category:Creative Commons files]].
 
== Usage ==
* {{tlx|CC|BY-NC-SA-3.0}} generates
{{CC|BY-NC-SA-3.0}}
* {{tlx|CC|2=type=BY-2.5}} generates
{{CC|type=BY-2.5}}
* {{tlx|CC|BY-SA-3.0|3=self}} generates a self license. This can be done with any of the licenses.
{{CC|BY-SA-3.0|self}}
 
[[Category:License templates|CC]]
</noinclude>

Latest revision as of 23:16, 11 June 2011

Redirect to: