Template:X Games profile
{{{name}}} at the X Games
This template uses Lua: |
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
- 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
Current or former ID in template
- Usage in Elliot Sloan, with article name as link text
* {{X Games profile | new_id= elliot-sloan }}
* {{X Games profile | new_id= elliot-sloan | old_id= 3015231 }}
* {{X Games profile | old_id= 3015231 }}
- Output
-
- Elliot Sloan at the X Games
- Elliot Sloan at the X Games (archive)
- Elliot Sloan at the X Games (archived)
- 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
- Usage in Marie Martinod, with article name as link text
* {{X Games profile}}
- Output
-
- Marie Martinod at the X Games (archived)
- 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
- Usage
* {{X Games profile}}
- Output
-
- {{X Games profile}} template missing ID and not present in Wikidata.
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
New ID | new_id | The ID portion of the new URL, such as elliot-sloan in https://www.xgames.com/athletes/elliot-sloan. | String | optional |
Old ID | old_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.
| Number | optional |
Name | name | 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)".
| String | optional |