Template:IAAF name/doc

It is intended for use in the external links section of an article.

Usage
Unnamed parameters:

Named parameters:

Using Wikidata property P1146:

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 an IAAF 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 IAAF ID. Enter the ID and save. This ID can now be automatically used across all Wikipedia's languages.
 * 3) * After the IAAF 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" number
To find an athlete's IAAF profile and "id" number:
 * 1) Go to http://www.iaaf.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, 1622)
 * 1) Edit the article and insert the following text (assuming you are adding the link to the External links section):
 * 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.

The IAAF 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
URLs:
 * http://www.iaaf.org/athletes/biographies/athcode=
 * http://www.iaaf.org/athletes/united-states/carl-lewis-

Usage:

Output:

Named parameters
URLs:
 * http://www.iaaf.org/athletes/biographies/athcode=
 * http://www.iaaf.org/athletes/great-britain-ni/jonathan-edwards-

Usage:

Output:

No parameters and Wikidata property not defined
Usage:

Output:

TemplateData
{ "description": "This template displays an external link to an athlete's profile at IAAF.org, the official website of the International Association of Athletics Federations. It is intended for use in the external links 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. Example: 1622 is the ID portion of http://www.iaaf.org/athletes/biographies/athcode=1622 or http://www.iaaf.org/athletes/united-states/carl-lewis-1622. 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": "" } },  "paramOrder": [ "id", "name" ] }

Tracking categories

 * "id" parameter exists
 * "id" parameter missing and Wikidata property does not exist
 * "id" parameter missing and Wikidata property does not exist
 * "id" parameter missing and Wikidata property does not exist