Difference between revisions of "Template:Copy"

From ChoralWiki
Jump to navigation Jump to search
(treating CC licenses as a special case)
(started treatment of abbreviated CC licenses - also link to proper section at ChoralWiki:Creative Commons)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifeq:{{#sub:{{{1|}}}|0|16}}|Creative Commons
+
{{#switch:{{#explode:{{{1|}}}| |0}}
|'''Copyright:''' [[ChoralWiki:Creative Commons|{{#multireplace:{{{1}}}|Creative Commons Attribution=CC BY|Non-Commercial=NC|Share Alike=SA|No Derivatives=ND}}]]
+
|Creative='''Copyright:''' [[ChoralWiki:Creative Commons#{{#replaceset:{{{1}}}|Creative Commons Attribution=CC BY|Non-Commercial=NC|Noncommercial=NC|Share Alike=SA|No Derivatives=ND}}|{{#replaceset:{{{1}}}|Creative Commons Attribution=CC BY|Non-Commercial=NC|Noncommercial=NC|Share Alike=SA|No Derivatives=ND}}]]
 +
|CC='''Copyright:''' [[ChoralWiki:Creative Commons#{{{1}}}|{{{1}}}]]
 
|'''Copyright:''' [[ChoralWiki:{{{1}}}|{{{2|{{{1}}}}}}]]
 
|'''Copyright:''' [[ChoralWiki:{{{1}}}|{{{2|{{{1}}}}}}]]
 
}}<noinclude>
 
}}<noinclude>
 +
{{Doc|text=
 +
This simple template is used on every CPDL edition. It formats the text '''Copyright:''' and creates a link to the appropriate copyright section at the help pages.
 +
 +
;Examples
 +
 +
{{tl|Copy|CPDL}} produces:
 +
:{{Copy|CPDL}}
 +
 +
 +
{{tl|Copy|Creative Commons Attribution Share Alike}} produces:
 +
:{{Copy|Creative Commons Attribution Share Alike}}
 +
 +
 +
{{tl|Copy|CC BY SA 3.0}} produces:
 +
:{{Copy|CC BY SA 3.0}}
 +
 +
}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 18:09, 22 November 2020

Copyright: [[ChoralWiki:{{{1}}}|{{{1}}}]]

Documentation

This simple template is used on every CPDL edition. It formats the text Copyright: and creates a link to the appropriate copyright section at the help pages.

Examples

{{Copy|CPDL}} produces:

Copyright: CPDL


{{Copy|Creative Commons Attribution Share Alike}} produces:

Copyright: CC BY SA


{{Copy|CC BY SA 3.0}} produces:

Copyright: CC BY SA 3.0