Template:Copy: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(removed Category:DPL templates - added documentation)
(started treatment of abbreviated CC licenses - also link to proper section at ChoralWiki:Creative Commons)
 
Line 1: Line 1:
{{#ifeq:{{#sub:{{{1|}}}|0|16}}|Creative Commons
{{#switch:{{#explode:{{{1|}}}| |0}}
|'''Copyright:''' [[ChoralWiki:Creative Commons|{{#replaceset:{{{1}}}|Creative Commons Attribution=CC BY|Non-Commercial=NC|Noncommercial=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>
Line 14: Line 15:
{{tl|Copy|Creative Commons Attribution Share Alike}} produces:
{{tl|Copy|Creative Commons Attribution Share Alike}} produces:
:{{Copy|Creative Commons Attribution Share Alike}}
:{{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