Template: License
(#switch: (the colon is required)) |
(Add more licenses from https://gnu.org/licenses/license-list.html) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
! Keyword | ! Keyword | ||
! License Name | ! License Name | ||
+ | |- | ||
+ | | OTHER | ||
+ | | This is a special keyword (see below) | ||
|- | |- | ||
| GPLv2 | | GPLv2 | ||
Line 37: | Line 40: | ||
|- | |- | ||
| | | | ||
+ | |} | ||
+ | |||
+ | === OTHER licensing scheme === | ||
+ | |||
+ | Some projects include code from various sources and combine several software licenses. In this case it's easier to link to the code repository's license file, or some other equivalent source. The '''OTHER''' keyword can be used for this. It takes a second argument which is the URL to link to, and an optional third argument which is the anchor: | ||
+ | |||
+ | {| | ||
+ | ! Usage | ||
+ | ! Description | ||
+ | |- | ||
+ | | <nowiki>{{License|OTHER|https://gitweb.torproject.org/tor.git/tree/LICENSE}}</nowiki> | ||
+ | | will show: '''License:''' [https://gitweb.torproject.org/tor.git/tree/LICENSE Speficic licensing scheme] | ||
+ | |- | ||
+ | | <nowiki>{{License|OTHER|https://gitweb.torproject.org/tor.git/tree/LICENSE|Tor-specific free software license}}</nowiki> | ||
+ | | will show: '''License:''' [https://gitweb.torproject.org/tor.git/tree/LICENSE Tor-specific free software license] | ||
|} | |} | ||
Line 42: | Line 60: | ||
<includeonly> | <includeonly> | ||
<span class="license"> | <span class="license"> | ||
− | < | + | <strong>License:</strong> |
− | | GPLv2 = GPLv2 | + | [{{#switch: {{{1|}}} |
− | | GPLv2+ = GPLv2 | + | | GPLv2 = https://gnu.org/licenses/license-list.html#GPLv2 GNU <abbr title="General Public License">GPL</abbr> version 2 |
− | | GPLv3+ = GNUGPL | + | | GPLv2+ = https://gnu.org/licenses/license-list.html#GPLv2 GNU <abbr title="General Public License">GPL</abbr> version 2 or later |
− | | GPL = GNUGPL | + | | GPLv3+ = https://gnu.org/licenses/license-list.html#GNUGPL GNU <abbr title="General Public License">GPL</abbr> version 3 or later |
− | | AGPL = AGPL | + | | GPL = https://gnu.org/licenses/license-list.html#GNUGPL GNU <abbr title="General Public License">GPL</abbr> version 3 or later |
− | | Apache2 = apache2 | + | | LGPL = https://gnu.org/licenses/license-list.html#LGPL GNU <abbr title="Lesser General Public License">LGPL</a> |
− | |#default = SoftwareLicenses | + | | LGPLv2.1 = https://gnu.org/licenses/license-list.html#LGPLv2.1 GNU <abbr title="Lesser General Public License">LGPL</a> version 2.1 |
− | }} | + | | AGPL = https://gnu.org/licenses/license-list.html#AGPL GNU <abbr title="Affero General Public License">AGPL</abbr> version 3 or later |
+ | | GNUAllPermissive = https://gnu.org/licenses/license-list.html#GNUAllPermissive GNU All-Permissive License | ||
+ | | Apache2 = https://gnu.org/licenses/license-list.html#apache2 Apache License, version 2.0 | ||
+ | | apache2 = https://gnu.org/licenses/license-list.html#apache2 Apache License, version 2.0 | ||
+ | | ArtisticLicense2 = https://gnu.org/licenses/license-list.html#ArtisticLicense2 Artistic License 2.0 | ||
+ | | BerkeleyDB = https://gnu.org/licenses/license-list.html#BerkeleyDB Berkeley Database License | ||
+ | | boost = https://gnu.org/licenses/license-list.html#boost Boost Software License | ||
+ | | BSD = https://gnu.org/licenses/license-list.html#ModifiedBSD Modified BSD License | ||
+ | | ModifiedBSD = https://gnu.org/licenses/license-list.html#ModifiedBSD Modified BSD License | ||
+ | | CC0 = https://gnu.org/licenses/license-list.html#CC0 Creative Commons 0 (Public Domain) | ||
+ | | cc0 = https://gnu.org/licenses/license-list.html#CC0 Creative Commons 0 (Public Domain) | ||
+ | | CeCILL = https://gnu.org/licenses/license-list.html#CeCILL CeCILL version 2 | ||
+ | | cecill = https://gnu.org/licenses/license-list.html#CeCILL CeCILL version 2 | ||
+ | | clearbsd = https://gnu.org/licenses/license-list.html#clearbsd Clear BSD License | ||
+ | | CryptixGeneralLicense = https://gnu.org/licenses/license-list.html#CryptixGeneralLicense Cryptix General License | ||
+ | | eCos2.0 = https://gnu.org/licenses/license-list.html#eCos2.0 eCos license version 2.0 | ||
+ | | ECL2.0 = https://gnu.org/licenses/license-list.html#ECL2.0 Educational Community License | ||
+ | | OTHER = {{{2}}} {{{3|Specific licensing scheme}}} | ||
+ | |#default = https://gnu.org/licenses/license-list.html#SoftwareLicenses {{{1|not specified}}} | ||
+ | }}] | ||
</span> | </span> | ||
</includeonly> | </includeonly> |
Latest revision as of 12:28, 24 October 2015
This is a template to display software license information and link to the original license text.
Usage
Simply pass the type of license you need as the template argument.
Example: {{License|GPL}}
Available Licenses
Note: keywords are case-sensitive.
Any anchor on the GNU licenses page can be used as a keyword.
Keyword | License Name |
---|---|
OTHER | This is a special keyword (see below) |
GPLv2 | GNU General Public License version 2 (only) |
GPLv2+ | GNU General Public License version 2 or later |
GPLv3+ | GNU General Public License version 3 or later |
GPL | GNU General Public License (ultimate version, eq. GPLv3+) |
AGPL | GNU Affero General Public License |
Apache2 | Apache License version 2.0 |
OTHER licensing scheme
Some projects include code from various sources and combine several software licenses. In this case it's easier to link to the code repository's license file, or some other equivalent source. The OTHER keyword can be used for this. It takes a second argument which is the URL to link to, and an optional third argument which is the anchor:
Usage | Description |
---|---|
{{License|OTHER|https://gitweb.torproject.org/tor.git/tree/LICENSE}} | will show: License: Speficic licensing scheme |
{{License|OTHER|https://gitweb.torproject.org/tor.git/tree/LICENSE|Tor-specific free software license}} | will show: License: Tor-specific free software license |