Wikipedia:Software licenses

On the English Wikipedia, most articles about software have a template called {{Infobox software}}. One of the parameters that this template has is |license=. This parameter is sometimes filled in incorrectly.

Correct usage of the license parameter

edit

The license parameter should contain the name of the license that the software is released under.

As described in the article Software license, such licenses either allow or restrict certain actions with regard to the software. Examples of such licenses include:

  • A GNU license – Free software licenses which usually also incorporate copyleft to ensure any copied code remains free as in freedom. A common GNU license is the GNU General Public License (GPL). The specific version used should be specified.
  • A BSD license – There are multiple, and the specific license should be specified wherever possible. BSD licenses are also free software licenses, but do not incorporate copyleft.
  • Public domain – This is not a license; it is a lack of a license. However, it is correct to write this in the license parameter if a piece of software is public domain.
  • A proprietary license – Often, these do not have names at all; in that case, simply write [[Proprietary license|Proprietary]] in the license parameter. If the license does have a name, whether or not it is specified in the infobox is largely irrelevant in this specific case – a proprietary license is a proprietary license; while they may not be comparable in wording, they usually impose the same sorts of restrictions on the user.

A useful resource is the GNU.org list of licenses.

Example

edit

If the software is released under the GNU GPL v3, then the infobox's license parameter would contain that information, as below:

Example software released under GNU GPL v3
Developer(s)Example Developer
Initial release2024
LicenseGNU GPL v3
Websitewww.example.com

In source editing mode, the above appears as:

{{infobox software
| name = Example software released under GNU GPL v3
| logo = [[File:Down_left_arrow_Hexagonal_Icon.svg|120px|Logo]]
| developer = Example Developer
| released = {{CURRENTYEAR}}
| license = [[GNU_General_Public_License#Version_3|GNU GPL v3]]
| website = {{URL|http://www.example.com}}
}}

Note: {{CURRENTYEAR}} is a "magic word" used to display the current year on a page, which is dynamically updated. In articles, the date of the software's release should go in this parameter. The template {{Start date and age}} should be used, which automatically displays the amount of time since the date entered into it.

Incorrect usage of the license parameter

edit

If the only text present in the license parameter is not the name of a software license, the parameter is being used incorrectly. Examples include:

  • "[[Free software]]", "[[Free software|Free/libre software]]", or similar. It is unlikely that the developer of the software would not specify which free software license they are using; simply saying "this is free software" is insufficient from a legal standpoint. The software will usually come with a license file that specifies it. While having this text in the license parameter is acceptable as a placeholder, it should be replaced as soon as possible. It is recommended to place a comment in the parameter, after the text, indicating it is a placeholder: <!--Placeholder text; should be replaced with name of specific license as soon as possible-->.
  • "[[GNU GPL]]". The specific version should be mentioned; it should also be ensured that the license in question is actually the GNU General Public License itself, rather than the GNU Lesser General Public License (GNU LGPL) or GNU Affero General Public License (GNU AGPL), which themselves also have different versions.
  • "[[BSD license]]". As mentioned above, there are multiple BSD licenses; if the developer has not specified which one, a possible solution is to write "An unspecified BSD license" in the license parameter. If possible, contacting the developer and informing them of the problem is advisable, but this is unrelated to Wikipedia.
  • "[[Open source software|Open source]]". As with simply writing "Free software", this is not a license name.
  • "[[Commercial software|Commercial]]" (and variants such as "[[Commercial software|Paid]]"), as well as "[[Freeware]]" and similar. That the developer charges for, or does not charge for, copies of their program is unrelated to this parameter. If desired, whether the software is gratis or commercial can be specified in the license parameter below the name of the license. Example: "[[GNU GPL v3]]<br />[[Commercial software|Commercial]]". <br /> adds a line break and should be used so that the two separate pieces of text do not appear on the same line.

See also

edit