Template:World Athletics

{{{name}}} at World Athletics

Documentation icon Template documentation[view] [edit] [history] [purge]

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

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.

  1. 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.
  2. 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:

  1. Go to https://www.worldathletics.org/athletes
  2. Find the athlete using the web page navigation (name and/or country).
  3. 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)
  4. Edit the article and insert the following text (assuming you are adding the link to the External links section):
    * {{World Athletics|14244008}}
  5. 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

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

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)

No parameters and Wikidata property not defined

Usage:

{{World Athletics}}

Output:

World Athletics at World Athletics

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for World Athletics

<templatedata> {

 "description": "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.",
 "params": {
   "id": {
     "label": "id",
     "aliases": ["1"], 
     "description": "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.",
     "type": "number",
     "required": false,
     "default": "Wikidata property P1146"
   },
   "name": {
     "label": "name",
     "aliases": ["2"], 
     "description": "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)\".",
     "type": "string",
     "required": false,
     "default": "World Athletics"
   }
 },
 "paramOrder": [
   "id",
   "name"
 ]

} </templatedata>