Template:CFF player/doc
This is a documentation subpage for Template:CFF player. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Template:CFF player displays an external link to an association football (soccer) player's page at HNS.team (formerly HNS-CFF.hr), an official website of the Croatian Football Federation (Croatian: Hrvatski nogometni savez, HNS). It is intended for use in the external links section of an article.
Usage
[edit]- Unnamed parameters
{{CFF player | ID }}
{{CFF player | ID | NAME }}
- Named parameters
{{CFF player | id= ID }}
{{CFF player | id= ID | name= NAME }}
- Using Wikidata property
{{CFF player}}
{{CFF player | name= NAME }}
Examples
[edit]Unnamed parameters
[edit]- Usage
* {{CFF player | 14831/vedran-corluka | Vedran Ćorluka }}
* {{CFF player | 14831 | Vedran Ćorluka }}
- Output
- URLs with full ID
- https://hns.team/en/players/14831/vedran-corluka/
- https://hns.team/igraci/14831/vedran-corluka/ (in Croatian)
- https://hns-cff.hr/en/players/14831/vedran-corluka/
- https://hns-cff.hr/players/14831/vedran-corluka/ (in Croatian)
- URLs with numeric ID
- https://hns.team/en/players/14831/-/
- https://hns.team/igraci/14831/-/ (in Croatian)
- https://hns-cff.hr/en/players/14831/-/
- https://hns-cff.hr/players/14831/-/ (in Croatian)
Named parameters
[edit]- Usage
* {{CFF player | id= 136326/jorge-sammir-cruz-campos | name= Jorge Sammir Cruz Campos }}
* {{CFF player | id= 136326 | name= Jorge Sammir Cruz Campos }}
- Output
- URLs with full ID
- https://hns.team/en/players/136326/jorge-sammir-cruz-campos/
- https://hns.team/igraci/136326/jorge-sammir-cruz-campos/ (in Croatian)
- https://hns-cff.hr/en/players/136326/jorge-sammir-cruz-campos/
- https://hns-cff.hr/players/136326/jorge-sammir-cruz-campos/ (in Croatian)
- URLs with numeric ID
- https://hns.team/en/players/136326/-/
- https://hns.team/igraci/136326/-/ (in Croatian)
- https://hns-cff.hr/en/players/136326/-/
- https://hns-cff.hr/players/136326/-/ (in Croatian)
No parameters and Wikidata property not defined
[edit]- Usage
* {{CFF player}}
- Output
-
- {{CFF player}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for CFF player
This template displays an external link to an association football (soccer) player's page at HNS.team (formerly HNS-CFF.hr), an official website of the Croatian Football Federation (Croatian: Hrvatski nogometni savez, HNS). It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 1 | The ID portion of the URL, such as 14831 or 14831/vedran-corluka in https://hns.team/en/players/14831/vedran-corluka/ or https://hns.team/igraci/14831/vedran-corluka/. This parameter is optional if Wikidata property P3577 exists, but required if not.
| String | optional |
name | name 2 | 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)".
| String | optional |
Tracking categories
[edit]- template with ID
- ID is converted to numeric value before comparison with Wikidata
- 14831/vedran-corluka → 14831
- 14831 → 14831
- template missing ID
See also
[edit]- Template:Hrnogomet for links to Croatian First Football League players at Hrnogomet.com