Difference between revisions of "Template:Example code"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Centre)
(Add magic value "CC-0")
Line 4: Line 4:
 
   -->|LGPL=This code is licensed under the [https://www.gnu.org/copyleft/lesser.html GNU Lesser General public license][[Category:GNU LGPL Licensed pages]]<!--
 
   -->|LGPL=This code is licensed under the [https://www.gnu.org/copyleft/lesser.html GNU Lesser General public license][[Category:GNU LGPL Licensed pages]]<!--
 
   -->|PD=This code is placed in the public domain. You may use it however you like.[[Category:PD pages]]<!--
 
   -->|PD=This code is placed in the public domain. You may use it however you like.[[Category:PD pages]]<!--
 +
  -->|CC-0=This code is licenced under the [https://creativecommons.org/publicdomain/zero/1.0/ CC-0 1.0 Universal Public Domain Dedication]. You may use it however you like.[[Category:CC-0 pages]]<!--
 
   -->|WTFPL=This code is licensed under the [http://www.wtfpl.net/ WTFPL]. You may use it however you like.[[Category:PD pages]]<!--
 
   -->|WTFPL=This code is licensed under the [http://www.wtfpl.net/ WTFPL]. You may use it however you like.[[Category:PD pages]]<!--
 
   -->|#default={{{l|}}}<!--
 
   -->|#default={{{l|}}}<!--
Line 18: Line 19:
 
** LGPL
 
** LGPL
 
** PD (public domain)
 
** PD (public domain)
 +
** CC-0 ([[Creative Commons]] CC-0 for universal public domain)
 
** WTFPL (Do WTF you want to public license)
 
** WTFPL (Do WTF you want to public license)
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 08:23, 3 April 2019

This page contains example code.

Place at top of pages which are just example code.

Places page in Category:Example code, and correct page license category.

Usage {{example code|l=GPL|for=.Net Interface to VLC}}

  • l (L) is license. Can be some text, eg: "Licensed under My License", or one of the following magic values
    • GPL
    • LGPL
    • PD (public domain)
    • CC-0 (Creative Commons CC-0 for universal public domain)
    • WTFPL (Do WTF you want to public license)