Difference between revisions of "Template:Copy"

From ChoralWiki
Jump to navigation Jump to search
(2nd parameter)
(started treatment of abbreviated CC licenses - also link to proper section at ChoralWiki:Creative Commons)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Copyright:''' [[ChoralWiki:{{{1}}}|{{{2|{{{1}}}}}}]]<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
+
{{#switch:{{#explode:{{{1|}}}| |0}}
 +
|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}}}}}}]]
 +
}}<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>

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