Template:Commons and category inline
Media related to Commons and category inline at Wikimedia Commons
| This template uses Lua: |
Purpose
Sometimes articles have both Commons articles (galleries) and categories about them. This template can be used to generate an inline link to a Commons gallery and a Commons category. It is intended for use in the "External links" section of an article.
Usage
This template takes two optional parameters: the Commons gallery and the category. If either of these is left blank, the template searches for them in wikidata. There are a number of other optional parameters, described below:
Format
* {{Commons and category inline|CommonsArticleName|CommonsCategoryName}}
Normal usage
* {{Commons and category inline|Ursus maritimus|Ursus maritimus}}
Media related to Ursus maritimus (category) at Wikimedia Commons
* {{Commons and category}} when placed on Car article (gallery and category both in wikidata):
Media related to Automobile (category) at Wikimedia Commons
* {{Commons and category}} when placed on Beinn an Dòthaidh article (only category in wikidata):
Media related to Beinn an Dòthaidh at Wikimedia Commons
* {{Commons and category}} when placed on Samuel Baker House article (only gallery in wikidata):
Media related to Samuel Baker House (category) at Wikimedia Commons
* {{Commons and category}} when placed on Chicago Lawn, Chicago article (neither gallery nor category in wikidata):
Media related to Chicago Lawn at Wikimedia Commons
Other parameters
- Override link text
* {{Commons and category inline|Foobar|Foobar|linktext=Foo}}
- Full link override
* {{Commons and category inline|links=[[commons:Foo|Foo]] and [[commons:Category:Bar|Bar]]}}
- List format
* {{Commons and category inline|list=
** [[commons:Foo|Foo]]
** [[commons:Category:Bar|Bar]]
}}
- Extra text
* {{Commons and category inline|Ursus maritimus|extratext= Extra text}} on Ursus maritimus article
Media related to Ursus maritimus (category) at Wikimedia Commons Extra text
See also
- Wikipedia:Manual of Style/Layout § External links
- {{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 twelve 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
- {{Sister project links}}—to link all Wikinews, Wikisource, etc.
- {{Wikibooks}} / {{Wikibooks inline}}
- {{Wikidata property}}
- {{Wikinews}} / {{Wikinews inline}}
- {{Wikiquote}} / {{Wikiquote inline}}
- {{Wikisource}} / {{Wikisource inline}}
- {{Wikispecies}} / {{Wikispecies inline}}
- {{Wikiversity}} / {{Wikiversity inline}}
- {{Wikivoyage}} / {{Wikivoyage inline}}
- {{Wiktionary}} / {{Wiktionary inline}}
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.