Template:Self/doc: Difference between revisions
(clean up) |
(line spacing) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> This template accepts up to 6 licenses (the first 6 unnamed parameters, which should be the names of image license templates), and displays them as options to choose between in a multi-license. | {{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> This template accepts up to 6 licenses (the first 6 unnamed parameters, which should be the names of image license templates), and displays them as options to choose between in a multi-license. | ||
'''Option:''' Set the ''attribution='' parameter to specify | '''Option:''' Set the ''attribution='' parameter to specify how you want your image attributed. The attribution parameter only displays in Creative Commons (CC)license tags. | ||
Here are 4 examples of multi-license templates along with links to their component parts: | Here are 4 examples of multi-license templates along with links to their component parts: | ||
| Line 7: | Line 7: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| <nowiki>{{</nowiki>[[Template:Self|Self]]<nowiki>|</nowiki>[[Template:Cc-by-sa-3.0|cc-by-sa-3.0]]<nowiki>|</nowiki>[[Template:GFDL|GFDL]]<nowiki>}}</nowiki> | | <nowiki>{{</nowiki>[[Template:Self|Self]] <nowiki>|</nowiki>[[Template:Cc-by-sa-3.0|cc-by-sa-3.0]]<nowiki>|</nowiki> [[Template:GFDL|GFDL]]<nowiki>}}</nowiki> | ||
|- | |- | ||
| <nowiki>{{</nowiki>[[Template:Self|Self]]<nowiki>|</nowiki>[[Template:Cc-by-sa-2.5|cc-by-sa-2.5]]<nowiki>|</nowiki>[[Template:GFDL|GFDL]]<nowiki>|</nowiki>attribution=Pecos Bill, cowboy<nowiki>}}</nowiki> | | <nowiki>{{</nowiki>[[Template:Self|Self]] <nowiki>|</nowiki>[[Template:Cc-by-sa-2.5|cc-by-sa-2.5]] <nowiki>|</nowiki>[[Template:GFDL|GFDL]] <nowiki>|</nowiki>attribution=Pecos Bill, cowboy<nowiki>}}</nowiki> | ||
|- | |- | ||
| <nowiki>{{</nowiki>[[Template:Self|Self]]<nowiki>|</nowiki>[[Template:Cc-by-sa-3.0|cc-by-sa-3.0]]<nowiki>}}</nowiki> | | <nowiki>{{</nowiki>[[Template:Self|Self]] <nowiki>|</nowiki>[[Template:Cc-by-sa-3.0|cc-by-sa-3.0]]<nowiki>}}</nowiki> | ||
|- | |- | ||
| <nowiki>{{</nowiki>[[Template:Self|Self]]<nowiki>|</nowiki>[[Template:Cc-by-3.0|cc-by-3.0]]<nowiki>|</nowiki>attribution=Sam McGee, Tn<nowiki>}}</nowiki> | | <nowiki>{{</nowiki>[[Template:Self|Self]] <nowiki>|</nowiki>[[Template:Cc-by-3.0|cc-by-3.0]] <nowiki>|</nowiki>attribution=Sam McGee, Tn<nowiki>}}</nowiki> | ||
|} | |} | ||
Here below is what the first example template produces when saved in an image page. | Here below is what the first example template produces when saved in an image page. | ||
:<nowiki>{{Self|cc-by-sa-3.0|GFDL}}</nowiki> | :<nowiki>{{Self |cc-by-sa-3.0| GFDL}}</nowiki> | ||
produces | produces | ||
{{Self|cc-by-sa-3.0|GFDL}} | {{Self |cc-by-sa-3.0| GFDL}} | ||
<includeonly> | <includeonly> | ||
| Line 29: | Line 29: | ||
<!-- ADD INTERWIKIS BELOW THIS LINE --> | <!-- ADD INTERWIKIS BELOW THIS LINE --> | ||
</includeonly | </includeonly> | ||
Revision as of 15:56, 17 March 2012
|
|
This is a documentation subpage for Template:Self (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
This template accepts up to 6 licenses (the first 6 unnamed parameters, which should be the names of image license templates), and displays them as options to choose between in a multi-license.
Option: Set the attribution= parameter to specify how you want your image attributed. The attribution parameter only displays in Creative Commons (CC)license tags.
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-2.5 |GFDL |attribution=Pecos Bill, cowboy}} |
| {{Self |cc-by-sa-3.0}} |
| {{Self |cc-by-3.0 |attribution=Sam McGee, Tn}} |
Here below is what the first example template produces when saved in an image page.
- {{Self |cc-by-sa-3.0| GFDL}}
produces
|