Template:License: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Use string subpage strings)
Line 27: Line 27:
| 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}}
           | mit | MIT  = The following work is licensed under the [[wp:MIT License|<span style="color:#8BB9E0;">MIT License</span>]]
           | mit | MIT  = {{license/strings|MIT}}
           | 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|}}}|[https://www.mozilla.org/en-US/MPL/{{#switch:{{{version}}}|2=2.0 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}}]|}}
           | gpl | GPL  = {{license/strings|GPL}} {{#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       = 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|LGPL}} {{#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     = 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=[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=[https://creativecommons.org/licenses/by-sa/3.0/{{#switch:{{{region}}}|us=us/}} {{license/strings|BYSA}} 3.0 {{#switch:{{{region}}}|us=United States}}]|4=[https://creativecommons.org/licenses/by-sa/4.0/ {{license/strings|BYSA}} 4.0]|#default={{license/strings|BYSA}}}} license
           | 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>
           | 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   = 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-too     = {{license/strings|TOO}}
           }}{{#switch:{{{type}}}|disclaimer=|#default=.}}
           }}{{#switch:{{{type}}}|disclaimer=|#default=.}}
}}|}}</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 10:57, 9 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