Difference between revisions of "Template:File copyright"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Centre)
(Add logic to check for copyright codes)
Line 1: Line 1:
<div class="widebox center" style="background: white;">{{{text|Copyright details}}}</div><noinclude>
+
<div class="widebox center" style="color: initial; background: white;">
 +
{{#switch:{{{1}}}
 +
  |CC-0            = This file is provided under the '''[https://creativecommons.org/publicdomain/zero/1.0/ CC0 1.0 Universal Public Domain Dedication]''' license.
 +
  |CC-BY-NC-SA-2.0 = This file is under the '''[https://creativecommons.org/licenses/by-nc-sa/2.0/ Creative Commons Attribution-NonCommercial-ShareAlike 2.0]''' license.
 +
  |CC-BY-SA-4.0    = This file is under the '''[https://creativecommons.org/licenses/by-sa/4.0/ Creative  Commons Attribution-ShareAlike 4.0]''' license.
 +
  |GPL            = This file is under the '''[https://www.gnu.org/licenses/gpl.html GNU General Public License]''' (any version ever published).
 +
  |PD              = This file is in the '''Public Domain''' and may be used for any purpose.
 +
  |#default        = {{{text|Copyright details}}}
 +
}}</div><noinclude>
 
== Usage ==
 
== Usage ==
 +
<code>{{{{PAGENAME}}|<nowiki><copyright>}}</nowiki></code>
 +
or
 
  <code>{{{{PAGENAME}}|text=<nowiki>}}</nowiki></code>
 
  <code>{{{{PAGENAME}}|text=<nowiki>}}</nowiki></code>
 +
 +
Copyright may be:
 +
* CC-0
 +
* CC-BY-NC-SA-2.0
 +
* CC-BY-SA-4.0
 +
* GPL
 +
* PD
 +
 +
New copyright values can be added as needed
  
 
[[Category:File copyright templates|*]]
 
[[Category:File copyright templates|*]]
 
</noinclude>
 
</noinclude>

Revision as of 07:57, 23 April 2019

Copyright details

Usage

{{File copyright|<copyright>}}

or

{{File copyright|text=}}

Copyright may be:

  • CC-0
  • CC-BY-NC-SA-2.0
  • CC-BY-SA-4.0
  • GPL
  • PD

New copyright values can be added as needed