Permanently protected template

Template:Commons category-inline

From Wikipedia, the free encyclopedia

Media related to Commons category-inline at Wikimedia Commons

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

Purpose

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

{{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


{{Commons category-inline|Ursus maritimus|''Ursus maritimus''}}

yields: Media related to Ursus maritimus at Wikimedia Commons

TemplateData

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

See the monthly error report for this template.

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

See also

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Commons_category-inline&oldid=770681412"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/Template:Commons_category-inline
This page is based on the copyrighted Wikipedia article "Template:Commons category-inline"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA