Template:Commons category

From Recidemia
(Redirected from Template:Commonscat)
Jump to: navigation, search
[edit] [history] [purge] Documentation icon Template documentation

The "Template:Commons category" links to a "Category:" name in the Wikimedia Commons repository (edited using a Wikimedia login name). If that category name is misspelled or missing, the link will still appear "blue" even though the link will fail. Check spelling of names carefully.

Usage[edit]

{{Commons category}} puts link-box with current page's name as the category.
{{Commons category|catnam}} puts link-box connecting title catnam.
{{Commons category|catnam|shownam}} puts link-box showing the title shownam.
{{Commons category |catnam|position=left}} floats link-box to the left side, as option to align box to left-margin.

The two parameters catnam and shownam (1 & 2) are optional, and are intended for cases where the Commons category name is different from the Wikipedia page name. The first parameter is the name of the corresponding category on the Wikimedia Commons, without the "Category:" prefix. If this first parameter is used, then the template will display the Commons category name, which may be confusing to readers. This text can be overridden by the second parameter, where the Wikipedia page name would typically be used.

The parameter "position=" accepts one value, left, that moves the box to the left side, instead of the default right side. More information may be found at {{Side box}}.

For example, on the Polar bear page,

{{Commons category|Ursus maritimus|Polar bears}}
produces a link to Commons:Category:Ursus maritimus displayed as "Polar bears".

Location[edit]

If using a large, graphical template produces odd layout problems, like the excessive white space shown on the right of this screenshot, then switch to a different sister template.

N Do not place this template in a section all by itself.

N Do not place this template in a section containing columns.

In articles, this template should normally be placed at the top of the ==External links== section, if one exists, or at the top of the last section on the page, if no external links section exists. On disambiguation pages, this template is usually placed at the top of the page. See Wikipedia:Wikimedia sister projects#Where_to_place_links for more information and alternatives.

In categories, this template should be grouped with other templates at beginning of the category introduction. This avoids unnecessary white space as any text is floated around the template boxes.

See also[edit]

af:Sjabloon:Commons-kategorie als:Vorlage:Commonscat an:Plantilla:Commonscat ang:Bysen:Commonscat ar:قالب:تصنيف كومنز arz:قالب:Commons cat ast:Plantía:Commonscat az:Şablon:CommonsKat ba:Ҡалып:Commonscat bar:Vorlage:Commonscat bat-smg:Šabluons:Commonscat be:Шаблон:Commonscat bg:Шаблон:Commonscat bjn:Templat:Commonscat bn:টেমপ্লেট:কমন্স বিষয়শ্রেণী br:Patrom:Commonscat ca:Plantilla:Commonscat cbk-zam:Plantilla:Commonscat chr:Template:Commonscat crh:Şablon:CommonsKat cs:Šablona:Commonscat cu:Обраꙁь́ць:Commonscat cv:Шаблон:Commonscat cy:Nodyn:Comin da:Skabelon:Commonscat de:Vorlage:Commonscat diq:Template:Commonscat dv:ފަންވަތް:Commonscat el:Πρότυπο:Commonscat eo:Ŝablono:Commonscat es:Plantilla:Commonscat et:Mall:Commonsi kategooria eu:Txantiloi:Commonskat fa:الگو:ویکی‌انبار-رده fi:Malline:Commonscat fr:Modèle:Commonscat frp:Modèlo:Commonscat fy:Berjocht:Commonscat ga:Teimpléad:Catcómhaoin gd:Template:Commonscat gv:Clowan:Commonscat he:תבנית:Commonscat hi:साँचा:Commonscat hr:Predložak:Commonscat hu:Sablon:Commonskat hy:Կաղապար:Վիքիպահեստ կատեգորիա ia:Patrono:Commonscat id:Templat:Commonscat io:Shablono:Commonscat is:Snið:CommonsCat it:Template:Commonscat ja:Template:Commonscat jv:Cithakan:Commonscat ka:თარგი:Commons cat kaa:Shablon:Commons cat kg:Template:Commonscat kk:Үлгі:Commonscat kl:Ilisserut:Commonscat km:ទំព័រគំរូ:Commonscat kn:ಟೆಂಪ್ಲೇಟು:Commonscat ko:틀:위키공용분류 ksh:Schablon:Commonscat la:Formula:CommuniaCat lad:Xabblón:Commonscat lb:Schabloun:Commonscat lbe:Шаблон:Commonscat li:Sjabloon:Commonscat lo:ແມ່ແບບ:Commonscat lt:Šablonas:Commonscat lv:Veidne:Commonscat mi:Template:Commonscat mk:Шаблон:Ризница-врска ml:ഫലകം:Commonscat mn:Загвар:Commonscat ms:Templat:Kategori Commons nah:Nemachiyōtīlli:Commonscat nds-nl:Mal:Commonscat new:Template:Commonscat nl:Sjabloon:Commonscat nn:Mal:Commonscat no:Mal:Commonscat oc:Modèl:Commonscat os:Шаблон:Commonscat pam:Template:Commonscat pl:Szablon:Commonscat pt:Predefinição:Commonscat qu:Plantilla:Commonscat ro:Format:Commonscat ru:Шаблон:Commonscat sah:Халыып:Commonscat scn:Template:Commonscat sd:سانچو:Commonscat se:Template:Commonscat sh:Šablon:Commonscat si:සැකිල්ල:කොමන්ස්ප්‍රවර් simple:Template:Commonscat sk:Šablóna:Commonscat sl:Predloga:Kategorija v Zbirki so:Template:Commonscat sr:Шаблон:Commonscat su:Citakan:Commonscat sv:Mall:Commonscat sw:Kigezo:Commonscat ta:வார்ப்புரு:Commons category te:మూస:Commonscat th:แม่แบบ:Commonscat tl:Suleras:Commonscat tr:Şablon:Commons kategori tt:Үрнәк:Commonscat udm:Шаблон:Commonscat uk:Шаблон:Commonscat uz:Andoza:Commonscat vi:Bản mẫu:Commonscat vls:Patrôon:Commonscat vo:Samafomot:Commonscat war:Template:Commonscat xal:Кевләр:Commonscat zea:Sjabloon:Commonscat zh:Template:Commonscat zh-classical:Template:共享類 zh-yue:Template:同享類