Template:World Athletics
![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/40px-Wikidata-logo.svg.png)
NO LABEL (P1146) (see uses)
![]() | 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 external links section of an article.
Usage
Unnamed parameters:
{{World Athletics | ID }}
{{World Athletics | ID | NAME }}
Named parameters:
{{World Athletics | id= ID }}
{{World Athletics | id= ID | name= NAME }}
Using Wikidata property (P1146):
{{World Athletics}}
{{World Athletics | name= NAME }}
Simplified usage with Wikidata
The 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
To 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
Unnamed parameters
Usage:
* {{World Athletics | 14244008 | Carl Lewis }}
* {{World Athletics | 1622 | Carl Lewis }}
Output:
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
- https://www.worldathletics.org/athletes/biographies/athcode=14244008 (archive)
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
- https://www.worldathletics.org/athletes/biographies/athcode=1622 (archive)
Named parameters
Usage:
* {{World Athletics |id= 014344125 |name= Klaus Thiele }}
Output:
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)
- https://www.worldathletics.org/athletes/biographies/athcode=014344125 (does not work for this ID)
No parameters and Wikidata property not defined
Usage:
{{World Athletics}}
Output:
- {{World Athletics}} template missing ID and not present in Wikidata.
TemplateData
TemplateData 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 external links 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 |
Tracking categories
- "id" parameter exists
- Category:World Athletics template with ID not in Wikidata (82)
- Category:World Athletics template with ID different from Wikidata (0)
- "id" parameter missing and Wikidata property does not exist
See also
- {{European Athletics}}
- {{Tilastopaja}}
- {{TFRRS}}
See also
- Templates using data from Wikidata
- Templates tracking Wikidata
- Lua-based templates
- Templates using TemplateData
- Athletics external link templates
- Sports governing body external link templates
- People and person external link templates
- External link templates using Wikidata
- Templates that add a tracking category