Template:Commonsfile: Difference between revisions

From Cybis Wiki
Jump to navigation Jump to search
No edit summary
(Undo revision 920 by Taxelson (Talk))
 
(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>


==Användning==
==Using==
<pre>
<pre>
{{Commonsfile|Filename|Text}}
{{Commonsfile|Filename|Text}}
</pre>
</pre>
This template makes a link to a file on  Wikimedia Commons. To create a link to a file {{Template|Commonsfile|file name|Text}} (Note: white space inside the file name have to be replaced with "_")
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:

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