Difference between revisions of "Template:Commons category-inline/doc"
Jump to navigation
Jump to search
imported>DocWatson42 m (Performed minor cleanup, especially on punctuation.) |
imported>Absgomz66 (Manage Template) |
||
| Line 1: | Line 1: | ||
| − | {{Documentation | + | {{Documentation subspace}} |
| − | <!-- PLEASE ADD CATEGORIES AND | + | <!-- PLEASE ADD CATEGORIES AND INTER WIKIS AT THE BOTTOM OF THIS PAGE --> |
| − | {{template shortcut| | + | {{template shortcut|Commons cat-inline}} |
| − | {{Uses | + | {{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: | + | 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== | ||
| − | < | + | <kid><no wiki>* {{Commons category-inline|Usurers Mauritius}}</no wiki></kid> |
yields: | yields: | ||
| − | * {{Commons category-inline| | + | * {{Commons category-inline|Usurers Mauritius}} |
---- | ---- | ||
| − | < | + | <kid><no wiki>* {{Commons category-inline|Usurers Mauritius|Polar bears}}</no wiki></kid> |
yields: | yields: | ||
| − | * {{Commons category-inline| | + | * {{Commons category-inline|Usurers Mauritius|Polar bears}} |
---- | ---- | ||
| − | < | + | <kid><no wiki>* {{Commons category-inline|Usurers Mauritius|''Usurers Mauritius''}}</no wiki></kid> |
yields: | yields: | ||
| − | * {{Commons category-inline| | + | * {{Commons category-inline|Usurers Mauritius|''Usurers Mauritius''}} |
| − | == | + | ==Template Data== |
| − | {{ | + | {{Template's}} |
| − | < | + | <Template Data> |
{ | { | ||
"description": "This template creates a link to a category on Commons.", | "description": "This template creates a link to a category on Commons.", | ||
| − | " | + | "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 | + | "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: | ||
} | } | ||
} | } | ||
| − | </ | + | </Template Data> |
==Tracking categories== | ==Tracking categories== | ||
=== Normal categories === | === Normal categories === | ||
| − | * {{ | + | * {{cl|Commons category link from Wiki data}} |
| − | * {{ | + | * {{cl|Commons category link is on Wiki data}} |
=== Maintenance categories === | === Maintenance categories === | ||
| − | * {{ | + | * {{cl|Commons category link is on Wiki data using P373}} |
| − | * {{ | + | * {{cl|Commons category link is defined as the page name}} |
| − | * {{ | + | * {{cl|Commons category link is locally defined}} |
| − | * {{ | + | * {{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}} | ||
| − | * {{ | + | * {{tel|Commons}} |
| − | * {{ | + | * {{tel|Commons-inline}}—shows Commons gallery inline |
| − | * {{ | + | * {{tel|Commons category}} |
| − | * {{ | + | * {{tel|Commons category multi}}—to list up to six categories |
| − | * {{ | + | * {{tel|Commons and category}}—shows Commons gallery and category |
| − | * {{ | + | * {{tel|Commons and category-inline}}—shows Commons gallery and category inline |
| − | * {{ | + | * {{tel|Commons redirect}}—specialized soft redirect template for Commons |
| − | * {{ | + | * {{tel|Sister project links}}—to link all Wikinews, Wikisource, etc. |
| − | * {{ | + | * {{tel|Wikibooks-inline}} |
| − | * {{ | + | * {{tel|Wikinews-inline}} |
| − | * {{ | + | * {{tel|Wikiquote-inline}} |
| − | * {{ | + | * {{tel|Wikisource-inline}} |
| − | * {{ | + | * {{tel|Wiki species-inline}} |
| − | * {{ | + | * {{tel|Diversity-inline}} |
| − | * {{ | + | * {{tel|Wiktionary-inline}} |
| − | < | + | <include only>{{#fife:{{SUBPOENA}}|sandbox|| |
| − | <!-- CATEGORIES AND | + | <!-- CATEGORIES AND INTER WIKIS HERE, THANKS --> |
[[Category:Exclude in print]] | [[Category:Exclude in print]] | ||
| − | [[Category: | + | [[Category:Inter wiki category linking templates]] |
| − | [[Category: | + | [[Category:Inter wiki link templates]] |
[[Category:Wikimedia Commons templates]] | [[Category:Wikimedia Commons templates]] | ||
| − | [[ | + | [[ed:Voltage:Commons cat]]<!-- in German Wikipedia common scat-template itself is formatted inline --> |
| − | }}</ | + | }}</include only> |
Revision as of 18:15, 30 August 2019
Template:Documentation subspace
Contents
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>* 16x16px Media related to Usurers Mauritius at Wikimedia Commons</no wiki></kid>
yields:
- 16x16px Media related to Usurers Mauritius at Wikimedia Commons
<kid><no wiki>* 16x16px Media related to Polar bears at Wikimedia Commons</no wiki></kid>
yields:
- 16x16px Media related to Polar bears at Wikimedia Commons
<kid><no wiki>* 16x16px Media related to Usurers Mauritius at Wikimedia Commons</no wiki></kid>
yields:
- 16x16px Media related to Usurers Mauritius at Wikimedia Commons
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
- Category:Commons category link is on Wiki data using P373
- Category:Commons category link is defined as the page name
- Category:Commons category link is locally defined
- Category:Commons category link is the page name
See also
- Script error: No such module "Section link".
- Template:Tel
- Template:Tel—shows Commons gallery inline
- Template:Tel
- Template:Tel—to list up to six categories
- Template:Tel—shows Commons gallery and category
- Template:Tel—shows Commons gallery and category inline
- Template:Tel—specialized soft redirect template for Commons
- Template:Tel—to link all Wikinews, Wikisource, etc.
- Template:Tel
- Template:Tel
- Template:Tel
- Template:Tel
- Template:Tel
- Template:Tel
- Template:Tel
<include only>{{#fife:Template:SUBPOENA|sandbox||
ed:Voltage:Commons cat }}</include only>