Template:JAAF displays an external link to an athlete's profile at JAAF.or.jp, the official website of the Japan Association of Athletics Federations. It is intended for use in the external links section of an article.

Usage

edit

Unnamed parameters:

{{JAAF | ID }}
{{JAAF | ID | NAME }}

Named parameters:

{{JAAF | id= ID }}
{{JAAF | id= ID | name= NAME }}

Using Wikidata property JAAF athlete ID (P5073):

{{JAAF}}
{{JAAF | name= NAME }}

Simplified usage with Wikidata

edit

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 an JAAF 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 JAAF ID. Enter the ID and save. This ID can now be automatically used across all Wikipedia's languages.
    • After the JAAF ID has been added to the athlete's Wikidata, placing {{JAAF}} 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. Sayaka Aoki (athlete)) will be stripped from the name automatically.

How to find the "id" number

edit

To find an athlete's JAAF profile and "id" number:

  1. Go to https://www.jaaf.or.jp
  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://www.jaaf.or.jp/player/profile/sayaka_aoki/
    The name at the end of the URL is the "id" (in this case, sayaka_aoki)
  4. Edit the article and insert the following text (assuming you are adding the link to the External links section):
    * {{JAAF|sayaka_aoki}}
  5. 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 JAAF database currently only covers Japanese national level athletes.

Examples

edit

Unnamed parameters

edit

Usage:

* {{JAAF | daichi_sawano | Daichi Sawano }}

Output:

URL:

https://www.jaaf.or.jp/player/profile/daichi_sawano/

Old URLs:

https://www.jaaf.or.jp/fan/player/men004.html (redirect to above)
http://www.rikuren.or.jp/fan/player/men004.html (archive)
http://www.rikuren.or.jp/fan/player/men004.php (archive)

Named parameters

edit

Usage:

* {{JAAF |id= sayaka_aoki |name= Sayaka Aoki }}

Output:

Current URL:

https://www.jaaf.or.jp/player/profile/sayaka_aoki/

Old URLs:

https://www.jaaf.or.jp/fan/player/wom013.html (redirect to above)
http://www.rikuren.or.jp/fan/player/wom013.html (archive)
http://www.rikuren.or.jp/fan/player/wom013.php

No parameters and Wikidata property not defined

edit

Usage:

* {{JAAF}}

Output:

  • {{JAAF}} template missing ID and not present in Wikidata.

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:JAAF in articles based on its TemplateData.

TemplateData for JAAF

This template displays an external link to an athlete's profile at JAAF.or.jp, the official website of the Japan Association of Athletics Federations. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: sayaka_aoki is the ID portion of https://www.jaaf.or.jp/player/profile/sayaka_aoki/. This parameter is optional if Wikidata property P5073 exists, but required if not.

Default
Wikidata property P5073
Numberoptional
namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

edit
template with ID
template missing ID