Template:License: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{doc}}<onlyinclude><includeonly>{{#if:{{{license|}}}|{{Metanotice | style = padding-block:.5em; | rgb = {{#switch:{{{license}}} | MIT = 156, 32, 52 }}...")
 
m ("Valve license")
 
(151 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{doc}}<onlyinclude><includeonly>{{#if:{{{license|}}}|{{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;  
| rgb  = {{#switch:{{{license}}}
          {{#switch:{{{type}}}
           | MIT = 156, 32, 52
           | disclaimer = background:#332325; border-color:#a20010; padding-inline:.2em;
           }}
           }}
| id    = {{#switch:{{{license}}}
| rgb  = {{#switch:{{{type}}}
           | MIT = [[File:Logo-mit.png|30px]]
           | copyright | copyrighted | fairuse = 162, 0, 16
          | trademark    = 101, 101, 128
          | mit  | MIT   = 156,  32,  52
          | mpl  | MPL    = 173,  0,  1
          | gpl  | GPL    = 190,  0,  0
          | lgpl | LGPL  = 0,  128,  50
          | pd  | pd-too | pd-simple | pd-simplegeometry | pd-geometry | valve = 129, 129, 129
          | #default      = 238,  91,  50
           }}
           }}
| text  = {{#switch:{{{license}}}
| id    = {{#switch:{{{type}}}
           | MIT = The following work is licensed under the MIT License.
           | copyright | copyrighted | fairuse = [[File:Icon-NotCommons-emblem-copyrighted.png|30px|link=|Copyrighted]]
          | disclaimer  = none
          | trademark  = [[File:Icon-trademark.png|30px|link=|Trademark]]
          | mit  | MIT = [[File:Logo-mit.png|30px|link=|MIT License]]
          | mpl  | MPL  = [[FIle:Logo-mozilla.png|42px|link=|Mozilla 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]]
          | ccbysa = [[File:Icon-copyright-ccbysa.png|30px|link=|Creative Commons]]
          | 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]]
           }}
           }}
}}|}}</onlyinclude></includeonly>
| text  = {{#switch:{{{type}}}
[[Category:Templates]] [[Category:Notice templates]] [[Category:Metanotice templates]]
          | copyright | copyrighted | fairuse = {{license/strings|fairuse}}
          | disclaimer  = <div style="color:rgb(238, 49, 49,.8); font-size:.75em; text-align:center;">'''{{license/strings|disclaimer}}'''</div>
          | trademark  = {{license/strings|trademark}}[[Category:With trademark]]
          | mit  | MIT  = {{license/strings|MIT}}.<br><p>'''Copyright © {{#if:{{{author|}}}|{{{author}}}|The author(s)}}'''</p>{{license/strings|MITterms}}
          | 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  | 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|}}
          | 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}}
          | cc0 = {{license/strings|CC}} {{license/strings|CC0}}.<br><br>{{license/strings|CC0terms}}
          | 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=.}}
}}|}}</div></onlyinclude></includeonly>

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