Difference between revisions of "Template:Example code"
Jump to navigation
Jump to search
m (Remove full stops after URLs. It is less correct but looks better) |
(New feature: parameters "PD" and "WTFPL" place pages in Category:PD pages) |
||
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]]<!-- | ||
− | -->|PD=This code is placed in the public domain. You may use it however you like.<!-- | + | -->|PD=This code is placed in the public domain. 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.<!-- | + | -->|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|}}}<!-- | ||
-->}}</div><includeonly>[[Category:Example code]]</includeonly><noinclude> | -->}}</div><includeonly>[[Category:Example code]]</includeonly><noinclude> |
Revision as of 08:40, 12 March 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)
- WTFPL (Do WTF you want to public license)