Template:Chinese Olympic Committee profile/doc

From blackwiki
Jump to navigation Jump to search

Template:Uses Wikidata

Template:Chinese Olympic Committee profile displays an external link to an athlete's profile at data.star.sports.cn, an official website of the Chinese Olympic Committee. It is intended for use in the external links section of an article.

Usage

Unnamed parameters
{{Chinese Olympic Committee profile | ID }}
{{Chinese Olympic Committee profile | ID | NAME }}
Named parameters
{{Chinese Olympic Committee profile | id= ID }}
{{Chinese Olympic Committee profile | id= ID | name= NAME }}
Using Wikidata property Template:Property
{{Chinese Olympic Committee profile}}
{{Chinese Olympic Committee profile | name= NAME }}

Examples

Unnamed parameters

Usage
* {{Chinese Olympic Committee profile | 16317 | Li Xiaoxia }}
Output
URLs
http://data.star.sports.cn/person_en.php?id=16317 (in English)
http://data.star.sports.cn/person.php?id=16317 (in Chinese)

Named parameters

Usage
* {{Chinese Olympic Committee profile | id= 16020 | name= Cao Yuan }}
Output
URLs
http://data.star.sports.cn/person_en.php?id=16020 (in English)
http://data.star.sports.cn/person.php?id=16020 (in Chinese)

No parameters and Wikidata property not defined

Usage
* {{Chinese Olympic Committee profile}}
Output

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Chinese Olympic Committee profile

This template displays an external link to an athlete's profile at data.star.sports.cn, an official website of the Chinese Olympic Committee. 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: 16317 is the ID portion of http://data.star.sports.cn/person_en.php?id=16317 or http://data.star.sports.cn/person.php?id=16317. This parameter is optional if Wikidata property P4068 exists, but required if not.

Default
Wikidata property P4068
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

See also