Template:CGF profile/doc

From blackwiki
Jump to navigation Jump to search

Template:Uses Wikidata

Template:CGF profile displays an external link to an athlete's profile at TheCGF.com, the official website of the Commonwealth Games Federation (CGF). It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw

Using Wikidata property Template:Property:

Template:Tlcw
Template:Tlcw

Examples

ID in template

Usage in the article Anna Meares, with article name as link text:

Template:Tlcw
Template:Tlcw

Usage with name parameter as link text:

Template:Tlcw
Template:Tlcw

Output:

URL:

https://thecgf.com/results/athletes/45939

ID in Wikidata

Usage in the article Greg Yelavich:

Template:Tlcw
Template:Tlcw

Output:

URL:

https://thecgf.com/results/athletes/50792

No ID in template or Wikidata

Usage:

Template:Tlcw

Output:

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 CGF profile

This template displays an external link to an athlete's profile at TheCGF.com, the official website of the Commonwealth Games Federation (CGF). 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: 45939 is the ID portion of https://thecgf.com/results/athletes/45939. This parameter is optional if Wikidata property P4548 exists, but required if not.

Default
Wikidata property P4548
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

See also

External links