Template:Commonsfile: Difference between revisions

From Cybis Wiki
Jump to navigation Jump to search
(→‎Using: documentation)
(testar att laga)
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:{{{1|{{PAGENAME}}}}} {{{2|{{{1|{{PAGENAME}}}}}}}}]<noinclude>


==Using==
==Using==

Revision as of 10:24, 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:

Don't forget that links are case sensitive!!!)