Template:License: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Added copyright/fair use to the list.)
Line 2: Line 2:
| style = padding-block:.5em;
| style = padding-block:.5em;
| rgb  = {{#switch:{{{license}}}
| rgb  = {{#switch:{{{license}}}
          | copyright | copyrighted | fairuse = 162, 0, 16
           | mit | MIT  = 156,  32,  52
           | mit | MIT  = 156,  32,  52
           | mpl        = 173,  0,  1
           | mpl        = 173,  0,  1
Line 10: Line 11:
           }}
           }}
| id    = {{#switch:{{{license}}}
| id    = {{#switch:{{{license}}}
          | copyright | copyrighted | fairuse = [[File: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]]
Line 18: Line 20:
           }}
           }}
| text  = The following work {{#switch:{{{license}}}
| text  = The following work {{#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}}. 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 MIT License
           | mit | MIT = is licensed under the MIT License
           | 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      = 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}}]|}}

Revision as of 07:44, 28 June 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