Difference between revisions of "Template:Wikipedia file source/doc"

From WikiChem
Jump to: navigation, search
(Created page with '<noinclude>{{PAGENAME}}</noinclude><includeonly> {{PAGENAME}} </includeonly>')
 
(See also)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude><includeonly>
+
===Usage===
 +
'''Wikipedia file source''' is used in the <code>source</code> parameter of {{tl|fileinfo}} when the file has been imported from Wikipedia.
 +
 
 +
===Parameters===
 +
====Required====
 +
*'''<code>name</code>''' = ''the original name of the file on Wikipedia'' (with the "File:" prefix)
 +
 
 +
====Optional====
 +
*'''<code>id</code>''' = ''the server code of the version which was uploaded'' e.g.:
 +
::<code><nowiki>http://upload.wikimedia.org/wikipedia/commons/4/4c/Template-info.svg</nowiki></code> gives <code>id = 4/4c/</code>
 +
::<code><nowiki>http://upload.wikimedia.org/wikipedia/commons/archive/4/4c/20070309024454%21Template-info.svg</nowiki></code> gives <code>id = 4/4c/20070309024454%21</code>
 +
 
 +
===See also===
 +
*{{tl|Commons file source}}<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude><includeonly>
  
 
[[Category:Attribution templates|{{PAGENAME}}]]
 
[[Category:Attribution templates|{{PAGENAME}}]]
 +
 +
{{CC-BY-3.0}}
 
</includeonly>
 
</includeonly>

Latest revision as of 16:56, 13 August 2009

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