Template:Commons category-inline/sandbox

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Media related to Commons category-inline/sandbox at Wikimedia Commons

Template documentation[view] [edit] [history] [purge]

Purpose[edit]

This template can be used to generate a link to a Commons category. It is intended for use in the "External links" section of an article.

Usage[edit]

{{Commons category-inline|Ursus maritimus}}

yields: Media related to Ursus maritimus at Wikimedia Commons


{{Commons category-inline|Ursus maritimus|Polar bears}}

yields: Media related to Polar bears at Wikimedia Commons

TemplateData[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for Commons category-inline

This template creates a link to a category on Commons.

Template parameters

Parameter Description Type Status
Category name 1

The name of the Commons category this template will link to. If no value is provided the Wikidata property P373 or page name is used by default.

Default
empty
Example
empty
Auto value
empty
String optional
Displayed text 2

The text that the link will display to the user. If no value is provided it will default to category name or page name, in that order.

Default
empty
Example
empty
Auto value
empty
String optional

Tracking categories[edit]

See also[edit]