Template:IBSF/doc

From blackwiki
< Template:IBSF
Revision as of 18:09, 10 May 2020 by imported>Zyxw (→‎Tracking categories: updated in template)
Jump to navigation Jump to search

Template:Uses Wikidata Template:Tracks Wikidata

Template:IBSF displays an external link to an athlete's profile at the website of the International Bobsleigh & Skeleton Federation (IBSF), the international governing body for the sports of bobsleigh and skeleton, formerly known as Fédération Internationale de Bobsleigh et de Tobogganing (FIBT). It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{IBSF | ID }}
{{IBSF | ID | NAME }}

Named parameters:

{{IBSF | id= ID }}
{{IBSF | id= ID | name= NAME }}

Using Wikidata property P2991:

{{IBSF}}
{{IBSF | name= NAME }}

Note: Usage of the third unnamed parameter or the "sport" parameter is no longer required. This was used for the former URL format:

http://www.ibsf.org/bobsleigh/athletes.html?athl_id={{{id}}}
http://www.ibsf.org/skeleton/athletes.html?athl_id={{{id}}}
http://www.fibt.com/bobsleigh/athletes.html?athl_id={{{id}}}
http://www.fibt.com/skeleton/athletes.html?athl_id={{{id}}}

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for IBSF

This template displays an external link to an athlete's profile at the website of the International Bobsleigh & Skeleton Federation (IBSF), the international governing body for the sports of bobsleigh and skeleton, formerly known as Fédération Internationale de Bobsleigh et de Tobogganing (FIBT). 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: 100527 is the ID portion of http://www.ibsf.org/en/athletes/athlete/100527. This parameter is optional if Wikidata property P2991 exists, but required if not.

Default
Wikidata property P2991
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 "(bobsleigh)" or "(skeleton racer)".

Default
{{PAGENAMEBASE}}
Stringoptional

Examples

Unnamed parameters

Usage:

{{IBSF | 100527 | Steve Mesler }}

Output:

Steve Mesler at the International Bobsleigh & Skeleton FederationScript error: No such module "EditAtWikidata". Template:WikidataCheck

URL:

http://www.ibsf.org/en/athletes/athlete/100527

Former URLs:

http://www.ibsf.org/bobsleigh/athletes.html?athl_id=100527
http://www.fibt.com/bobsleigh/athletes.html?athl_id=100527

Named parameters

Usage:

{{IBSF |id= 100694 |name= Katie Uhlaender }}

Output:

Katie Uhlaender at the International Bobsleigh & Skeleton FederationScript error: No such module "EditAtWikidata". Template:WikidataCheck

URL:

http://www.ibsf.org/en/athletes/athlete/100694

Former URLs:

http://www.ibsf.org/skeleton/athletes.html?athl_id=100694
http://www.fibt.com/skeleton/athletes.html?athl_id=100694

No parameters and Wikidata property not defined

Usage:

{{IBSF}}

Output:

Template:PAGENAMEBASE at the International Bobsleigh & Skeleton FederationScript error: No such module "EditAtWikidata". Template:WikidataCheck

Tracking categories

ID parameter exists
ID parameter does not exist