Jump to content

Template:Sports links/doc

From Wikipedia, the free encyclopedia

Template:Sports links is designed to display sports-related external links in a Wikipedia article, using the properties defined in that article's Wikidata item. It was based on the Norwegian Wikipedia template Mal:Sportslenker and is implemented via Lua with Module:External links and Module:External links/conf/Sports (based on the Norwegian Wikipedia's Modul:External links and Modul:External links/conf/Sport).

Usage

[edit]

* {{Sports links}}

Wikidata properties used

[edit]

The Wikidata properties used to generate sports-related links are specified at Module:External links/conf/Sports.

List

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Sports links in articles based on its TemplateData.

TemplateData for Sports links

This template displays a external links to a sportsperson's profile on various websites.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The link text, which should be the name of the sportsperson. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(boxer)".

Default
{{PAGENAMEBASE}}
Example
John Terry
Stringoptional
Maximum Linksmaxlink

Maximum number of links to display in the article. This parameter is optional, and should be used with caution as it is better to control the maximum centrally for consistency and to avoid [[WP:OLINK|overlink]].

Default
5
Example
15
Numberoptional

Tracking categories

[edit]