Template:K League player
{{{name}}} – K League stats at kleague.com (in Korean)
This template tracks the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
This template uses Lua: |
Template:K League player displays an external link to an association football (soccer) player's profile at the official website of K League (Korea Professional Football League). It is intended for use in the external links section of an article.
By default, the linked page will be displayed in Korean. This may be changed at the kleague.com main page by clicking on the ENGLISH link in the upper right corner, which will set an HTTP cookie causing all subsequently viewed pages to be displayed in English.
Usage
Unnamed parameters:
{{K League player | ID }}
{{K League player | ID | NAME }}
Named parameters:
{{K League player | id= ID }}
{{K League player | id= ID | name= NAME }}
Using Wikidata property (P3053):
{{K League player}}
{{K League player | name= NAME }}
Examples
Unnamed parameters
Example for Kim Shin-wook (김신욱, born 14 April 1988).
Usage:
* {{K League player | 20090020 | Kim Shin-wook }}
Output:
- Kim Shin-wook – K League stats at kleague.com (in Korean)
Current URL:
Former URL:
- http://www.kleague.com/en/content/playersearch?playercode=20090020 (archive)
Named parameters
Example for Cho Young-wook (조영욱, born 5 February 1999).
Usage:
* {{K League player | id= 20180073 | name= Cho Young-wook }}
Output:
- Cho Young-wook – K League stats at kleague.com (in Korean)
Current URL:
Former URL:
- http://www.kleague.com/en/content/playersearch?playercode=20180073 (archive)
No parameters and Wikidata property not defined
Usage:
* {{K League player}}
Output:
- K League player – K League stats at kleague.com (in Korean)
TemplateData
TemplateData for K League player
<templatedata> {
"description": "This template Template:displays an external link to an association football (soccer) player's profile at the official website of K League (Korea Professional Football League). It is intended for use in the external links section of an article. By default, the linked page will be displayed in Korean. This may be changed at the kleague.com main page by clicking on the ENGLISH link in the upper right corner, which will set an HTTP cookie causing all subsequently viewed pages to be displayed in English.", "params": { "id": { "label": "id", "aliases": ["1"], "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 20090020 is the ID portion of http://www.kleague.com/club/player?player=20090020. This parameter is optional if Wikidata property P3053 exists, but required if not.", "type": "number", "required": false, "default": "Wikidata property P3053" }, "name": { "label": "name", "aliases": ["2"], "description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify the link text, which should be the name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(footballer)\" or \"(soccer)\".", "type": "string", "required": false, "default": "K League player" } }, "paramOrder": [ "id", "name" ]
} </templatedata>
Tracking categories
- template with ID
- Category:K League player ID different from Wikidata (0)
- Category:K League player ID not in Wikidata (1)
- template missing ID
The above documentation is transcluded from Template:K League player/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |