Template:License: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m ("Valve license")
 
(46 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{doc}}<onlyinclude><includeonly><div class="plainlinks">{{#if:{{{type|}}}|{{Metanotice
[[Category:Templates]][[Category:Notice templates]][[Category:Metanotice templates]]{{doc}}__NOTOC__<onlyinclude><includeonly><div class="plainlinks">{{#if:{{{type|}}}|{{Metanotice
| style = padding-block:.5em;  
| style = padding-block:.5em;  
           {{#switch:{{{type}}}
           {{#switch:{{{type}}}
Line 6: Line 6:
| rgb  = {{#switch:{{{type}}}
| rgb  = {{#switch:{{{type}}}
           | copyright | copyrighted | fairuse = 162, 0, 16
           | copyright | copyrighted | fairuse = 162, 0, 16
           | trademark   = 101, 101, 128
           | trademark     = 101, 101, 128
           | mit | MIT   = 156,  32,  52
           | mit | MIT   = 156,  32,  52
           | mpl         = 173,  0,  1
           | mpl | MPL    = 173,  0,  1
           | gpl         = 190,  0,  0
           | gpl | GPL    = 190,  0,  0
           | lgpl       = 0,  128,  50
           | lgpl | LGPL  = 0,  128,  50
           | pd | pd-too = 129, 129, 129
           | pd   | pd-too | pd-simple | pd-simplegeometry | pd-geometry | valve = 129, 129, 129
           | #default   = 238,  91,  50
           | #default     = 238,  91,  50
           }}
           }}
| id    = {{#switch:{{{type}}}
| id    = {{#switch:{{{type}}}
Line 19: Line 19:
           | trademark  = [[File:Icon-trademark.png|30px|link=|Trademark]]
           | trademark  = [[File:Icon-trademark.png|30px|link=|Trademark]]
           | mit  | MIT  = [[File:Logo-mit.png|30px|link=|MIT License]]
           | mit  | MIT  = [[File:Logo-mit.png|30px|link=|MIT License]]
           | mpl         = [[FIle:Logo-mozilla.png|42px|link=|Mozilla Public License]]
           | mpl | MPL  = [[FIle:Logo-mozilla.png|42px|link=|Mozilla Public License]]
           | gpl         = [[File:Logo-gpl.png|42px|link=|GNU General Public License]]
           | gpl | GPL  = [[File:Logo-gpl.png|42px|link=|GNU General Public License]]
           | 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]]
           | pd | pd-too = [[File:Icon-pd.png|30px|link=|Public Domain]]
          | cc0 = [[File:License CC0 icon.png|30px|link=|Creative Commons]]
           | pd   | pd-too | pd-simple | pd-simplegeometry | pd-geometry = [[File:Icon-pd.png|30px|link=|Public Domain]]
          | valve = [[File:Valve icon.png|30px|link=|Valve]]
           }}
           }}
| text  = {{#switch:{{{type}}}
| text  = {{#switch:{{{type}}}
           | copyright | copyrighted | fairuse = {{license/strings|fairuse}}
           | copyright | copyrighted | fairuse = {{license/strings|fairuse}}
           | disclaimer = <div style="color:rgb(238, 49, 49,.8); font-size:.75em; text-align:center;">'''THE FOLLOWING WORK IS PROVIDED "AS IS" AND ALL USE IS AT YOUR OWN RISK. THE PERSON RESPONSIBLE FOR THE DISTRIBUTION OF THIS WORK DISCLAIMS ANY IMPLIED WARRANTY, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. FOR MORE INFORMATION, SEE THE [[Valve Developer Community:Terms of Use|TERMS OF USE]]'''</div>
           | disclaimer = <div style="color:rgb(238, 49, 49,.8); font-size:.75em; text-align:center;">'''{{license/strings|disclaimer}}'''</div>
           | trademark = The following work includes material that may be protected as a [[wp:trademark|trademark]] in some jurisdictions. Before using it, ensure that you have the legal right to do so and that you do not infringe on any trademark rights.<br><small>This tag does not indicate the copyright status of the attached work. A normal copyright tag is still required</small>
           | trademark   = {{license/strings|trademark}}[[Category:With trademark]]
           | mit | MIT  = The following work is licensed under the [[wp:MIT License|<span style="color:#8BB9E0;">MIT License</span>]]
           | mit | MIT  = {{license/strings|MIT}}.<br><p>'''Copyright © {{#if:{{{author|}}}|{{{author}}}|The author(s)}}'''</p>{{license/strings|MITterms}}
           | 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}}]|}}
           | mpl | MPL  = {{license/strings|MPL}}{{#if:{{{version|}}}|&nbsp;Version [https://www.mozilla.org/en-US/MPL/{{#switch:{{{version}}}|2=2.0 2.0}}]|}} {{license/strings|MPL2}}
           | 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}}]|}}
           | 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      = 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}}]|}}
          | 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     = The following work is licensed under the [[wp:Creative Commons|<span style="color:#8BB9E0;">Creative Commons</span>]] {{#switch:{{{version}}}|1=[https://creativecommons.org/licenses/by-sa/4.0/ Attribution-ShareAlike 1.0]|2.5=[https://creativecommons.org/licenses/by-sa/4.0/ Attribution-ShareAlike 2.5]|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 = {{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        = The following work has been released into the [[wp:Public Domain|<span style="color:#8BB9E0;">public domain</span>]] by {{#if:{{{author|}}}|it's author: '''{{{author|}}}'''|it's copyright holder}}. This applies worldwide.<br><small>In the event that this isn't legally possible: ''The {{#if:{{{author|}}}|author: {{{author|}}};|copyright holder}} grants any entity the rights to use this work for any purpose, unless such conditions are required by law''</small>
           | cc0 = {{license/strings|CC}} {{license/strings|CC0}}.<br><br>{{license/strings|CC0terms}}
           | pd-too   = This 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]]</small>
          | 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}}
          | pd-simple | pd-simplegeometry | pd-geometry = {{license/strings|PD-Simple}}
          | valve = {{license/strings|Valve}}
           }}{{#switch:{{{type}}}|disclaimer=|#default=.}}
           }}{{#switch:{{{type}}}|disclaimer=|#default=.}}
}}|}}</div></onlyinclude></includeonly>
}}|}}</div></onlyinclude></includeonly>
[[Category:Templates]] [[Category:Notice templates]] [[Category:Metanotice templates]]

Latest revision as of 03:51, 5 June 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