Jump to content

Template:CGF profile/doc

From Wikipedia, the free encyclopedia

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

Usage

[edit]
Unnamed parameters for ID and Name
{{CGF profile | ID }}
{{CGF profile | ID | NAME }}
{{CGF profile | ID | archive= NUMBER }}
{{CGF profile | ID | NAME | archive= NUMBER }}
Named parameters for ID and Name
{{CGF profile | id= ID }}
{{CGF profile | id= ID | name= NAME }}
{{CGF profile | id= ID | archive= NUMBER }}
{{CGF profile | id= ID | name= NAME | archive= NUMBER }}
Using Wikidata property for ID
{{CGF profile}}
{{CGF profile | name= NAME }}
{{CGF profile | archive= NUMBER }}
{{CGF profile | name= NAME | archive= NUMBER }}

Examples

[edit]

ID in template

[edit]
Usage in the article Anna Meares, with article name as link text
* {{CGF profile | 45939 }}
* {{CGF profile | id= 45939 | archive = 20220922093923 }}
Usage with name parameter as link text
* {{CGF profile | 45939 | Anna Meares }}
* {{CGF profile | id= 45939 | name= Anna Meares | archive = 20220922093923 }}
Output
URLs
https://web.archive.org/web/20220101/https://thecgf.com/results/athletes/45939
https://web.archive.org/web/20220922093923/https://thecgf.com/results/athletes/45939

ID in Wikidata

[edit]
Usage in the article Greg Yelavich
* {{CGF profile}}
* {{CGF profile | name= Gregory Yelavich | archive= 20220922093924 }}
Output
URLs
https://web.archive.org/web/20220101/https://thecgf.com/results/athletes/50792
https://web.archive.org/web/20220922093924/https://thecgf.com/results/athletes/50792

No ID in template or Wikidata

[edit]
Usage
* {{CGF profile}}
Output
  • {{CGF profile}} 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:CGF profile in articles based on its TemplateData.

TemplateData for CGF profile

This template displays an external link to an athlete's profile at the Commonwealth Games Federation former website TheCGF.com (archived). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The ID number in the URL, such as 45939 in 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 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
Internet Archive date/timearchive

A number indicating the date and time of an archive at the Internet Archive website, such as 20220922093923 in https://web.archive.org/web/20220922093923/https://thecgf.com/results/athletes/45939 (2022-09-22 09:39:23 archive of https://thecgf.com/results/athletes/45939).

Default
20220101
Numberoptional

Tracking categories

[edit]
template with ID
template missing ID

See also

[edit]

Athlete profiles by year

[edit]

Athlete profiles by country

[edit]
[edit]