Difference between revisions of "Template:CC"

From Project: Gorgon Wiki
Jump to: navigation, search
m (SVG can't be used on this wiki)
m (Made namespace aware)
 
Line 7: Line 7:
 
|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]]}}
 
|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 {{#switch: {{NAMESPACE}}
 +
| {{ns:Template}} = template and it's documentation are
 +
| {{ns:File}} = file is
 +
| #default = article
 +
}} licensed under the <span class="plainlinks">[http://creativecommons.org/licenses/by{{#if:{{{mod|}}}|-}}{{{mod|}}}/{{{ver|4.0}}}/ Creative Commons {{#switch:{{lc:{{{mod|}}}}}
 
|sa=Attribution-ShareAlike
 
|sa=Attribution-ShareAlike
 
|nd=Attribution-NoDerivatives
 
|nd=Attribution-NoDerivatives
Line 21: Line 25:
 
|nc-sa=-NC-SA-
 
|nc-sa=-NC-SA-
 
|nc-nd=-NC-ND-
 
|nc-nd=-NC-ND-
|#default=}}{{{ver|4.0}}} images]]}}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
|#default=}}{{{ver|4.0}}} {{#switch: {{NAMESPACE}}
 +
| {{ns:Template}} = templates
 +
| {{ns:File}} = images
 +
| #default = articles
 +
}}]]}}}</includeonly><noinclude>
 +
{{Documentation}}</noinclude>

Latest revision as of 05:23, 11 May 2016

CC
BY
This template and it's documentation are 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.)