Difference between revisions of "Template:Commons category/doc"

From LIMSWiki
Jump to navigationJump to search
m (1 revision)
 
(Updated.)
 
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}
{{high-risk|230,000+}}
{{Message_box |id = |halign = |malign = |backgroundcolor = |image  =Nuvola mimetypes info.png|30px |heading = |message =Note how misspelled words seem to be valid links to Wikimedia. Check spelling carefully.}}
{{Message_box |id = |halign = |malign = |backgroundcolor = |image  =Nuvola mimetypes info.png|30px |heading = |message =Note how misspelled words seem to be valid links to Wikimedia. Check spelling carefully.}}
<!--[WP:Database_reports] transclusions-->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{hatnote|This template is part of [[Wikipedia:Wikimedia sister projects|Wikimedia sister projects]].}}


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.
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 ===
=== Usage ===
Line 20: Line 18:
|}
|}


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 "<code>Category:</code>" 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 two parameters ''catnam'' and ''shownam'' (1 & 2) are optional, and are intended for cases where the Commons category name is different from the LIMSwiki page name. The first parameter is the name of the corresponding category on the Wikimedia Commons, ''without'' the "<code>Category:</code>" 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 LIMSwiki page name would typically be used.


The parameter "position=" accepts one value, <code>left</code>, that moves the box to the left side, instead of the default right side. More information may be found at <code>{{tl|Side box}}</code>.
The parameter "position=" accepts one value, <code>left</code>, that moves the box to the left side, instead of the default right side. More information may be found at <code>{{tl|Side box}}</code>.
Line 35: Line 33:
{{cross}} '''Do not place this template in a section containing columns.'''
{{cross}} '''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 [[WP:EL|external links]] section exists.  On [[WP:DAB|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 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.


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.
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 ===
=== See also ===
Line 47: Line 45:
<includeonly>
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Exclude in print]]
[[Category:Interwiki category linking templates]]
[[Category:Interwiki category linking templates]]
[[Category:Interwiki link templates]]
[[Category:Interwiki link templates]]
[[Category:Wikimedia Commons templates]]
[[Category:Wikimedia Commons templates]]


[[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]]
[[en:Template:Commons category]]
[[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:Commonscat]]
[[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:同享類]]
</includeonly>
</includeonly>

Latest revision as of 02:22, 31 May 2013


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

{{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 LIMSwiki 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 LIMSwiki 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

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.

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