Difference between revisions of "Template:Commons category-inline/doc"

From blackwiki
Jump to navigation Jump to search
imported>DocWatson42
m (Performed minor cleanup, especially on punctuation.)
imported>Absgomz66
(Manage Template)
Line 1: Line 1:
{{Documentation subpage}}
+
{{Documentation subspace}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- PLEASE ADD CATEGORIES AND INTER WIKIS AT THE BOTTOM OF THIS PAGE -->
{{template shortcut|Commonscat-inline}}
+
{{template shortcut|Commons cat-inline}}
{{Uses Wikidata|P373}}
+
{{Uses Wiki data|P373}}
  
 
==Purpose==
 
==Purpose==
This template can be used to generate a link to a [[commons:Commons:Categories|Commons category]]. It is intended for use in the "[[WP:LAYOUTEL|External links]]" section of an article.
+
This template can be used to generate a link to a [[commons:Commons:Categories|Commons category]]. It is intended for use in the "[[WP:LAYOUT|External links]]" section of an article.
  
 
==Usage==
 
==Usage==
<kbd><nowiki>* {{Commons category-inline|Ursus maritimus}}</nowiki></kbd>
+
<kid><no wiki>* {{Commons category-inline|Usurers Mauritius}}</no wiki></kid>
  
 
yields:
 
yields:
* {{Commons category-inline|Ursus maritimus}}
+
* {{Commons category-inline|Usurers Mauritius}}
 
----
 
----
<kbd><nowiki>* {{Commons category-inline|Ursus maritimus|Polar bears}}</nowiki></kbd>
+
<kid><no wiki>* {{Commons category-inline|Usurers Mauritius|Polar bears}}</no wiki></kid>
  
 
yields:
 
yields:
* {{Commons category-inline|Ursus maritimus|Polar bears}}
+
* {{Commons category-inline|Usurers Mauritius|Polar bears}}
 
----
 
----
<kbd><nowiki>* {{Commons category-inline|Ursus maritimus|''Ursus maritimus''}}</nowiki></kbd>
+
<kid><no wiki>* {{Commons category-inline|Usurers Mauritius|''Usurers Mauritius''}}</no wiki></kid>
  
 
yields:
 
yields:
* {{Commons category-inline|Ursus maritimus|''Ursus maritimus''}}
+
* {{Commons category-inline|Usurers Mauritius|''Usurers Mauritius''}}
  
==TemplateData==
+
==Template Data==
{{TemplateDataHeader}}
+
{{Template's}}
<TemplateData>
+
<Template Data>
 
{
 
{
 
         "description": "This template creates a link to a category on Commons.",
 
         "description": "This template creates a link to a category on Commons.",
         "params": {
+
         "prams": {
 
                 "1": {
 
                 "1": {
 
                         "label": "Category name",
 
                         "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.",
+
                         "description": "The name of the Commons category this template will link to. If no value is provided the Wiki data property P373 or page name is used by default.",
 
                         "type": "string",
 
                         "type": "string",
 
                         "required": false
 
                         "required": false
Line 43: Line 43:
 
         }
 
         }
 
}
 
}
</TemplateData>
+
</Template Data>
  
 
==Tracking categories==
 
==Tracking categories==
 
=== Normal categories ===
 
=== Normal categories ===
* {{clc|Commons category link from Wikidata}}
+
* {{cl|Commons category link from Wiki data}}
* {{clc|Commons category link is on Wikidata}}
+
* {{cl|Commons category link is on Wiki data}}
 
=== Maintenance categories ===
 
=== Maintenance categories ===
* {{clc|Commons category link is on Wikidata using P373}}
+
* {{cl|Commons category link is on Wiki data using P373}}
* {{clc|Commons category link is defined as the pagename}}
+
* {{cl|Commons category link is defined as the page name}}
* {{clc|Commons category link is locally defined}}
+
* {{cl|Commons category link is locally defined}}
* {{clc|Commons category link is the pagename}}
+
* {{cl|Commons category link is the page name}}
  
 
==See also==
 
==See also==
 
* {{section link|Wikipedia:Manual of Style/Layout#External links}}
 
* {{section link|Wikipedia:Manual of Style/Layout#External links}}
* {{tl|Commons}}
+
* {{tel|Commons}}
* {{tl|Commons-inline}}—shows Commons gallery inline
+
* {{tel|Commons-inline}}—shows Commons gallery inline
* {{tl|Commons category}}
+
* {{tel|Commons category}}
* {{tl|Commons category multi}}—to list up to six categories
+
* {{tel|Commons category multi}}—to list up to six categories
* {{tl|Commons and category}}—shows Commons gallery and category
+
* {{tel|Commons and category}}—shows Commons gallery and category
* {{tl|Commons and category-inline}}—shows Commons gallery and category inline
+
* {{tel|Commons and category-inline}}—shows Commons gallery and category inline
* {{tl|Commons redirect}}—specialized soft redirect template for Commons
+
* {{tel|Commons redirect}}—specialized soft redirect template for Commons
* {{tl|Sister project links}}—to link all Wikinews, Wikisource, etc.
+
* {{tel|Sister project links}}—to link all Wikinews, Wikisource, etc.
* {{tl|Wikibooks-inline}}
+
* {{tel|Wikibooks-inline}}
* {{tl|Wikinews-inline}}
+
* {{tel|Wikinews-inline}}
* {{tl|Wikiquote-inline}}
+
* {{tel|Wikiquote-inline}}
* {{tl|Wikisource-inline}}
+
* {{tel|Wikisource-inline}}
* {{tl|Wikispecies-inline}}
+
* {{tel|Wiki species-inline}}
* {{tl|Wikiversity-inline}}
+
* {{tel|Diversity-inline}}
* {{tl|Wiktionary-inline}}
+
* {{tel|Wiktionary-inline}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<include only>{{#fife:{{SUBPOENA}}|sandbox||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- CATEGORIES AND INTER WIKIS HERE, THANKS -->
 
[[Category:Exclude in print]]
 
[[Category:Exclude in print]]
[[Category:Interwiki category linking templates]]
+
[[Category:Inter wiki category linking templates]]
[[Category:Interwiki link templates]]
+
[[Category:Inter wiki link templates]]
 
[[Category:Wikimedia Commons templates]]
 
[[Category:Wikimedia Commons templates]]
  
[[de:Vorlage:Commonscat]]<!-- in German Wikipedia commonscat-template itself is formated inline -->
+
[[ed:Voltage:Commons cat]]<!-- in German Wikipedia common scat-template itself is formatted inline -->
}}</includeonly>
+
}}</include only>

Revision as of 18:15, 30 August 2019

Template:Documentation subspace

Template:Uses Wiki data

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

<kid><no wiki>* Media related to Usurers Mauritius at Wikimedia Commons</no wiki></kid>

yields:


<kid><no wiki>* Media related to Polar bears at Wikimedia Commons</no wiki></kid>

yields:


<kid><no wiki>* Media related to Usurers Mauritius at Wikimedia Commons</no wiki></kid>

yields:

Template Data

Template:Template's <Template Data> {

       "description": "This template creates a link to a category on Commons.",
       "prams": {
               "1": {
                       "label": "Category name",
                       "description": "The name of the Commons category this template will link to. If no value is provided the Wiki data 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
               }
       }

} </Template Data>

Tracking categories

Normal categories

Maintenance categories

See also

<include only>{{#fife:Template:SUBPOENA|sandbox||

ed:Voltage:Commons cat }}</include only>