Difference between revisions of "Template:Wikimedia file"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!we need the namespace;)
m (*renamed Parameter Table to Parameter table;)
 
(2 intermediate revisions by 2 users not shown)
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]].
  
{{Parameter Table|name=text|parameters=
+
{{Parameter table|name=text|parameters=
{{Parameter Row|description|Description of the text; recommended to copy the description from the original image}}
+
{{Parameter row|description|Description of the text; recommended to copy the description from the original image}}
{{Parameter Row|user|Original uploading author, copied from the description of the image.}}
+
{{Parameter row|user|Original uploading author, copied from the description of the image.}}
{{Parameter Row|author|Original uploading author without any wikisyntax by default. Alternative of user.}}
+
{{Parameter row|author|Original uploading author without any wikisyntax by default. Alternative of user.}}
{{Parameter Row|project|The Wikimedia project. Needs to be supported by an [[Special:Interwiki|interwiki link]], for example <tt>w:de</tt> would redirect to the German Wikipedia.|<tt>commons</tt> ([[commons:Main Page|Wikimedia Commons]])}}
+
{{Parameter row|project|The Wikimedia project. Needs to be supported by an [[Special:Interwiki|interwiki link]], for example <tt>w:de</tt> would redirect to the German Wikipedia.|<tt>commons</tt> ([[commons:Main Page|Wikimedia Commons]])}}
{{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.|[http://creativecommons.org/licenses/by-sa/3.0/deed.en <tt>CC-BY-SA</tt>]}}
+
{{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>

Latest revision as of 12:15, 19 December 2014

{{{description}}}

Source: Wikimedia Commons by [[commons:User:{{{user}}}|{{{user}}}]]

License: CC-BY-SA


Automatically adds the file to Category:Wikimedia files.

Name Optional Description Default
description No Description of the text; recommended to copy the description from the original image
user No Original uploading author, copied from the description of the image.
author No Original uploading author without any wikisyntax by default. Alternative of user.
project Yes The Wikimedia project. Needs to be supported by an interwiki link, for example w:de would redirect to the German Wikipedia. commons (Wikimedia Commons)
original Yes Complete original file name. {{FULLPAGENAME}}
full user Yes Alternative user name which will be displayed. {{{user}}}
license Yes The license of the original file. BY-SA

It supports the following texts for the license:

If the license is not listed it shows the value directly.