Revision as of 02:15, 17 November 2013 view sourceAnomie (talk | contribs)Edit filter managers, Autopatrolled, Administrators33,956 editsm Changed protection level of Template:Self: Allow templateeditors to edit, per WT:RFPP#Mass protection lowering from "sysop" to "editprotected" (script-assisted edit) ( (indefinite) [Move=Block all non-admin← Previous edit | Revision as of 18:22, 17 November 2013 view source AnomieBOT II (talk | contribs)Bots, Template editors7,225 editsm Unsubstifying template, so {{subst:Self}} results in {{Self|date=...}}Next edit → | ||
Line 1: | Line 1: | ||
{{ {{{|safesubst:}}}#invoke:Unsubst||$N=Self |date=__DATE__ |$B= | |||
{| style="margin:0.5em auto; width:90%; background-color:#f0f0f0; border:2px solid #aaaaaa; padding:2px;" | {| style="margin:0.5em auto; width:90%; background-color:#f0f0f0; border:2px solid #aaaaaa; padding:2px;" | ||
|{{center|'''''{{{author|I}}}, the copyright holder of this work,''' hereby publish{{#if: {{{author|}}}|es|}} it under the following license{{#if: {{{2|}}}|s|}}:''}} | |{{center|'''''{{{author|I}}}, the copyright holder of this work,''' hereby publish{{#if: {{{author|}}}|es|}} it under the following license{{#if: {{{2|}}}|s|}}:''}} | ||
Line 9: | Line 10: | ||
//-->{{#if: {{{6|}}} |{{ {{{6}}}|dw={{{dw|no}}}|date={{{date|}}}|migration={{Self/migration|migration={{{migration|}}}|1={{{1|}}}|2={{{2|}}}|3={{{3|}}}|4={{{4|}}}|5={{{5|}}}|6={{{6|}}}}} }} }}}}<!-- | //-->{{#if: {{{6|}}} |{{ {{{6}}}|dw={{{dw|no}}}|date={{{date|}}}|migration={{Self/migration|migration={{{migration|}}}|1={{{1|}}}|2={{{2|}}}|3={{{3|}}}|4={{{4|}}}|5={{{5|}}}|6={{{6|}}}}} }} }}}}<!-- | ||
//-->{{#if: {{{2|}}}|{{center|{{lang|en|''You may select the license of your choice.''}}}}|}} | //-->{{#if: {{{2|}}}|{{center|{{lang|en|''You may select the license of your choice.''}}}}|}} | ||
|}<includeonly>]</includeonly><noinclude> | |}<includeonly>]</includeonly> | ||
}}<noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 18:22, 17 November 2013
{
Template documentation[view] [edit] [history] [purge]This template uses Lua: |
This template is used on approximately 46,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Using this template in lists (i.e. using * {{self|cc-by-3.0}} ) is discouraged. Doing so will lead to lint errors. |
This template accepts licenses as unnamed parameters, which should be the names of image license templates, and displays them as options to choose between in a multi-license. If the image was not uploaded by its author, you can change "I" at the start of the template to another name by setting the author= parameter.
The optional migration= parameter corresponds to keywords in the {{License migration}} template series and is used to track the license update process for GFDL images.
Here are 4 examples of multi-license templates along with links to their component parts:
{{Self |cc-by-sa-3.0| GFDL}} |
{{Self |cc-by-sa-3.0,2.5,2.0,1.0 |GFDL}} |
{{Self |cc-by-sa-3.0}} |
{{Self |cc-by-3.0}} |
Here below is what the first example template produces when saved in an image page.
{{Self |cc-by-sa-3.0| GFDL}}
produces:
{
Limitations
This template cannot be used on a line that starts with *
or #
. Doing so will cause syntax errors on the rendered page.
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Category: