Jump to content

Template:Commons category-inline/doc

From Simple English Wikipedia, the free encyclopedia
Revision as of 21:26, 23 February 2024 by imported>Ayesha46 (Purpose: As per simple wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Purpose[change]

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

Usage[change]

{{Commons category-inline|Ursus maritimus}}

yields: File:Commons-logo.svg Media related to Lua error in Module:Commons_link at line 47: 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 47: 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 47: attempt to index field 'wikibase' (a nil value). at Wikimedia Commons

TemplateData[change]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Commons category-inline in articles based on its TemplateData.

TemplateData for Commons category-inline

<TemplateData> {

       "description": "This template creates a link to a category on Commons.",
       "params": {
               "1": {
                       "label": "Category name",
                       "description": "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.",
                       "type": "string",
                       "required": false
               },

"2": {

                       "label": "Displayed text",
                       "description": "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.",
                       "type": "string",
                       "required": false
               }
       }

} </TemplateData>

Tracking categories[change]

See also[change]