Difference between revisions of "Template:Wikipedia file source"

From WikiChem
Jump to: navigation, search
(Created page with '<span class="plainlinks">[http://upload.wikimedia.org/wikipedia/en/{{{id|}}}/{{anchorencode:{{{name}}}}} This version]</span> of the Wikipedia file "<span class="plainlinks">[htt…')
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span class="plainlinks">[http://upload.wikimedia.org/wikipedia/en/{{{id|}}}/{{anchorencode:{{{name}}}}} This version]</span> of the Wikipedia file "<span class="plainlinks">[http://en.wikipedia.org/wiki/File:{{anchorencode:{{{name}}}}} File:{{{name}}}]</span>"<includeonly>[[Category:Files imported from Wikipedia|{{PAGENAME}}]]</includeonly><noinclude>
+
{{#if:{{{url|}}}{{{id|}}}|<span class="plainlinks">[{{{url|http://upload.wikimedia.org/wikipedia/en/{{{id}}}{{anchorencode:{{{name}}}}}}}} This version]</span> of the|The}} Wikipedia file "<span class="plainlinks">[http://en.wikipedia.org/wiki/File:{{anchorencode:{{{name}}}}} File:{{{name}}}]</span>"<includeonly>[[Category:Files imported from Wikipedia|{{PAGENAME}}]]</includeonly><noinclude>
  
[[Category:Attribution templates|{{PAGENAME}}]]
+
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 23:52, 16 August 2009

The Wikipedia file "File:{{{name}}}"

[edit] [purge] Template-info-500px.png Template documentation

Usage

Wikipedia file source is used in the source parameter of {{fileinfo}} when the file has been imported from Wikipedia.

Parameters

Required

  • name = the original name of the file on Wikipedia (with the "File:" prefix)

Optional

  • id = the server code of the version which was uploaded e.g.:
http://upload.wikimedia.org/wikipedia/commons/4/4c/Template-info.svg gives id = 4/4c/
http://upload.wikimedia.org/wikipedia/commons/archive/4/4c/20070309024454%21Template-info.svg gives id = 4/4c/20070309024454%21

See also

Error creating thumbnail: Unable to save thumbnail to destination
This template is currently licensed under the Creative Commons Attribution 3.0 Unported license and any later versions of that license.