Jump to content

Template:The-Sports/doc

From Wikipedia, the free encyclopedia

Template:The-Sports displays an external link to a athlete's profile at the The-Sports.org website. It is intended for use in the external links section of an article.

Usage

[edit]

Unnamed parameters:

{{The-Sports | ID }}
{{The-Sports | ID | NAME }}

Named parameters:

{{The-Sports | id= ID }}
{{The-Sports | id= ID | name= NAME }}

Using Wikidata property The-Sports.org athlete ID (P4391):

{{The-Sports}}
{{The-Sports | name= NAME }}

Examples

[edit]

Unnamed parameters

[edit]

Usage:

* {{The-Sports | 357544 | Baruch Shmailov }}

Output:

URL generated by template:

https://www.the-sports.org/t-spf357544.html

URL from website search:

https://www.the-sports.org/baruch-shmailov-judo-spf357544.html

Named parameters

[edit]

Usage:

* {{The-Sports | id= 591938 |name= Abishag Semberg }}

Output:

URL generated by template:

https://www.the-sports.org/t-spf591938.html

URL from website search:

https://www.the-sports.org/abishag-semberg-taekwondo-spf591938.html

No parameters and Wikidata property not defined

[edit]

Usage:

* {{The-Sports}}

Output:

  • {{The-Sports}} template missing ID and not present in Wikidata.

TemplateData

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

TemplateData for The-Sports

This template displays an external link to a athlete's profile at the The-Sports.org website. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 357544 is the ID portion of https://www.the-sports.org/t-spf357544.html or https://www.the-sports.org/baruch-shmailov-judo-spf357544.html. This parameter is optional if Wikidata property P4391 exists, but required if not.

Default
Wikidata property P4391
Numberoptional
Namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the athlete. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(athlete)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

[edit]
ID parameter exists
ID parameter does not exist

See also

[edit]
[edit]