Difference between revisions of "Template:Example code"
Jump to navigation
Jump to search
(Add WTFPL (warning: profanity). It's a public domain-equivalent license) |
(Looks almost the same but centred and with one pixel less padding: use CSS class "widebox", defined in MediaWiki:Common.css) |
||
Line 1: | Line 1: | ||
− | < | + | <div class="widebox"> |
− | This page contains example code{{#if:{{{for|}}}|& | + | This page contains example code{{#if:{{{for|}}}| for [[{{{for}}}]]}}. |
{{#switch:{{{l}}} | {{#switch:{{{l}}} | ||
|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]] | ||
Line 7: | Line 7: | ||
|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. | ||
|#default={{{l|}}} | |#default={{{l|}}} | ||
− | }}</ | + | }}</div><includeonly>[[Category:Example code]]</includeonly><noinclude> |
Place at top of pages which are just example code. | Place at top of pages which are just example code. |
Revision as of 07:59, 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)