close
Sayahna Sayahna
Search

Difference between revisions of "Template:IAAF name"


m (Changed protection level of Template:IAAF name: allow template editors to modify ([Edit=Protected template] (indefinite) [Move=Protected template] (indefinite)))
 
m (1 revision)
 
(No difference)

Latest revision as of 04:06, 22 March 2014

IAAF name profile at IAAF

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

This is a template to generate links to athletes' sports biographies at http://www.iaaf.org, intended for use in the "External links" section of athletes' respective articles. It is derived directly from Template:IMDb name, with virtually the same basic syntax and usage.

Usage

The IAAF name template has the following syntax:

{{IAAF name|id=XXX|name=John Doe}}
  • The only mandatory parameter isthe first one, id. Replace XXX with the athlete's numerical id used by the IAAF database.
  • The name parameter is optional. If not used, this defaults to the article title (any statements in parentheses will be removed, e.g. Jonathan Edwards (athlete) will appear as "Jonathan Edwards").

Example

Suppose you'd like to link to an IAAF bio page on Carl Lewis using this template. To do that, it is necessary to obtain the id parameter, which is encoded in the page URL. The procedure is simple:

1) Go to http://www.iaaf.org/athletes

2) Find the athlete using the web page navigation (name and/or country).

3) When you find Carl Lewis, his profile's URL will look something like this:

http://www.iaaf.org/athletes/united-states/carl-lewis-1622

The number at the end of the url is the athlete's 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}}

After saving the page, it is always a good idea to double check if the link you've created is correct by clicking on it.

Remarks

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.