Template:Sofascore
This template uses Lua: |
Template:Sofascore displays an external link to a sportperson's profile at the Sofascore website.
Usage
[edit]- Unnamed parameters
{{Sofascore | ID }}
{{Sofascore | ID | NAME }}
- Named parameters
{{Sofascore | id= ID }}
{{Sofascore | id= ID | name= NAME }}
{{Sofascore | id= ID | name= NAME | access-date= DATE }}
- Using Wikidata property
{{Sofascore}}
{{Sofascore | name= NAME }}
{{Sofascore | name= NAME | access-date= DATE }}
Examples
[edit]Unnamed parameters
[edit]Example for handball player Veronika Dvořáková:
- URLs
- https://www.sofascore.com/player/dvorakova-veronika/912491
- https://www.sofascore.com/player/-/912491 (redirect to URL above)
- Usage
{{Sofascore | dvorakova-veronika/912491 | Veronika Dvořáková }}
{{Sofascore | 912491 | Veronika Dvořáková }}
- Output
- Veronika Dvořáková at Sofascore
- Veronika Dvořáková at Sofascore
Named parameters
[edit]Example for association football (soccer) player Luka Modrić:
- URLs
- https://www.sofascore.com/player/luka-modric/15466
- https://www.sofascore.com/player/-/15466 (redirect to URL above)
- Usage
{{Sofascore | id= luka-modric/15466 | name= Luka Modrić | access-date= 21 November 2024 }}
{{Sofascore | id= 15466 | name= Luka Modrić | access-date= 21 November 2024 }}
- Output
- Luka Modrić at Sofascore. Retrieved 21 November 2024.
- Luka Modrić at Sofascore. Retrieved 21 November 2024.
No parameters and Wikidata property not defined
[edit]- Usage
{{Sofascore}}
- Output
- {{Sofascore}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for Sofascore
This template displays an external link to a sportperson's profile at the Sofascore website.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The ID portion of the URL, such as luka-modric/15466 or 15466 in https://www.sofascore.com/player/luka-modric/15466. This parameter is optional if Wikidata property P12302 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 "(handballer)".
| String | optional |
Access Date | access-date accessdate | The date when the Soccerway profile was last accessed. It allows the template to be used as a reference, rather than as an external link. This parameter is optional. | Date | optional |
See also
[edit]- {{GSA player}}
- {{Soccerway}}