Template:Commons category-inline/doc: Difference between revisions
m (Moving Category:Interwiki link templates - inline to Category:Inline interwiki link templates per Wikipedia:Categories for discussion/Log/2024 September 6#Category:Interwiki link templates - inline)  | 
				m (1 revision imported)  | 
				
(No difference) 
 | |
Latest revision as of 22:49, 17 December 2024
| 
   | 
 This is a documentation subpage for Template:Commons category-inline
(see that page for the template itself). It contains usage information, categories, and other content that is not part of the original template page.  | 
| This template is used on approximately 163,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.  | 
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:
- File:Commons-logo.svg Media related to Lua error in Module:Commons_link at line 62: attempt to index field 'wikibase' (a nil value). at Wikimedia Commons
 
* {{Commons category-inline|Ursus maritimus|Polar bears}}
yields:
- File:Commons-logo.svg Media related to Lua error in Module:Commons_link at line 62: attempt to index field 'wikibase' (a nil value). at Wikimedia Commons
 
* {{Commons category-inline|Ursus maritimus|''Ursus maritimus''}}
yields:
- File:Commons-logo.svg Media related to Lua error in Module:Commons_link at line 62: attempt to index field 'wikibase' (a nil value). at Wikimedia Commons
 
TemplateData
TemplateData for Commons category-inline
This template creates a link to a category on Commons.
| 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 sitelinks are used by default.  | 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.  | String | optional | 
| nowrap | nowrap | Stops the text of the commons category from wrapping  | String | optional | 
| lcfirst | lcfirst | Displays the first letter as lower-case  | String | optional | 
| italic | italic | Force display text to be italic  | String | optional | 
| notrack | notrack | Turn off tracking categories  | String | optional | 
Tracking categories
Normal categories
- Category:Commons category link from Wikidata (245)
 - Category:Commons category link is on Wikidata (0)
 
Maintenance categories
- Category:Commons category link is defined as the pagename (188)
 - Category:Commons category link is locally defined (96)
 - Category:Commons category link is the pagename (0)
 - Category:Inconsistent wikidata for Commons category (0)