Jump to content

Template:Sofascore/doc

From Wikipedia, the free encyclopedia

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= 14 November 2024 }}
{{Sofascore | id= 15466 | name= Luka Modrić | access-date= 14 November 2024 }}
Output
Luka Modrić at Sofascore. Retrieved 14 November 2024.
Luka Modrić at Sofascore. Retrieved 14 November 2024.

No parameters and Wikidata property not defined

[edit]
Usage
{{Sofascore}}
Output
{{Sofascore}} 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:Sofascore in articles based on its TemplateData.

TemplateData for Sofascore

This template displays an external link to a sportperson's profile at the Sofascore website.

Template parameters

ParameterDescriptionTypeStatus
IDid 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.

Default
Wikidata property P12302
Stringoptional
Namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional
Access Dateaccess-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.

Dateoptional

See also

[edit]