Difference between revisions of "Template:Commons file source/doc"
Physchim62 (talk | contribs) (Created page with '<noinclude>{{PAGENAME}}</noinclude><includeonly> {{PAGENAME}} </includeonly>') |
Physchim62 (talk | contribs) (→See also) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude><includeonly> | + | ===Usage=== |
+ | '''Commons file source''' is used in the <code>source</code> parameter of {{tl|fileinfo}} when the file has been imported from Wikimedia Commons. | ||
+ | |||
+ | ===Parameters=== | ||
+ | ====Required==== | ||
+ | *'''<code>name</code>''' = ''the original name of the file on Wikimedia Commons'' (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|Wikipedia 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 17:56, 13 August 2009
Usage
Commons file source is used in the source
parameter of {{fileinfo}} when the file has been imported from Wikimedia Commons.
Parameters
Required
name
= the original name of the file on Wikimedia Commons (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
givesid = 4/4c/
http://upload.wikimedia.org/wikipedia/commons/archive/4/4c/20070309024454%21Template-info.svg
givesid = 4/4c/20070309024454%21