Template:Commonsfile: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
{{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!!!)