Template:License/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Mailmanmicky moved page Template:Copyright/doc to Template:Permission/doc)
mNo edit summary
Line 1: Line 1:
{{Doc/subpage}}Template used to indicate the license of a copyrighted work. Mainly intended for use on files, but template is applicable elsewhere.
{{Doc/subpage}}Template used to indicate the permissions of the associated work. Mainly intended for use on files, but template is applicable elsewhere.


== Copy and Paste ==
== Copy and Paste ==
{{CodeBlock|<nowiki>{{Copyright
{{CodeBlock|<nowiki>{{Permission
| license =
| type =
}}</nowiki>}}
}}</nowiki>}}


Line 15: Line 15:
! {{Dictionary/common|Example}}
! {{Dictionary/common|Example}}
|-
|-
| align="center" | {{Code|style=2|{{Param|license}}}}
| align="center" | {{Code|style=2|{{Param|type}}}}
| String parameter for specifying the license
| String parameter for specifying the permission notice
| {{CodeBlock|margin=5px|<nowiki>| license = MIT</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| license = MIT</nowiki>}}
|-
|-
| align="center" | {{Code|style=2|{{Param|version}}}}
| align="center" | {{Code|style=2|{{Param|version}}}}
| Parameter used to change the version of a license if avaliable
| Parameter used to change the version of the permission notice if available
| {{CodeBlock|margin=5px|<nowiki>| version = 3.0</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| version = 3.0</nowiki>}}
|-
|-
| align="center" | {{Code|style=2|{{Param|region}}}}
| align="center" | {{Code|style=2|{{Param|region}}}}
| Parameter used to change to a region specific version of a chosen license if avaliable.
| Parameter used to change to a region specific version of the permission notice if available.
| {{CodeBlock|margin=5px|<nowiki>| region = us</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| region = us</nowiki>}}
|}
|}

Revision as of 10:18, 1 July 2023

Edit-copy.png
This is a documentation subpage for Template:License.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Template used to indicate the permissions of the associated work. Mainly intended for use on files, but template is applicable elsewhere.

Copy and Paste

{{Permission | type = }}

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
| license = MIT
{{{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