Template:X Games profile displays an external link to an athlete's profile at xgames.com, the official website of the X Games. It is intended for use in the external links section of an article.

Usage edit

ID in template
{{X Games profile | new_id= ID }}
{{X Games profile | new_id= ID | name= NAME }}
{{X Games profile | old_id= ID }}
{{X Games profile | old_id= ID | name= NAME }}
{{X Games profile | new_id= ID | old_id= ID }}
{{X Games profile | new_id= ID | old_id= ID | name= NAME }}
ID in Wikidata property X Games athlete ID (archived) (P4893)
{{X Games profile}}
{{X Games profile | name= NAME }}

Examples edit

Current or former ID in template edit

Usage in Elliot Sloan, with article name as link text
* {{X Games profile | new_id= elliot-sloan }}
* {{X Games profile | old_id= 3015231 }}
* {{X Games profile | new_id= elliot-sloan | old_id= 3015231 }}
Output
Current URL
https://www.xgames.com/athletes/elliot-sloan
Former URLs
https://www.xgames.com/athletes/3015231 (archive 8 August 2022)
https://www.xgames.com/athletes/3015231/elliot-sloan (archive 4 January 2023)
http://xgames.espn.go.com/xgames/athletes/3015231/elliot-sloan (archive 10 June 2015)
http://xgames.espn.go.com/athlete/3015231/elliot-sloan (archive 13 March 2015)

Former numeric ID in Wikidata edit

Usage in Marie Martinod, with article name as link text
* {{X Games profile}}
Output
Former URLs
https://www.xgames.com/athletes/3014676 (archive 21 February 2022)
https://www.xgames.com/athletes/3014676/marie-martinod (archive 4 January 2023)
http://xgames.espn.go.com/athlete/3014676/marie-martinod (archive 1 February 2015)

No ID in template or Wikidata edit

Usage
* {{X Games profile}}
Output

TemplateData edit

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:X Games profile in articles based on its TemplateData.

TemplateData for X Games profile

This template displays an external link to an athlete's profile at xgames.com, the official website of the X Games. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
New IDnew_id

The ID portion of the new URL, such as elliot-sloan in https://www.xgames.com/athletes/elliot-sloan.

Stringoptional
Old IDold_id

The ID number the old URL, such as 3015231 in https://www.xgames.com/athletes/3015231 (which redirected to https://www.xgames.com/athletes/3015231/elliot-sloan). Since the old URL no longer works, the template displays an archived link.

Default
Wikidata property P4893
Numberoptional
Namename

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

External links edit