Difference between revisions of "Template:Wikimedia file"
From Kerbal Space Program Wiki
m (!we need the namespace;) |
(+support for different licenses;) |
||
Line 3: | Line 3: | ||
Source: [[{{{project|commons}}}:{{{original|{{FULLPAGENAME}}}}}|Wikimedia Commons]] by {{{author|[[{{{project|commons}}}:User:{{{user}}}|{{{full user|{{{user}}}}}}]]}}} | Source: [[{{{project|commons}}}:{{{original|{{FULLPAGENAME}}}}}|Wikimedia Commons]] by {{{author|[[{{{project|commons}}}:User:{{{user}}}|{{{full user|{{{user}}}}}}]]}}} | ||
− | License: {{{license|[http://creativecommons.org/licenses/by-sa/3.0/deed.en CC-BY-SA]}}}<includeonly>[[Category:Wikimedia files]]</includeonly><noinclude> | + | License: {{#switch: {{{license|BY-SA}}} |
+ | |BY-SA=[http://creativecommons.org/licenses/by-sa/3.0/deed.en CC-BY-SA] | ||
+ | |PD=[[w:Public domain|Public domain]] | ||
+ | |#default={{{license}}}}}<includeonly>[[Category:Wikimedia files]]</includeonly><noinclude> | ||
---- | ---- | ||
Automatically adds the file to [[:Category:Wikimedia files]]. | Automatically adds the file to [[:Category:Wikimedia files]]. | ||
Line 14: | Line 17: | ||
{{Parameter Row|original|Complete original file name.|<nowiki>{{FULLPAGENAME}}</nowiki>}} | {{Parameter Row|original|Complete original file name.|<nowiki>{{FULLPAGENAME}}</nowiki>}} | ||
{{Parameter Row|full user|Alternative user name which will be displayed.|{{{user}}}}} | {{Parameter Row|full user|Alternative user name which will be displayed.|{{{user}}}}} | ||
− | {{Parameter Row|license|The license of the original file.| | + | {{Parameter Row|license|The license of the original file.|<tt>BY-SA</tt>}} |
}} | }} | ||
+ | |||
+ | It supports the following texts for the license: | ||
+ | * <tt>BY-SA</tt> (default): [http://creativecommons.org/licenses/by-sa/3.0/deed.en CC-BY-SA] | ||
+ | * <tt>PD</tt>: [[w:Public domain|Public domain]] | ||
+ | If the license is not listed it shows the value directly. | ||
+ | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 23:38, 17 November 2013
{{{description}}}
Source: Wikimedia Commons by [[commons:User:{{{user}}}|{{{user}}}]]
License: CC-BY-SA
Automatically adds the file to Category:Wikimedia files.
It supports the following texts for the license:
- BY-SA (default): CC-BY-SA
- PD: Public domain
If the license is not listed it shows the value directly.