Template:World Athletics
{{{name}}} at World Athletics
This template uses Lua: |
Template:World Athletics displays an external link to an athlete's profile at the official website of World Athletics, the international governing body for the sport of athletics. It was formerly known as the International Association of Athletics Federations (IAAF). The template is intended for use in the other websites section of an article.
Usage
changeUnnamed parameters:
{{World Athletics | ID }}
{{World Athletics | ID | NAME }}
Named parameters:
{{World Athletics | id= ID }}
{{World Athletics | id= ID | name= NAME }}
Using Wikidata property World Athletics athlete ID (P1146):
{{World Athletics}}
{{World Athletics | name= NAME }}
Simplified usage with Wikidata
changeThe two pieces of information in this template can be automatically populated.
- The id can be fed automatically from Wikidata if the ID field is left empty.
- If a World Athletics ID has not yet been added to the athlete's Wikidata: Click "WikiData Item" under Tools on the left menu. Under "Statements" on the Wikidata page click add and type in World Athletics ID. Enter the ID and save. This ID can now be automatically used across all Wikipedia's languages.
- After the World Athletics ID has been added to the athlete's Wikidata, placing
{{World Athletics}}
in the athlete's Wikipedia article will generate the link successfully.
- The name will be automatically generated from the page title. Any disambiguation handles (e.g. Michael Johnson (sprinter)) will be stripped from the name automatically.
How to find the "id" number
changeTo find an athlete's World Athletics profile and "id" number:
- Go to https://www.worldathletics.org/athletes
- Find the athlete using the web page navigation (name and/or country).
- The URL of the athlete's profile will look something like this:
https://www.worldathletics.org/athletes/united-states/carl-lewis-14244008
- The number at the end of the URL is the "id" (in this case, 14244008)
- Edit the article and insert the following text (assuming you are adding the link to the External links section):
* {{World Athletics|14244008}}
- Before saving the page, it is always a good idea to double check if the link you've created is correct by clicking on it.
The World Athletics database currently only covers athletes active from the 1980s to the present day; you won't find Emil Zatopek or Alberto Juantorena. Still, it is fairly comprehensive; all notable athletes are covered, along with many non-notable ones.
Examples
changeUnnamed parameters
changeUsage:
* {{World Athletics | 14244008 | Carl Lewis }}
* {{World Athletics | 1622 | Carl Lewis }}
Output:
- Carl Lewis at World Athletics
- Carl Lewis at World Athletics
URLs with new ID:
- https://www.worldathletics.org/athletes/united-states/carl-lewis-14244008
- https://www.worldathletics.org/athletes/_/14244008
- https://www.worldathletics.org/athletes/athlete=14244008
- https://www.worldathletics.org/athletes/biographies/athcode=14244008
URLs with old ID:
- https://www.worldathletics.org/athletes/united-states/carl-lewis-1622
- https://www.worldathletics.org/athletes/_/1622
- https://www.worldathletics.org/athletes/athlete=1622
- https://www.worldathletics.org/athletes/biographies/athcode=1622
Named parameters
changeUsage:
* {{World Athletics |id= 014344125 |name= Klaus Thiele }}
Output:
- Klaus Thiele at World Athletics
URLs:
- https://www.worldathletics.org/athletes/germany/klaus-thiele-014344125
- https://www.worldathletics.org/athletes/_/014344125
- https://www.worldathletics.org/athletes/athlete=014344125 (does not work for this ID)
- https://www.worldathletics.org/athletes/biographies/athcode=014344125 (does not work for this ID)
No parameters and Wikidata property not defined
changeUsage:
{{World Athletics}}
Output:
- {{World Athletics}} template missing ID and not present in Wikidata.
TemplateData
changeTemplateData for World Athletics
This template displays an external link to an athlete's profile at the official website of World Athletics, the international governing body for the sport of athletics. It was formerly known as the International Association of Athletics Federations (IAAF). The template is intended for use in the other websites section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Examples: 14244008 is the ID portion of https://www.worldathletics.org/athletes/united-states/carl-lewis-14244008; 014344125 is the ID portion of https://www.worldathletics.org/athletes/germany/klaus-thiele-014344125. This parameter is optional if Wikidata property P1146 exists, but required if not.
| Number | optional |
name | name 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)".
| String | optional |