ଛାଞ୍ଚ: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.

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.

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)

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.
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:World Athletics in articles based on its 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.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Default
Wikidata property P1146
Numberoptional
namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

ସମ୍ପାଦନା

"id" parameter exists

"id" parameter missing and Wikidata property does not exist