Template:License: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Adding "With trademark" categories to trademarked files.)
(Added CC0.)
Line 22: Line 22:
           | gpl  | GPL  = [[File:Logo-gpl.png|42px|link=|GNU General Public License]]
           | gpl  | GPL  = [[File:Logo-gpl.png|42px|link=|GNU General Public License]]
           | lgpl | LGPL = [[File:Logo-lgpl.png|42px|link=|GNU Lesser General Public License]]
           | lgpl | LGPL = [[File:Logo-lgpl.png|42px|link=|GNU Lesser General Public License]]
           | ccbysa     = [[File:Icon-copyright-ccbysa.png|30px|link=|Creative Commons]]
           | ccbysa = [[File:Icon-copyright-ccbysa.png|30px|link=|Creative Commons]]
          | cc0 = [[File:License CC0 icon.png|30px|link=|Creative Commons]]
           | pd | pd-too = [[File:Icon-pd.png|30px|link=|Public Domain]]
           | pd | pd-too = [[File:Icon-pd.png|30px|link=|Public Domain]]
           }}
           }}
Line 33: Line 34:
           | gpl  | GPL  = {{license/strings|GNU}} {{#if:{{{version|}}}|[https://www.gnu.org/licenses/gpl-{{#switch:{{{version}}}|3=3.0.en.html 3.0|2=2.0.en.html 2.0}}]|}}<br>{{license/strings|GNU2}} GNU General Public License{{#if:{{{version|}}}|&#59; version {{#switch:{{{version}}}|2|2.0=2|3|3.0=3}}|}} {{license/strings|GNU3}}. {{license/strings|GNU4}}{{#if:{{{version|}}}|.|}} {{#if:{{{version|}}}|See [https://www.gnu.org/licenses/gpl-{{#switch:{{{version}}}|3=3.0.en.html|2=2.0.en.html}} version {{#switch:{{{version}}}|3=3|2=2}} of the GNU General Public License] for more details|}}
           | gpl  | GPL  = {{license/strings|GNU}} {{#if:{{{version|}}}|[https://www.gnu.org/licenses/gpl-{{#switch:{{{version}}}|3=3.0.en.html 3.0|2=2.0.en.html 2.0}}]|}}<br>{{license/strings|GNU2}} GNU General Public License{{#if:{{{version|}}}|&#59; version {{#switch:{{{version}}}|2|2.0=2|3|3.0=3}}|}} {{license/strings|GNU3}}. {{license/strings|GNU4}}{{#if:{{{version|}}}|.|}} {{#if:{{{version|}}}|See [https://www.gnu.org/licenses/gpl-{{#switch:{{{version}}}|3=3.0.en.html|2=2.0.en.html}} version {{#switch:{{{version}}}|3=3|2=2}} of the GNU General Public License] for more details|}}
           | lgpl | LGPL = {{license/strings|GNU}} {{#if:{{{version|}}}|[https://www.gnu.org/licenses/lgpl-{{#switch:{{{version}}}|3=3.0.en.html 3.0|2=2.0.en.html 2.0}}]|}}<br>{{license/strings|GNU2}} GNU Lesser General Public License{{#if:{{{version|}}}|&#59; version {{#switch:{{{version}}}|2|2.0=2|3|3.0=3}}|}} {{license/strings|GNU3}}. {{license/strings|GNU4}}{{#if:{{{version|}}}|.|}} {{#if:{{{version|}}}|See [https://www.gnu.org/licenses/lgpl-{{#switch:{{{version}}}|3=3.0.en.html|2=2.0.en.html}} version {{#switch:{{{version}}}|3=3|2=2}} of the GNU Lesser General Public License] for more details|}}
           | lgpl | LGPL = {{license/strings|GNU}} {{#if:{{{version|}}}|[https://www.gnu.org/licenses/lgpl-{{#switch:{{{version}}}|3=3.0.en.html 3.0|2=2.0.en.html 2.0}}]|}}<br>{{license/strings|GNU2}} GNU Lesser General Public License{{#if:{{{version|}}}|&#59; version {{#switch:{{{version}}}|2|2.0=2|3|3.0=3}}|}} {{license/strings|GNU3}}. {{license/strings|GNU4}}{{#if:{{{version|}}}|.|}} {{#if:{{{version|}}}|See [https://www.gnu.org/licenses/lgpl-{{#switch:{{{version}}}|3=3.0.en.html|2=2.0.en.html}} version {{#switch:{{{version}}}|3=3|2=2}} of the GNU Lesser General Public License] for more details|}}
           | ccbysa     = {{license/strings|CC}} {{#switch:{{{version}}}|1|1.0=[https://creativecommons.org/licenses/by-sa/4.0/ {{license/strings|BYSA}} 1.0]|2.5=[https://creativecommons.org/licenses/by-sa/4.0/ {{license/strings|BYSA}} 2.5]|3|3.0=[https://creativecommons.org/licenses/by-sa/3.0/{{#switch:{{{region}}}|us=us/}} {{license/strings|BYSA}} 3.0 {{#switch:{{{region}}}|us=United States}}]|4|4.0=[https://creativecommons.org/licenses/by-sa/4.0/ {{license/strings|BYSA}} 4.0]|#default={{license/strings|BYSA}}}} license.<br>{{license/strings|BYSAterms}}
           | ccbysa = {{license/strings|CC}} {{#switch:{{{version}}}|1|1.0=[https://creativecommons.org/licenses/by-sa/4.0/ {{license/strings|BYSA}} 1.0]|2.5=[https://creativecommons.org/licenses/by-sa/4.0/ {{license/strings|BYSA}} 2.5]|3|3.0=[https://creativecommons.org/licenses/by-sa/3.0/{{#switch:{{{region}}}|us=us/}} {{license/strings|BYSA}} 3.0 {{#switch:{{{region}}}|us=United States}}]|4|4.0=[https://creativecommons.org/licenses/by-sa/4.0/ {{license/strings|BYSA}} 4.0]|#default={{license/strings|BYSA}}}} license.<br>{{license/strings|BYSAterms}}
           | pd         = {{license/strings|PD}} {{#if:{{{author|}}}|it's author: '''{{{author|}}}'''|it's copyright holder}}. {{license/strings|PD2}}.<br><small>{{license/strings|PD3}}: ''The {{#if:{{{author|}}}|author: {{{author|}}};|copyright holder}} {{license/strings|PD4}}''</small>
          | cc0 = {{license/strings|CC}} {{license/strings|CC0}}<br>{{license/strings|CC0terms}}
           | pd-too     = {{license/strings|TOO}}
           | pd = {{license/strings|PD}} {{#if:{{{author|}}}|it's author: '''{{{author|}}}'''|it's copyright holder}}. {{license/strings|PD2}}.<br><small>{{license/strings|PD3}}: ''The {{#if:{{{author|}}}|author: {{{author|}}};|copyright holder}} {{license/strings|PD4}}''</small>
           | pd-too = {{license/strings|TOO}}
           }}{{#switch:{{{type}}}|disclaimer=|#default=.}}
           }}{{#switch:{{{type}}}|disclaimer=|#default=.}}
}}|}}</div></onlyinclude></includeonly>
}}|}}</div></onlyinclude></includeonly>

Revision as of 22:07, 2 February 2024

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Gnome app science.png
This template uses a Testcases subpage
You can test how this page looks with it's different skins and parsers.

Template for adding licensing notices. Mainly intended for use on files, but this template is applicable elsewhere.

Copy and Paste

{{License | type = }}

Translations

The used strings are on strings subpage. Please follow the format to add translations for them.

You may also use the strings subpage in order to compartmentalize template code when possible.

Testcases

Testcases for this template can be located on the testcases subpage.

Parameters and Examples

Parameter Description Example
{{{type}}} String parameter for specifying the permission notice
| type = MIT
{{{author}}} For specifying an author in the event that it is possible
| author = Example
{{{version}}} Parameter used to change the version of the permission notice if available
| version = 3.0
{{{region}}} Parameter used to change to a region specific version of the permission notice if available.
| region = us