Difference between revisions of "Template:CC"

From Project: Gorgon Wiki
Jump to: navigation, search
(Initial setup. Copy-over from http://templates.wikia.com/wiki/Template:CC)
 
m (SVG can't be used on this wiki)
Line 1: Line 1:
 
{| class="boilerplate" id="c-cc-by" style="width:90%; margin:0 auto; padding:10px; border:2px solid #88A; background:#ffffcc; color:#000; text-align: center;"
 
{| class="boilerplate" id="c-cc-by" style="width:90%; margin:0 auto; padding:10px; border:2px solid #88A; background:#ffffcc; color:#000; text-align: center;"
| align="center" | {{#ifexist:File:CC some rights reserved.svg|[[File:CC some rights reserved.svg|90px|Creative Commons|alt=CC]]}}<br />{{#ifexist:File:Cc-by new.svg|[[File:Cc-by new.svg|30px|Attribution|alt=BY]]}}{{#switch:{{lc:{{{mod|}}}}}
+
| align="center" | {{#ifexist:File:CC some rights reserved.png|[[File:CC some rights reserved.png|90px|Creative Commons|alt=CC]]}}<br />{{#ifexist:File:Cc-by new.png|[[File:Cc-by new.png|30px|Attribution|alt=BY]]}}{{#switch:{{lc:{{{mod|}}}}}
|sa={{#ifexist:File:Cc-sa.svg|[[File:Cc-sa.svg|30px|ShareAlike|alt=SA]]}}
+
|sa={{#ifexist:File:Cc-sa.png|[[File:Cc-sa.png|30px|ShareAlike|alt=SA]]}}
|nd={{#ifexist:File:Cc-nd.svg|[[File:Cc-nd.svg|30px|NoDerivatives|alt=ND]]}}
+
|nd={{#ifexist:File:Cc-nd.png|[[File:Cc-nd.png|30px|NoDerivatives|alt=ND]]}}
|nc={{#ifexist:File:Cc-nc.svg|[[File:Cc-nc.svg|30px|NonCommercial|alt=NC]]}}
+
|nc={{#ifexist:File:Cc-nc.png|[[File:Cc-nc.png|30px|NonCommercial|alt=NC]]}}
|nc-sa={{#ifexist:File:Cc-nc.svg|[[File:Cc-nc.svg|30px|NonCommercial|alt=NC]]}}{{#ifexist:File:Cc-sa.svg|[[File:Cc-sa.svg|30px|ShareAlike|alt=SA]]}}
+
|nc-sa={{#ifexist:File:Cc-nc.png|[[File:Cc-nc.png|30px|NonCommercial|alt=NC]]}}{{#ifexist:File:Cc-sa.png|[[File:Cc-sa.png|30px|ShareAlike|alt=SA]]}}
|nc-nd={{#ifexist:File:Cc-nc.svg|[[File:Cc-nc.svg|30px|NonCommercial|alt=NC]]}}{{#ifexist:File:Cc-nd.svg|[[File:Cc-nd.svg|30px|NoDerivatives|alt=ND]]}}
+
|nc-nd={{#ifexist:File:Cc-nc.png|[[File:Cc-nc.png|30px|NonCommercial|alt=NC]]}}{{#ifexist:File:Cc-nd.png|[[File:Cc-nd.png|30px|NoDerivatives|alt=ND]]}}
 
|#default=}}
 
|#default=}}
 
| align="center" | '''''This file is licensed under the <span class="plainlinks">[http://creativecommons.org/licenses/by{{#if:{{{mod|}}}|-}}{{{mod|}}}/{{{ver|4.0}}}/ Creative Commons {{#switch:{{lc:{{{mod|}}}}}
 
| align="center" | '''''This file is licensed under the <span class="plainlinks">[http://creativecommons.org/licenses/by{{#if:{{{mod|}}}|-}}{{{mod|}}}/{{{ver|4.0}}}/ Creative Commons {{#switch:{{lc:{{{mod|}}}}}

Revision as of 04:20, 17 April 2016

CC
BY
This file is licensed under the Creative Commons Attribution 4.0 license.
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Description
Makes a license link to the Creative Commons website. Image description pages with this template will be added to various categories depending on the values passed to the parameters.
Dependencies
Syntax
{{CC|mod=|ver=|details=}}
Parameters
  • mod= (default gives "Attribution")
    • sa = Attribution-ShareAlike
    • nd = Attribution-NoDerivatives
    • nc = Attribution-NonCommercial
    • nc-sa = Attribution-NonCommercial-ShareAlike
    • nc-nd = Attribution-NonCommercial-NoDerivatives
  • ver= (default: 4.0) check link if you use a non-default version #
    • Some valid options: 1.0, 2.0, 2.5, 3.0
  • details= Optional attribution details
Sample output
{{CC}}
gives...
CC
BY
This template and it's documentation are licensed under the Creative Commons Attribution 4.0 license.


{{CC|details=By Gargomel Rassnfrassn on 29 Feb 2012.}}
gives...
CC
BY
This template and it's documentation are licensed under the Creative Commons Attribution 4.0 license.


Attribution details: By Gargomel Rassnfrassn on 29 Feb 2012.


{{CC|mod=|ver=2.0}}
gives...
CC
BY
This template and it's documentation are licensed under the Creative Commons Attribution 2.0 license.


{{CC|mod=sa}}
gives...
CC
BY
This template and it's documentation are licensed under the Creative Commons Attribution-ShareAlike 4.0 license.


{{CC|mod=nd}}
gives...
CC
BY
This template and it's documentation are licensed under the Creative Commons Attribution-NoDerivatives 4.0 license.


{{CC|mod=nc}}
gives...
CC
BY
This template and it's documentation are licensed under the Creative Commons Attribution-NonCommercial 4.0 license.


{{CC|mod=nc-sa}}
gives...
CC
BY
This template and it's documentation are licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 license.


{{CC|mod=nc-nd}}
gives...
CC
BY
This template and it's documentation are licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 license.
The above text is transcluded from Template:CC/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:CC/doc. (View all subpages of this page.)