You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Difference between revisions of "Template:Self/doc"

From Wikitech-static
Jump to navigation Jump to search
imported>MGA73
(Licensing templates)
imported>Quiddity
m (fix)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{License documentation subpage}}
{{License documentation subpage}}
{{Languages|Template:Self}}


== Usage ==
== Usage ==
Line 27: Line 26:
!scope="col"| Effect
!scope="col"| Effect
|-
|-
| <source lang="html5">{{Self|cc-by-sa-2.5}}</source>
| <syntaxhighlight lang="html5">{{Self|cc-by-sa-2.5}}</syntaxhighlight>
| {{Self|cc-by-sa-2.5}}
| {{Self|cc-by-sa-2.5}}
|-
|-
| <source lang="html5">{{Self|GFDL|cc-by-sa-3.0,2.5,2.0,1.0}}</source>
| <syntaxhighlight lang="html5">{{Self|GFDL|cc-by-sa-3.0,2.5,2.0,1.0}}</syntaxhighlight>
| {{Self|GFDL|cc-by-sa-3.0,2.5,2.0,1.0}}
| {{Self|GFDL|cc-by-sa-3.0,2.5,2.0,1.0}}
|-
|-
| <source lang="html5">{{Self|GFDL|cc-by-sa-3.0,2.5,2.0,1.0|author=Person}}</source>
| <syntaxhighlight lang="html5">{{Self|GFDL|cc-by-sa-3.0,2.5,2.0,1.0|author=Person}}</syntaxhighlight>
| {{Self|GFDL|cc-by-sa-3.0,2.5,2.0,1.0|author=Person}}
| {{Self|GFDL|cc-by-sa-3.0,2.5,2.0,1.0|author=Person}}
|}
|}
Line 40: Line 39:
To create a new translation of this template, create a new subpage with the correct language code and use this syntax:
To create a new translation of this template, create a new subpage with the correct language code and use this syntax:


<source lang="html5">
<syntaxhighlight lang="html5">
{{Self/layout | lang = {{subst:SUBPAGENAME}}
{{Self/layout | lang = {{subst:SUBPAGENAME}}
  | text = '''<!--
  | text = '''<!--
Line 49: Line 48:
  | select = You may select the license of your choice.
  | select = You may select the license of your choice.
}}<noinclude>{{Translated tag|Self}}</noinclude>
}}<noinclude>{{Translated tag|Self}}</noinclude>
</source>
</syntaxhighlight>


<includeonly>
<includeonly>

Latest revision as of 19:54, 19 September 2021

This documentation subpage contains instructions, categories, or other information that is not part of the template. To view the Template page itself, see Template:Self.

Usage

This template supports the inclusion of up to 6 licenses.

Variable Effect
author = The author (optional parameter, do not use if you are the effective author)
1 = First license template
2 = Second license template (optional)

Examples of usage

Wiki code Effect
{{Self|cc-by-sa-2.5}}
I, the copyright holder of this work, hereby publish it under the following license:
CC
BY SA
⧼wm-license-cc-by-sa-2.5-text⧽
{{Self|GFDL|cc-by-sa-3.0,2.5,2.0,1.0}}
I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head ⧼Wm-license-gfdl-1.2-and-later⧽

⧼wm-license-cc-wiki-link⧽
⧼wm-license-cc-conditions-attribution-header⧽ ⧼wm-license-cc-conditions-share_alike-header⧽
⧼wm-license-cc-by-sa-3.0-2.5-2.0-1.0-text⧽
⧼wm-license-cc-free⧽
  • ⧼wm-license-cc-free-to-share-header⧽: ⧼wm-license-cc-free-to-share-text⧽
  • ⧼wm-license-cc-free-to-remix-header⧽: ⧼wm-license-cc-free-to-remix-text⧽

⧼wm-license-cc-conditions⧽
  • ⧼wm-license-cc-conditions-attribution-header⧽: ⧼wm-license-cc-conditions-attribution-text⧽
  • ⧼wm-license-cc-conditions-share_alike-header⧽: ⧼wm-license-cc-conditions-share_alike-text⧽
You may select the license of your choice.
{{Self|GFDL|cc-by-sa-3.0,2.5,2.0,1.0|author=Person}}
Person, the copyright holder of this work, has published or hereby publishes it under the following licenses:
GNU head ⧼Wm-license-gfdl-1.2-and-later⧽

⧼wm-license-cc-wiki-link⧽
⧼wm-license-cc-conditions-attribution-header⧽ ⧼wm-license-cc-conditions-share_alike-header⧽
⧼wm-license-cc-by-sa-3.0-2.5-2.0-1.0-text⧽
⧼wm-license-cc-free⧽
  • ⧼wm-license-cc-free-to-share-header⧽: ⧼wm-license-cc-free-to-share-text⧽
  • ⧼wm-license-cc-free-to-remix-header⧽: ⧼wm-license-cc-free-to-remix-text⧽

⧼wm-license-cc-conditions⧽
  • ⧼wm-license-cc-conditions-attribution-header⧽: ⧼wm-license-cc-conditions-attribution-text⧽
  • ⧼wm-license-cc-conditions-share_alike-header⧽: ⧼wm-license-cc-conditions-share_alike-text⧽
You may select the license of your choice.

Internationalization

To create a new translation of this template, create a new subpage with the correct language code and use this syntax:

{{Self/layout | lang = {{subst:SUBPAGENAME}}
 | text = '''<!--
-->{{#if: {{{author|}}} | {{{author|}}} | I }}, the copyright holder of this work,''' <!--
-->{{#if: {{{author|}}} | has published or hereby publishes | hereby publish }} it <!--
-->under the following license{{#if: {{{2|}}} | s |}}:
 | 1 = {{{1|}}} | 2 = {{{2|}}} | 3 = {{{3|}}} | 4 = {{{4|}}} | 5 = {{{5|}}} | 6 = {{{6|}}}
 | select = You may select the license of your choice.
}}<noinclude>{{Translated tag|Self}}</noinclude>