Difference between revisions of "Template:ITF profile/doc"
imported>Zyxw m (→Usage: update) |
imported>Zyxw m (→Examples: formatting) |
||
| Line 37: | Line 37: | ||
''URL (new ID):'' | ''URL (new ID):'' | ||
| − | : | + | : [https://www.itftennis.com/en/players/roger-federer/800202678/sui https://www.itftennis.com/en/players/{{highlight|roger-federer/800202678/sui}}] |
| − | : | + | : [https://www.itftennis.com/en/players/roger-federer/800202678/sui/mt/s/overview/ https://www.itftennis.com/en/players/{{highlight|roger-federer/800202678/sui}}/mt/s/overview/] |
''URL (old ID):'' | ''URL (old ID):'' | ||
| − | : | + | : [https://www.itftennis.com/procircuit/players/player/profile.aspx?playerid=10019424 https://www.itftennis.com/procircuit/players/player/profile.aspx?playerid={{highlight|10019424}}] ([https://web.archive.org/web/20180101120000/https://www.itftennis.com/procircuit/players/player/profile.aspx?playerid=10019424 archive]) |
=== ID in Wikidata === | === ID in Wikidata === | ||
| Line 52: | Line 52: | ||
''URL (new ID):'' | ''URL (new ID):'' | ||
| − | : | + | : [https://www.itftennis.com/en/players/maria-sharapova/800229006/rus https://www.itftennis.com/en/players/{{highlight|maria-sharapova/800229006/rus}}] |
| − | : | + | : [https://www.itftennis.com/en/players/maria-sharapova/800229006/rus/wt/s/overview/ https://www.itftennis.com/en/players/{{highlight|maria-sharapova/800229006/rus}}/wt/s/overview/] |
''URL (old ID):'' | ''URL (old ID):'' | ||
| − | : | + | : [https://www.itftennis.com/procircuit/players/player/profile.aspx?playerid=100013223 https://www.itftennis.com/procircuit/players/player/profile.aspx?playerid={{highlight|100013223}}] ([https://web.archive.org/web/20180101120000/https://www.itftennis.com/procircuit/players/player/profile.aspx?playerid=100013223 archive]) |
=== No ID in template or Wikidata === | === No ID in template or Wikidata === | ||
Latest revision as of 10:41, 25 September 2020
| This is a documentation subpage for Template:ITF profile. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Uses Wikidata
| This template uses Lua: |
Template:ITF profile displays an external link to a professional tennis player's profile at ITFtennis.com, the official website of the International Tennis Federation (ITF). It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property P8618 or P599:
Examples
ID in template
Usage in the article Roger Federer, with article name as link text:
Usage with name parameter as link text:
Output:
URL (new ID):
- https://www.itftennis.com/en/players/roger-federer/800202678/sui
- https://www.itftennis.com/en/players/roger-federer/800202678/sui/mt/s/overview/
URL (old ID):
ID in Wikidata
Usage in the article Maria Sharapova:
Output:
URL (new ID):
- https://www.itftennis.com/en/players/maria-sharapova/800229006/rus
- https://www.itftennis.com/en/players/maria-sharapova/800229006/rus/wt/s/overview/
URL (old ID):
No ID in template or Wikidata
Usage:
Output:
- Template:PAGENAMEBASE at the International Tennis FederationScript error: No such module "EditAtWikidata".
TemplateData
TemplateData for ITF profile
This template displays an external link to a professional tennis player's profile at ITFtennis.com, the official website of the International Tennis Federation (ITF). It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: roger-federer/800202678/sui is the ID in https://www.itftennis.com/en/players/roger-federer/800202678/sui or https://www.itftennis.com/en/players/roger-federer/800202678/sui/mt/s/overview/.
| String | optional |
| name | name 2 | The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the tennis player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(tennis)".
| String | optional |
Tracking categories
- template with ID
- Category:ITF template using non-numeric ID (0) – current ID and URL
- Category:ITF template using numeric ID (0) – redirect to current URL
- template missing ID
- Category:ITF template using Wikidata property P8618 (0) – current ID and URL
- Category:ITF template using Wikidata property P599 (0) – redirect to current URL
- Category:ITF template missing ID and not in Wikidata (0) – should be empty
Templates and modules used
- Template:First word, implemented with Module:String
- Module:EditAtWikidata
See also
- {{ITF wheelchair profile}}
- {{ATP}} for a male player's profile at the Association of Tennis Professionals website
- {{WTA}} for a female player's profile at the Women's Tennis Association website
- {{Davis Cup player}} for a male player's profile at the Davis Cup website
- {{Fed Cup player}} for a female player's profile at the Fed Cup website
External links