You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Template:Self/doc: Difference between revisions
Jump to navigation
Jump to search
imported>MGA73 (Licensing templates) |
imported>Quiddity m (fixes) |
||
Line 27: | Line 27: | ||
!scope="col"| Effect | !scope="col"| Effect | ||
|- | |- | ||
| < | | <syntaxhighlight lang="html5">{{Self|cc-by-sa-2.5}}</syntaxhighlight> | ||
| {{Self|cc-by-sa-2.5}} | | {{Self|cc-by-sa-2.5}} | ||
|- | |- | ||
| < | | <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}} | ||
|- | |- | ||
| < | | <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 40: | ||
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: | ||
< | <syntaxhighlight lang="html5"> | ||
{{Self/layout | lang = {{subst:SUBPAGENAME}} | {{Self/layout | lang = {{subst:SUBPAGENAME}} | ||
| text = '''<!-- | | text = '''<!-- | ||
Line 49: | Line 49: | ||
| 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> | ||
</ | </syntaxhighlight> | ||
<includeonly> | <includeonly> |
Revision as of 19:05, 4 September 2021
Language: | English |
---|
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
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>