Difference between revisions of "Template:Example code"

From VideoLAN Wiki
Jump to navigation Jump to search
(Add magic value "Expat" for Expat/MIT)
m (Fix last)
Line 3: Line 3:
 
   -->|GPL=This code is licensed under the [https://www.gnu.org/copyleft/gpl.html GNU General public license][[Category:GNU GPL Licensed pages]]<!--
 
   -->|GPL=This code is licensed under the [https://www.gnu.org/copyleft/gpl.html GNU General public license][[Category:GNU GPL 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]]<!--
 
   -->|LGPL=This code is licensed under the [https://www.gnu.org/copyleft/lesser.html GNU Lesser General public license][[Category:GNU LGPL Licensed pages]]<!--
   -->|Expat=This code is licenced under the [https://directory.fsf.org/wiki/License:Expat Expat] (often called the ''MIT License'')[[Category:Expat pages]]<!--
+
   -->|Expat=This code is licenced under the [https://directory.fsf.org/wiki/License:Expat Expat License] (often called the ''MIT License'')[[Category:Expat 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]]<!--
 
   -->|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]]<!--

Revision as of 09:07, 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
    • Expat ("MIT License")
    • WTFPL (Do WTF you want to public license)
    • PD (public domain)
    • CC-0 (Creative Commons CC-0 for universal public domain)