Template:Commonscat: Difference between revisions

From Cybis Wiki
Jump to navigation Jump to search
No edit summary
(→‎Användning: översätter)
 
Line 5: 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.  
 
'''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]]
[[Category:External link templates]]
{{translate}}
 


</noinclude>
</noinclude>

Latest revision as of 17: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!!!)