Jump to content

Template:Association of Tennis Professionals link/doc

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by GFHandel (talk | contribs) at 00:38, 20 November 2011 (Added another way to find the value to use in the id parameter of the template (quicker as it requires less atpworldtour.com page requests). Added some other relevant templates to the "See also" section.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Usage

{{ATP|id=000000|name=yyy}}


To find the id number:

  1. Go to the player's ATP profile page
  2. In the "Head to head" edit box on the right enter any player and submit
  3. You'll see their head to head record, and pId in the URL is the ID in question

* copied from GregorB's comment at WikiProject Tennis

Another way to find the id number:

  1. Go to the player's ATP profile page.
  2. View the HTML source of the page (found via the pop-up menu when right-clicking somewhere on the page).
  3. Search for the text "initPlayerLiveScoreParams", and use the code following that string.


The name parameter is optional. It defaults to the page name, so it is necessary to provide it only when the player's name differs from the article name.

Example

{{ATP|id=A092|name=Andre Agassi}}

gives

Andre Agassi at the Association of Tennis Professionals

See also