ଛାଞ୍ଚ:World Athletics/doc
This is a documentation subpage for ଛାଞ୍ଚ:World Athletics. It may contain usage information, categories and other content that is not part of the original ଛାଞ୍ଚ page. |
This template is used on approximately ୧୩,୦୦୦ pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
ଛାଞ୍ଚ:World Athletics displays an external link to an athlete's profile at the official website of World Athletics, the international governing body for the sport of athletics. It was formerly known as the International Association of Athletics Federations (IAAF). The template is intended for use in the external links section of an article.
Usage
[ସମ୍ପାଦନା]Unnamed parameters:
{{World Athletics | ID }}
{{World Athletics | ID | NAME }}
Named parameters:
{{World Athletics | id= ID }}
{{World Athletics | id= ID | name= NAME }}
Using Wikidata property (P1146):
{{World Athletics}}
{{World Athletics | name= NAME }}
Simplified usage with Wikidata
[ସମ୍ପାଦନା]The two pieces of information in this template can be automatically populated.
- The id can be fed automatically from Wikidata if the ID field is left empty.
- If a World Athletics 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 World Athletics ID. Enter the ID and save. This ID can now be automatically used across all Wikipedia's languages.
- After the World Athletics ID has been added to the athlete's Wikidata, placing
{{World Athletics}}
in the athlete's Wikipedia article will generate the link successfully.
- 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 World Athletics profile and "id" number:
- Go to https://www.worldathletics.org/athletes
- Find the athlete using the web page navigation (name and/or country).
- The URL of the athlete's profile will look something like this:
https://www.worldathletics.org/athletes/united-states/carl-lewis-14244008
- The number at the end of the URL is the "id" (in this case, 14244008)
- Edit the article and insert the following text (assuming you are adding the link to the External links section):
* {{World Athletics|14244008}}
- 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 World Athletics 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
[ସମ୍ପାଦନା]Usage:
* {{World Athletics | 14244008 | Carl Lewis }}
* {{World Athletics | 1622 | Carl Lewis }}
Output:
URLs with new ID:
- https://www.worldathletics.org/athletes/united-states/carl-lewis-14244008
- https://www.worldathletics.org/athletes/_/14244008
- https://www.worldathletics.org/athletes/athlete=14244008
- https://www.worldathletics.org/athletes/biographies?athcode=14244008
- https://www.worldathletics.org/athletes/biographies/athcode=14244008 (archive)
URLs with old ID:
- https://www.worldathletics.org/athletes/united-states/carl-lewis-1622
- https://www.worldathletics.org/athletes/_/1622
- https://www.worldathletics.org/athletes/athlete=1622
- https://www.worldathletics.org/athletes/biographies?athcode=1622
- https://www.worldathletics.org/athletes/biographies/athcode=1622 (archive)
Named parameters
[ସମ୍ପାଦନା]Usage:
* {{World Athletics |id= 014344125 |name= Klaus Thiele }}
Output:
URLs:
- https://www.worldathletics.org/athletes/germany/klaus-thiele-014344125
- https://www.worldathletics.org/athletes/_/014344125
- https://www.worldathletics.org/athletes/athlete=014344125 (does not work for this ID)
- https://www.worldathletics.org/athletes/biographies?athcode=014344125 (does not work for this ID)
- https://www.worldathletics.org/athletes/biographies/athcode=014344125 (does not work for this ID)
No parameters and Wikidata property not defined
[ସମ୍ପାଦନା]Usage:
{{World Athletics}}
Output:
- {{World Athletics}} template missing ID and not present in Wikidata.
TemplateData
[ସମ୍ପାଦନା]TemplateData for World Athletics
This template displays an external link to an athlete's profile at the official website of World Athletics, the international governing body for the sport of athletics. It was formerly known as the International Association of Athletics Federations (IAAF). The template 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. Examples: 14244008 is the ID portion of https://www.worldathletics.org/athletes/united-states/carl-lewis-14244008; 014344125 is the ID portion of https://www.worldathletics.org/athletes/germany/klaus-thiele-014344125. This parameter is optional if Wikidata property P1146 exists, but required if not.
| Number | 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 athlete. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(athlete)".
| String | optional |
Tracking categories
[ସମ୍ପାଦନା]"id" parameter exists
- Category:World Athletics template with ID not in Wikidata (୦)
- Category:World Athletics template with ID different from Wikidata (୦)
"id" parameter missing and Wikidata property does not exist
See also
[ସମ୍ପାଦନା]- {{European Athletics}}
- {{Tilastopaja}}
- {{TFRRS}}
See also
[ସମ୍ପାଦନା]