Template:Team GB/sandbox
![]() | __EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Team GB (diff). |

![]() | This template uses Lua: |
Template:Team GB displays an external link to an athlete's profile at TeamGB.com, the official website of Team GB and the British Olympic Association (BOA). It is intended for use in the external links section of an article.
Usage
- Unnamed parameters
{{Team GB | ID }}
{{Team GB | ID | NAME }}
{{Team GB | ID | NAME | archive= NUMBER }}
- Named parameters
{{Team GB | id= ID }}
{{Team GB | id= ID | name= NAME }}
{{Team GB | id= ID | name= NAME | archive= NUMBER }}
- Using Wikidata property
{{Team GB}}
{{Team GB | name= NAME }}
{{Team GB | name= NAME | archive= NUMBER }}
Examples
Unnamed parameters
- Usage
* {{Team GB | georgia-taylor-brown/3mJ4dTktRC2EbB1oQ7901s | Georgia Taylor-Brown }}
* {{Team GB | 3mJ4dTktRC2EbB1oQ7901s | Georgia Taylor-Brown }}
- Output
- For both examples, the link will redirect to this URL
- https://www.teamgb.com/athlete/georgia-taylor-brown/3mJ4dTktRC2EbB1oQ7901s
- URLs with
/athlete/
do not redirect when usingfirst-last
ID format - https://www.teamgb.com/athlete/3mJ4dTktRC2EbB1oQ7901s (valid redirect)
https://www.teamgb.com/athlete/georgia-taylor-brown(invalid redirect)
- URLs in template use
/athletes/
which allows some formerfirst-last
IDs to redirect - https://www.teamgb.com/athletes/georgia-taylor-brown/3mJ4dTktRC2EbB1oQ7901s (valid redirect)
- https://www.teamgb.com/athletes/3mJ4dTktRC2EbB1oQ7901s (valid redirect)
https://www.teamgb.com/athletes/georgia-taylor-brown(invalid redirect, also see archived page)
Named parameters
- Usage
* {{Team GB |id= adam-peaty/4IF0r7CO9ZhPv57ojs4eR7 |name= Adam Peaty }}
* {{Team GB |id= 4IF0r7CO9ZhPv57ojs4eR7 |name= Adam Peaty }}
* {{Team GB |id= adam-peaty |name= Adam Peaty }}
- Output
-
- Adam Peaty at Team GB
- Adam Peaty at Team GB
- Adam Peaty at Team GB
- For all three examples, the link will redirect to this URL
- https://www.teamgb.com/athlete/adam-peaty/4IF0r7CO9ZhPv57ojs4eR7
- URL with
/athlete/
do not redirect when usingfirst-last
ID format - https://www.teamgb.com/athlete/4IF0r7CO9ZhPv57ojs4eR7 (valid redirect)
https://www.teamgb.com/athlete/adam-peaty(invalid redirect)
- URLs in template use
/athletes/
which allows some formerfirst-last
IDs to redirect - https://www.teamgb.com/athletes/adam-peaty/4IF0r7CO9ZhPv57ojs4eR7 (valid redirect)
- https://www.teamgb.com/athletes/4IF0r7CO9ZhPv57ojs4eR7 (valid redirect)
- https://www.teamgb.com/athletes/adam-peaty (valid redirect, also see archived page)
Archived link
- Usage
* {{Team GB | dominick-cunningham | Dominick Cunningham |archive= 20130207000459 }}
* {{Team GB |id= dominick-cunningham |name= Dominick Cunningham |archive= 20130207000459 }}
- Output
-
- Dominick Cunningham at Team GB (archived)
- Dominick Cunningham at Team GB (archived)
- URL in template
- https://web.archive.org/web/20130207000459/https://www.teamgb.com/athletes/dominick-cunningham
No parameters and Wikidata property not defined
- Usage
* {{Team GB}}
- Output
-
- {{Team GB}} template missing ID and not present in Wikidata.
TemplateData
TemplateData for Team GB
This template displays an external link to an athlete's profile at TeamGB.com, the official website of Team GB and the British Olympic Association (BOA). It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The ID portion of the URL. This may be the current ID, such as adam-peaty/4IF0r7CO9ZhPv57ojs4eR7 or 4IF0r7CO9ZhPv57ojs4eR7 in https://www.teamgb.com/athlete/adam-peaty/4IF0r7CO9ZhPv57ojs4eR7. It may also be the former ID, such as adam-peaty in https://www.teamgb.com/athletes/adam-peaty, which may redirect to the current URL (or link to an archived page when using the "archive" parameter). This parameter is optional if Wikidata property P4490 exists, but required if not.
| String | optional |
Name | name 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)".
| String | optional |
Internet Archive date/time | archive | A number indicating the date and time of an archive at the Internet Archive website. Example: 20130207000459 is the "archive" number in https://web.archive.org/web/20130207000459/https://www.teamgb.com/athletes/dominick-cunningham, which is an archive of https://www.teamgb.com/athletes/dominick-cunningham created on 2013-02-07 00:04:59. | Number | optional |
Tracking categories
- template with ID
- any preceding text ending with
/
is removed before comparison with Wikidata adam-peaty/4IF0r7CO9ZhPv57ojs4eR7
→4IF0r7CO9ZhPv57ojs4eR7
4IF0r7CO9ZhPv57ojs4eR7
→4IF0r7CO9ZhPv57ojs4eR7
- Category:Team GB template with ID same as Wikidata (0)
- Category:Team GB template with ID different from Wikidata (0)
- Category:Team GB template with ID not in Wikidata (170)
- template missing ID
- Category:Team GB template using Wikidata (0)
- Category:Team GB template missing ID and not in Wikidata (171)
See also
- {{BPA profile}} for athlete profiles from the British Paralympic Association
- {{Team England}} for athletes competing for England at the Commonwealth Games
- {{Team Scotland}} for athletes competing for Scotland at the Commonwealth Games
- {{Team Wales}} for athletes competing for Wales at the Commonwealth Games