Template:Self/doc: Difference between revisions
Template page
More actions
m →Internationalization: |lang={{subst:SUBPAGENAME}} |
update autotranslation |
||
| Line 56: | Line 56: | ||
<PRE> | <PRE> | ||
{{Self/layout | {{Self/layout | ||
|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|}}} | |1={{{1|}}} | ||
|2={{{2|}}} | |2={{{2|}}} | ||
| Line 62: | Line 63: | ||
|5={{{5|}}} | |5={{{5|}}} | ||
|6={{{6|}}} | |6={{{6|}}} | ||
|select=You may select the license of your choice. | |||
|lang={{subst:SUBPAGENAME}} | |lang={{subst:SUBPAGENAME}} | ||
}}<noinclude> | }}<noinclude> | ||
{{Self/lang}} | |||
{{translated tag| | {{translated tag|helper}} | ||
</noinclude> | </noinclude> | ||
</PRE> | </PRE> | ||
Revision as of 16:17, 26 December 2008
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 author) |
|
| |
| 1= | First license template |
|
| |
| 2= | Second license template (optional) |
Example usage
| Code | Effect |
|---|---|
| {{Self|cc-by-sa}} | Lua error: expandTemplate: template "cc-by-sa" does not exist. |
|
| |
| Code | Effect |
| {{Self|GFDL|cc-by-sa-3.0,2.5,2.0,1.0}} | Lua error: expandTemplate: template "cc-by-sa-3.0,2.5,2.0,1.0" does not exist. |
|
| |
| {{Self|GFDL|cc-by-sa-3.0,2.5,2.0,1.0|author=Person}} | Lua error: expandTemplate: template "cc-by-sa-3.0,2.5,2.0,1.0" does not exist. |
Internationalization
To create a new language version of this template, create a new subpage and use this code:
{{Self/layout
|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.
|lang={{subst:SUBPAGENAME}}
}}<noinclude>
{{Self/lang}}
{{translated tag|helper}}
</noinclude>