Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Location  





3 Defaults  





4 Examples  





5 Template data  





6 Tracking categories  



6.1  Normal categories  





6.2  Maintenance categories  







7 See also  














Template:Commons






Acèh
Адыгэбзэ
Afrikaans
ak:Nhwɛsode:Commons
Alemannisch

Anarâškielâ
ि
Ænglisc
Аԥсшәа
العربية
Aragonés
ܐܪܡܝܐ
Արեւմտահայերէն
Armãneashti
Arpetan

Asturianu
Avañe'
Aymar aru
تۆرکجه
Basa Bali
Bamanankan

Banjar
 / Bân-lâm-gú
Basa Banyumasan
Башҡортса
Беларуская (тарашкевіца)
Bikol Central
Bislama
Български
Boarisch

Bosanski
Brezhoneg
Буряад
Català
Чӑвашла
Cebuano
Čeština
Chavacano de Zamboanga
Chi-Chewa
ChiTumbuka
Cymraeg
Dansk
Davvisámegiella
Deitsch
Deutsch
ދިވެހިބަސް
Diné bizaad
Dolnoserbski

Eesti
Ελληνικά
Emiliàn e rumagnòl
Эрзянь
Español
Esperanto
Euskara
Eʋegbe
فارسی
Fiji Hindi
Føroyskt
Français
Frysk
Fulfulde
Furlan
Gaeilge
Gaelg
Gagauz
Gàidhlig
Galego

Gĩkũyũ

/Hak-kâ-ngî
Хальмг

Hawaiʻi
Հայերեն
ि
Hornjoserbsce
Hrvatski
Ido
Ilokano
িি ি
Bahasa Indonesia
Interlingua
Interlingue
 / inuktitut
Iñupiatun
Ирон
IsiXhosa
IsiZulu
Íslenska
Italiano
עברית
Jawa
Kalaallisut

Kapampangan
Къарачай-малкъар

Kaszëbsczi
Қазақша
Kernowek
Ikinyarwanda
Ikirundi
Kiswahili
Коми
Kreyòl ayisyen
Kurdî
Кыргызча
Кырык мары
Ladino
Лакку

Latgaļu
Latina
Latviešu
Lëtzebuergesch
Лезги
Lietuvių
Limburgs
Lingála
Lombard
Magyar
Madhurâ
ि
Македонски
Malagasy

Malti
Māori


مصرى

مازِرونی
Bahasa Melayu
Minangkabau
 / Mìng-dĕ̤ng-nḡ
Mirandés
Мокшень
Монгол

Nāhuatl
Na Vosa Vakaviti
Nederlands
Nedersaksies
Nēhiyawēwin / 

 

Нохчийн
Nordfriisk
Norfuk / Pitkern
Norsk bokmål
Norsk nynorsk
Occitan
Олык марий
ି
Oromoo
Oʻzbekcha / ўзбекча

ि
Pälzisch
Pangasinan
Pangcah
پنجابی

پښتو
Patois
Перем коми

Picard
Tok Pisin
Plattdüütsch
Polski
Ποντιακά
Português
Qaraqalpaqsha
Qırımtatarca
Reo tahiti
Ripoarisch
Română
Rumantsch
Runa Simi
Русиньскый
Русский
Саха тыла
Sakizaya

Sardu
Scots
Seeltersk
Sesotho
Sesotho sa Leboa
Setswana
Shqip
Sicilianu

Simple English
سنڌي
SiSwati
Slovenčina
Slovenščina
Ślůnski
کوردی
Српски / srpski
Srpskohrvatski / српскохрватски
Sunda
Suomi
Svenska
Tagalog
ி
Taqbaylit
Татарча / tatarça
 

Tetun


Тоҷикӣ
Lea faka-Tonga

Türkçe
Türkmençe
Удмурт
Basa Ugi
Українська
اردو
ئۇيغۇرچە / Uyghurche
Vepsän kel
Tiếng Vit
Volapük
Võro
Walon

West-Vlams
Winaray
Wolof

Xitsonga
Yorùbá

Zazaki
Zeêuws
Žemaitėška

Batak Toba
Tolışi
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Meta-Wiki
Wikispecies
Wikibooks
Wikimania
Wikinews
Wikiquote
Wikiversity
Wikivoyage
Wiktionary
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Common)

This template is part of Wikipedia's sister projects. This template links an article to a page on Wikimedia Commons. Without any arguments, the template uses Wikidata to automatically link to an available gallery or category (if gallery is not available). With an argument, the template links to the named gallery.

Usage

{{Commons}} —puts link-box with current page's name.
{{Commons|pagename}} —puts link-box connecting title pagename.
{{Commons|pagename|showname}} —puts link-box showing the title showname.
{{Commons|pagename|position=left}} —floats link-box to the left side.

To place this template on the page, type {{Commons|pagename}}, where pagename is the name of a page on Wikimedia Commons (defaults to "{{PAGENAME}}", the end-name of a page where used).

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.

Generally:

☒N Do not place this template in a section all by itself without floating left.
☒N Do not place this template in a section containing columns without floating left.
☒N Do not indent this template with colon (:) or a bullet (*) markup.

Specifically:

Defaults

The pagename defaults to wiki-variable "{{PAGENAME}}", which is the end-name of the page where used. For a Template:Txxx, the {{PAGENAME}} would be the end-name "Txxx". For a Category:Catxxx, that page would have {{PAGENAME}} as the end-name "Catxxx".

The default positioning of the link-box is to the right-side.

Examples

{{Commons}}

produces

{{Commons|Reconquista}}

produces

{{Commons|Category:Reconquista}}

produces

{{Commons|Reconquista|retaking of the Iberian Peninsula}}

produces

{{Commons|Reconquista|position=left}}

produces

Template data

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Commons in articles based on its TemplateData.

TemplateData for Commons

Creates a small box with a link to a related page on Wikimedia Commons.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Pagename1

The page name on Commons. The article's page name is used as a default.

Stringoptional
Showname2

Optional displayed link text.

Stringoptional
Positionposition

Position to display the box: 'left' floats the box to the left rather than the default which is on the right.

Stringoptional

Tracking categories

Normal categories

Maintenance categories

See also

  • {{Commons}}—shows Commons box
  • {{Commons-inline}}—shows Commons gallery inline
  • {{Commons category}}—shows Commons category box
  • {{Commons category-inline}}—shows Commons category inline
  • {{Commons category multi}}—to list up to six categories
  • {{Commons and category}}—shows Commons box with both gallery and category
  • {{Commons and category inline}}—shows Commons gallery and category inline
  • {{Copy to Wikimedia Commons}}
  • {{Wikimedia Commons redirect}}—specialized soft redirect template for Commons
  • {{Wiki category}}—to link to a gallery hosted on Wikipedia
  • mw:Manual:Pywikibot/commonscat.py
  • {{Wikibooks}} / {{Wikibooks inline}}
  • {{Wikinews}} / {{Wikinews inline}}
  • {{Wikiquote}} / {{Wikiquote-inline}}
  • {{Wikisource}} / {{Wikisource-inline}}
  • {{Wikispecies}} / {{Wikispecies-inline}}
  • {{Wikiversity}} / {{Wikiversity inline}}
  • {{Wikivoyage}} / {{Wikivoyage inline}}
  • {{Wiktionary}} / {{Wiktionary-inline}}

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Commons&oldid=1022519793"

    Categories: 
    Lua-based templates
    Interwiki link sidebar templates
    Wikimedia Commons templates
    Hidden categories: 
    Wikipedia template-protected templates
    Templates using TemplateData
     



    This page was last edited on 10 May 2021, at 23:47 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki