Open main menu

Template:IAAF name

{{{name}}} at IAAF

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

Template:IAAF name 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.

Usage

Unnamed parameters:

{{IAAF name | ID }}
{{IAAF name | ID | NAME }}

Named parameters:

{{IAAF name | id= ID }}
{{IAAF name | id= ID | name= NAME }}

Using Wikidata property P1146:

{{IAAF name}}
{{IAAF name | 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 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.
    • After the IAAF ID has been added to the athlete's Wikidata, placing {{IAAF name}} 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 IAAF profile and "id" number:

  1. Go to https://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:
    https://www.iaaf.org/athletes/united-states/carl-lewis-1622
    The number at the end of the URL is the "id" (in this case, 1622)
  4. Edit the article and insert the following text (assuming you are adding the link to the External links section):
    * {{IAAF name|1622}}
  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 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.

Examples

Unnamed parameters

URLs:

https://www.iaaf.org/athletes/athlete=1622
https://www.iaaf.org/athletes/biographies/athcode=1622
https://www.iaaf.org/athletes/united-states/carl-lewis-1622
https://www.iaaf.org/athletes/_/1622

Usage:

{{IAAF name | 1622 | Carl Lewis }}

Output:

Carl Lewis at IAAF

Named parameters

URLs:

https://www.iaaf.org/athletes/athlete=773
https://www.iaaf.org/athletes/biographies/athcode=773
https://www.iaaf.org/athletes/great-britain-ni/jonathan-edwards-773

Usage:

{{IAAF name |id= 773 |name= Jonathan Edwards }}

Output:

Jonathan Edwards at IAAF

No parameters and Wikidata property not defined

Usage:

{{IAAF name}}

Output:

{{IAAF name}} template missing ID and not present in Wikidata.

TemplateData

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

TemplateData for IAAF name

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.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 1622 is the ID portion of https://www.iaaf.org/athletes/athlete=1622, https://www.iaaf.org/athletes/biographies/athcode=1622, or https://www.iaaf.org/athletes/united-states/carl-lewis-1622. 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

See also