Template:License: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (test)
Line 12: Line 12:
| id    = {{#switch:{{{license}}}
| id    = {{#switch:{{{license}}}
           | copyright | copyrighted | fairuse = [[File:Icon-NotCommons-emblem-copyrighted.png|30px]]
           | copyright | copyrighted | fairuse = [[File:Icon-NotCommons-emblem-copyrighted.png|30px]]
           | mit  | MIT = [[File:Logo-mit.png|30px]]
           | mit  | MIT   = [[File:Logo-mit.png|30px]]
           | mpl       = [[FIle:Logo-mozilla.png|42px]]
           | mpl         = [[FIle:Logo-mozilla.png|42px]]
           | gpl       = [[File:Logo-gpl.png|42px]]
           | gpl           = [[File:Logo-gpl.png|42px]]
           | lgpl       = [[File:Logo-lgpl.png|42px]]
           | lgpl         = [[File:Logo-lgpl.png|42px]]
           | ccbysa     = [[File:Icon-copyright-ccbysa.png|30px]]
           | ccbysa       = [[File:Icon-copyright-ccbysa.png|30px]]
           | pd         = [[File:Icon-pd.png|30px]]
           | pd | pd-logo = [[File:Icon-pd.png|30px]]
           }}
           }}
| text  = The following work {{#switch:{{{license}}}
| text  = {{#switch:{{{license}}}
           | copyright | copyrighted | fairuse = is copyrighted, but the usage of the file is allowed on Valve Developer Community as long it qualifies as "fair use" under the {{wiki|Fair_use#U.S._fair_use_factors|United States copyright law}}. <br>Any other uses of this image, on Valve Developer Community or elsewhere, or in countries without the fair use law, may be considered copyright infringement
           | copyright | copyrighted | fairuse = The following work is copyrighted, but the usage of the file is allowed on Valve Developer Community as long it qualifies as "fair use" under the {{wiki|Fair_use#U.S._fair_use_factors|United States copyright law}}. <br>Any other uses of this image, on Valve Developer Community or elsewhere, or in countries without the fair use law, may be considered copyright infringement
           | mit | MIT = is licensed under the [[wp:MIT License|<span style="color:#8BB9E0;">MIT License</span>]]
           | mit | MIT = The following work is licensed under the [[wp:MIT License|<span style="color:#8BB9E0;">MIT License</span>]]
           | mpl      = is licensed under the [[wp:Mozilla Public License|<span style="color:#8BB9E0;">Mozilla Public License</span>]] {{#if:{{{version|}}}|[https://www.mozilla.org/en-US/MPL/{{#switch:{{{version}}}|2=2.0 2.0}}]|}}
           | mpl      = The following work is licensed under the [[wp:Mozilla Public License|<span style="color:#8BB9E0;">Mozilla Public License</span>]] {{#if:{{{version|}}}|[https://www.mozilla.org/en-US/MPL/{{#switch:{{{version}}}|2=2.0 2.0}}]|}}
           | gpl      = is licensed under the [[wp:GNU General Public License|<span style="color:#8BB9E0;">GNU General Public License</span>]] {{#if:{{{version|}}}|[https://www.gnu.org/licenses/gpl-{{#switch:{{{version}}}|3=3.0.en.html 3.0|2=2.0.en.html 2.0}}]|}}
           | gpl      = The following work is licensed under the [[wp:GNU General Public License|<span style="color:#8BB9E0;">GNU General Public License</span>]] {{#if:{{{version|}}}|[https://www.gnu.org/licenses/gpl-{{#switch:{{{version}}}|3=3.0.en.html 3.0|2=2.0.en.html 2.0}}]|}}
           | lgpl      = is licensed under the [[wp:GNU Lesser General Public License|<span style="color:#8BB9E0;">GNU Lesser General Public License</span>]] {{#if:{{{version|}}}|[https://www.gnu.org/licenses/lgpl-{{#switch:{{{version}}}|3=3.0.en.html 3.0|2=2.0.en.html 2.0}}]|}}
           | lgpl      = The following work is licensed under the [[wp:GNU Lesser General Public License|<span style="color:#8BB9E0;">GNU Lesser General Public License</span>]] {{#if:{{{version|}}}|[https://www.gnu.org/licenses/lgpl-{{#switch:{{{version}}}|3=3.0.en.html 3.0|2=2.0.en.html 2.0}}]|}}
           | ccbysa    = is licensed under the [[wp:Creative Commons|<span style="color:#8BB9E0;">Creative Commons</span>]] {{#switch:{{{version}}}|3=[https://creativecommons.org/licenses/by-sa/3.0/{{#switch:{{{region}}}|us=us/}} Attribution-ShareAlike 3.0 {{#switch:{{{region}}}|us=United States}}]|4=[https://creativecommons.org/licenses/by-sa/4.0/ Attribution-ShareAlike 4.0]|#default=Attribution-ShareAlike}} license
           | ccbysa    = The following work is licensed under the [[wp:Creative Commons|<span style="color:#8BB9E0;">Creative Commons</span>]] {{#switch:{{{version}}}|3=[https://creativecommons.org/licenses/by-sa/3.0/{{#switch:{{{region}}}|us=us/}} Attribution-ShareAlike 3.0 {{#switch:{{{region}}}|us=United States}}]|4=[https://creativecommons.org/licenses/by-sa/4.0/ Attribution-ShareAlike 4.0]|#default=Attribution-ShareAlike}} license
           | pd        = has been released into the [[wp:Public Domain|<span style="color:#8BB9E0;">Public Domain</span>]]
           | pd        = The following work has been released into the [[wp:Public Domain|<span style="color:#8BB9E0;">Public Domain</span>]]
          | pd-logo  = This logo image consists only of simple geometric shapes or text. It '''does not meet the [[wp:threshold of originality|threshold of originality]]''' needed for copyright protection, and is therefore in the public domain.<br><small>This image may still be subject to other restrictions, such as [[wp:trademark|trademark rights]] or [[wp:design patent|design patents]] if it is a logo.
           }}.
           }}.
}}|}}</div></onlyinclude></includeonly>
}}|}}</div></onlyinclude></includeonly>
[[Category:Templates]] [[Category:Notice templates]] [[Category:Metanotice templates]]
[[Category:Templates]] [[Category:Notice templates]] [[Category:Metanotice templates]]

Revision as of 09:42, 1 July 2023

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