This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
This template uses Lua: |
Sometimes articles have both Commons articles (galleries) and categories about them. This template can be used to generate a right-aligned (default) message box link to a Commons gallery and a Commons category. It is intended for use in the "External links" section of an article.
{{Commons and category|CommonsGalleryName|CommonsCategoryName}}
Please note that the Commons gallery (1st parameter) or the Commons category (2nd parameter) are both optional: if either is left blank, the template will search for them in Wikidata.
There are two optional parameters:
|position=
-- can specify whether the box is shifted to the left of the article|linktext=
-- can override the text in the main linkGenerally:
Specifically:
{{Commons and category|Automobile|Automobiles}}
{{Commons and category}}
when placed on Car (gallery and category both in wikidata):{{Commons and category}}
when placed on Beinn an Dòthaidh (only category in wikidata):{{Commons and category}}
when placed on Samuel Baker House (only gallery in wikidata):{{Commons and category}}
when placed on Chicago Lawn, Chicago (neither gallery nor category in wikidata):