Template:Commons and category/doc
< Template:Commons and category
Jump to navigation
Jump to search
Revision as of 07:05, 24 March 2020 by imported>Hike395 (→Usage: update)
| This is a documentation subpage for Template:Commons and category. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Contents
Usage
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.
Format
{{Commons and category|CommonsGalleryName|CommonsCategoryName}}
Please note that if the Commons gallery (1st parameter) or the Commons category (2nd parameter) are optional: if left blank, the template will search for them in Wikidata. There is also an optional parameter for |position=.
Example
{{Commons and category|Automobile|Automobiles}}
See also
- Template:Commons
- Template:Commons-inline - shows Commons gallery inline
- Template:Commons category
- Template:Commons category-inline - shows Commons category inline
- Template:Commons category multi - to list up to 6 categories
- Template:Commons and category-inline - shows Commons gallery and category inline
- Template:Sister project links - to link all Wikinews, Wikisource, etc.
- Template:Wikimedia Commons redirect - specialized soft redirect template for Commons