Template:Commonscat: Difference between revisions

From Cybis Wiki
Jump to navigation Jump to search
(Created page with '<div class="plainlinks" style="display: inline;"> * '''<FONT COLOR=#146598>Wikimedia <FONT COLOR=#98030d>Commons</FONT>'''</FONT> contains media related to [{{localurl:Commons:Ca...')
 
(→‎Användning: översätter)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="plainlinks" style="display: inline;">
'''<FONT COLOR=#146598>Wikimedia </FONT><FONT COLOR=#98030d>Commons</FONT>''' contains a media category related to [http://commons.wikimedia.org/wiki/Category:{{UCFIRST:{{{1|{{PAGENAME}}}}}}} {{{2|{{{1|{{PAGENAME}}}}}}}}]<noinclude>
* '''<FONT COLOR=#146598>Wikimedia <FONT COLOR=#98030d>Commons</FONT>'''</FONT> contains media related to [{{localurl:Commons:Category:{{{1|{{PAGENAME}}}}}}}?uselang=sv {{{2|{{PAGENAME}}}}}]  
</div><noinclude>
<br clear="all">


==Användning==
==Användning==
Line 8: Line 5:
{{Commonscat|Commonskategori|Text}}
{{Commonscat|Commonskategori|Text}}
</pre>
</pre>
Denna mall skapar en länk till en kategori på Wikimedia Commons.  
==How to use==
{{mall|Commonscat|Commonscategory name|Text}}
This template creates a link to a '''Category''' at Wikimedia Commons.  


''Text'' är frivillig, utan den används artikelnamnet som text. Även ''Commonskategori'' är frivillig, och artikelnamnet används annars som Commonskategori.
''Text'' is optional, and if left empty, a link based on the actual page name will be created.  
[[Kategori:Interwikimallar|{{PAGENAME}}]]
 
'''Note: '''Unfortunately " " in the page name does not work, and need to be replaced by "_". If you want to link the commons page "Pinus sylvestris" you have to write "Pinus_sylvestris" as Common page name even if you are on the page [[Pinus sylvestris]]. (If you know how to solve this problem, please do it!)
 
'''Related templates''':  
*{{mall|commons}} (links to a commons '''page''')
*{{mall|commonsfile}} (links to a single commons '''file''')
 
'''Don't forget that links are case sensitive!!!''') 
 
[[Category:External link templates]]
 
 
</noinclude>

Latest revision as of 18:44, 21 May 2009

Wikimedia Commons contains a media category related to Commonscat

Användning

{{Commonscat|Commonskategori|Text}}

How to use

{{Commonscat|Commonscategory name|Text}} This template creates a link to a Category at Wikimedia Commons.

Text is optional, and if left empty, a link based on the actual page name will be created.

Note: Unfortunately " " in the page name does not work, and need to be replaced by "_". If you want to link the commons page "Pinus sylvestris" you have to write "Pinus_sylvestris" as Common page name even if you are on the page Pinus sylvestris. (If you know how to solve this problem, please do it!)

Related templates:

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