Template:Commonsfile: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
'''<FONT COLOR=#98030d>Wikimedia Commons file:</FONT>''' [http://commons.wikimedia.org/wiki/File:{{UCFIRST:{{{1|{{PAGENAME}}}}}}} {{{2|{{{1|{{PAGENAME}}}}}}}}]<noinclude> | '''<FONT COLOR=#98030d>Wikimedia Commons file:</FONT>''' [http://commons.wikimedia.org/wiki/File:{{UCFIRST:{{{1|{{PAGENAME}}}}}}} {{{2|{{{1|{{PAGENAME}}}}}}}}]<noinclude> | ||
== | ==Using== | ||
<pre> | <pre> | ||
{{Commonsfile|Filename|Text}} | {{Commonsfile|Filename|Text}} | ||
</pre> | </pre> | ||
This template | This template creates a link to a '''File''' at Wikimedia Commons. | ||
''Text'' is optional, and if left empty, a link based on the actual page name will be created (which is normally not useful!). | |||
'''Note: '''Unfortunately " " in the page name does not work, and need to be replaced by "_". If you want to link a file named "Pinus sylvestris.JPG" you have to write "Pinus_sylvestris.JPG". (If you know how to solve this problem, please do it!) | |||
'''Related templates''': | |||
*{{mall|commons}} (links to a commons '''Page''') | |||
*{{mall|commonscat}} (links to a commons '''Category''') | |||
'''Don't forget that links are case sensitive!!!''') | |||
[[Category:External link templates]] | [[Category:External link templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 10:26, 31 May 2009
Wikimedia Commons file: Commonsfile
Using
{{Commonsfile|Filename|Text}}
This template creates a link to a File at Wikimedia Commons.
Text is optional, and if left empty, a link based on the actual page name will be created (which is normally not useful!).
Note: Unfortunately " " in the page name does not work, and need to be replaced by "_". If you want to link a file named "Pinus sylvestris.JPG" you have to write "Pinus_sylvestris.JPG". (If you know how to solve this problem, please do it!)
Related templates:
- {{commons}} (links to a commons Page)
- {{commonscat}} (links to a commons Category)
Don't forget that links are case sensitive!!!)