Jump to content

සැකිල්ල:World Athletics/doc

විකිපීඩියා වෙතින්

සැකිල්ල: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.

Unnamed parameters
{{World Athletics | ID }}
{{World Athletics | ID | NAME }}
Named parameters
{{World Athletics | id= ID }}
{{World Athletics | id= ID | name= NAME }}
Using Wikidata property
{{World Athletics}}
{{World Athletics | name= NAME }}
Using nocat parameter
The additional parameter | nocat=y may be added to exclude the page from tracking categories. For example, on the article for the year 1947, the following code could be used so that a reference to Amos Biwott's date of birth could be used without causing an alert because the Wikidata item for the page 1947 doesn't have a World Athletics identifier:
{{World Athletics | 14354711 | Amos Biwott | nocat= y }}
{{World Athletics | id= 14354711 | name= Amos Biwott | nocat= y }}

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 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.
  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

[සංස්කරණය]

To find an athlete's World Athletics profile and ID:

  1. Go to https://worldathletics.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://worldathletics.org/athletes/united-states/carl-lewis-14244008
    The number at the end of the URL is the ID (in this case, 14244008)
  4. Edit the article and insert the following text (assuming you are adding the link to the External links section):
    * {{World Athletics|14244008}}
    * {{World Athletics|id=14244008}}
  5. The template will also accept the full ID which includes the athlete's country and name:
    https://worldathletics.org/athletes/united-states/carl-lewis-14244008
    * {{World Athletics|united-states/carl-lewis-14244008}}
    * {{World Athletics|id=united-states/carl-lewis-14244008}}
  6. 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.

Unnamed parameters

[සංස්කරණය]
Usage
* {{World Athletics | 14244008 | Carl Lewis }}
* {{World Athletics | united-states/carl-lewis-14244008 | Carl Lewis }}
Output
URLs in template
https://worldathletics.org/athletes/-/14244008 (does not redirect to full URL)
https://worldathletics.org/athletes/united-states/carl-lewis-14244008 (full URL)
Other URLs
https://www.worldathletics.org/athletes/athlete=14244008 (redirects to full URL with country and name)
https://www.worldathletics.org/athletes/biographies?athcode=14244008 (redirects to full URL)
https://www.worldathletics.org/athletes/biographies/athcode=14244008 (archive)

Named parameters

[සංස්කරණය]
Usage
* {{World Athletics |id= 14344125 |name= Klaus Thiele }}
* {{World Athletics |id= germany/klaus-thiele-14344125 |name= Klaus Thiele }}
Output
URLs in template
https://worldathletics.org/athletes/-/14344125 (does not redirect to full URL)
https://worldathletics.org/athletes/germany/klaus-thiele-14344125 (full URL)
Other URLs
https://www.worldathletics.org/athletes/athlete=14344125 (does not work for this ID)
https://www.worldathletics.org/athletes/biographies?athcode=14344125 (does not work for this ID)
https://www.worldathletics.org/athletes/biographies/athcode=14344125 (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.
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this 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.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The ID portion of the URL, such as 14244008 or united-states/carl-lewis-14244008 in https://worldathletics.org/athletes/united-states/carl-lewis-14244008. This parameter is optional if Wikidata property P1146 exists, but required if not.

Default
Wikidata property P1146
Stringoptional
namename 2

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
nocatnocat

This parameter should only be used in cases where the target of the template link is not the subject of the article. The additional parameter | nocat=y may be added to exclude the page from tracking categories. For example, on the article for the year [[1947]], the following code could be used so that a reference to [[Amos Biwott]]'s date of birth could be used without causing an alert because the Wikidata item for the page [[1947]] doesn't have a World Athletics identifier: {{World Athletics|14354711|Amos Biwott|nocat=y}}

Stringoptional

Tracking categories

[සංස්කරණය]
template with ID
ID is converted to numeric value before comparison with Wikidata
united-states/carl-lewis-14244008 → 14244008
14244008 → 14244008
template missing ID


"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:World_Athletics/doc&oldid=686163" වෙතින් සම්ප්‍රවේශනය කෙරිණි