Template:World Athletics/doc

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


 * Named parameters


 * Using Wikidata property


 * Using nocat parameter
 * The additional parameter  may be added to exclude the page from tracking categories. For example, on the article for the year 1947, the following code could be used so that a reference to Amos Biwott's date of birth could be used without causing an alert because the Wikidata item for the page 1947 doesn't have a World Athletics identifier:

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.
 * 2) * 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.
 * 3) * After the World Athletics ID has been added to the athlete's Wikidata, placing  in the athlete's Wikipedia article will generate the link successfully.
 * 4) 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
To find an athlete's World Athletics profile and ID:
 * 1) Go to https://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:
 * The number at the end of the URL is the ID (in this case, 14244008)
 * 1) Edit the article and insert the following text (assuming you are adding the link to the External links section):
 * 2) The template will also accept the full ID which includes the athlete's country and name:
 * 3) 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.
 * 1) The template will also accept the full ID which includes the athlete's country and name:
 * 2) 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.
 * 1) 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.
 * 1) 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.
 * 1) 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.
 * 1) 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.

Unnamed parameters

 * Usage


 * Output


 * URLs in template
 * https://worldathletics.org/athletes/-/14244008 (does not redirect to full URL)
 * https://worldathletics.org/athletes/united-states/carl-lewis-14244008 (full URL)


 * Other URLs
 * https://www.worldathletics.org/athletes/athlete=14244008 (redirects to full URL with country and name)
 * https://www.worldathletics.org/athletes/biographies?athcode=14244008 (redirects to full URL)
 * https:// www.worldathletics.org/athletes/biographies/athcode=14244008 (archive)

Named parameters

 * Usage


 * Output


 * URLs in template
 * https://worldathletics.org/athletes/-/14344125 (does not redirect to full URL)
 * https://worldathletics.org/athletes/germany/klaus-thiele-14344125 (full URL)


 * Other URLs
 * https:// www.worldathletics.org/athletes/athlete=14344125 (does not work for this ID)
 * https:// www.worldathletics.org/athletes/biographies?athcode=14344125 (does not work for this ID)
 * https:// www.worldathletics.org/athletes/biographies/athcode=14344125 (does not work for this ID)

No parameters and Wikidata property not defined

 * Usage


 * Output

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 external links section of an article.", "params": { "id": { "label": "id", "aliases": ["1"], "description": "The ID portion of the URL, such as 14244008 or united-states/carl-lewis-14244008 in https://worldathletics.org/athletes/united-states/carl-lewis-14244008. This parameter is optional if Wikidata property P1146 exists, but required if not.", "default": "Wikidata property P1146", "type": "string", "required": false },   "name": { "label": "name", "aliases": ["2"], "description": "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": "", "type": "string", "required": false },   "nocat": { "label": "nocat", "description": "This parameter should only be used in cases where the target of the template link is not the subject of the article. The additional parameter | nocat=y may be added to exclude the page from tracking categories. For example, on the article for the year 1947, the following code could be used so that a reference to Amos Biwott's date of birth could be used without causing an alert because the Wikidata item for the page 1947 doesn't have a World Athletics identifier: ", "type": "string", "required": false } },  "paramOrder": [ "id", "name", "nocat" ] }

Tracking categories

 * template with ID
 * ID is converted to numeric value before comparison with Wikidata
 * united-states/carl-lewis-14244008 →
 * 14244008 →


 * template missing ID
 * template missing ID
 * template missing ID