Template:FBref player/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:FBref player displays an external link to an association football (soccer) player's profile at FBref.com. It is intended for use in the external links section of an article.

Unnamed parameters
* {{FBref player | ID }}
* {{FBref player | ID | NAME }}
Named parameters
* {{FBref player | id= ID }}
* {{FBref player | id= ID | name= NAME }}
Using Wikidata property
* {{FBref player}}
* {{FBref player | name= NAME }}

Examples

[edit source]

Unnamed parameters

[edit source]
Usage
* {{FBref player | 8b7ddf10/Megan-Rapinoe | Megan Rapinoe }}
* {{FBref player | 8b7ddf10 | Megan Rapinoe }}
Output
URLs (in English)
https://fbref.com/en/players/8b7ddf10/Megan-Rapinoe
https://fbref.com/en/players/8b7ddf10/ (redirect to URL above)
URLs (in other languages)
https://fbref.com/de/joueurs/8b7ddf10/Megan-Rapinoe
https://fbref.com/fr/joueurs/8b7ddf10/Megan-Rapinoe
https://fbref.com/it/joueurs/8b7ddf10/Megan-Rapinoe
https://fbref.com/es/jugadores/8b7ddf10/Megan-Rapinoe
https://fbref.com/pt/jugadores/8b7ddf10/Megan-Rapinoe

Named parameters

[edit source]
Usage
* {{FBref player | id= 45a03961/Benjamin-Pavard | name= Benjamin Pavard }}
* {{FBref player | id= 45a03961 | name= Benjamin Pavard }}
Output
URLs (in English)
https://fbref.com/en/players/45a03961/Benjamin-Pavard
https://fbref.com/en/players/45a03961/ (redirect to URL above)
URLs (in other languages)
https://fbref.com/de/joueurs/45a03961/Benjamin-Pavard
https://fbref.com/fr/joueurs/45a03961/Benjamin-Pavard
https://fbref.com/it/joueurs/45a03961/Benjamin-Pavard
https://fbref.com/es/jugadores/45a03961/Benjamin-Pavard
https://fbref.com/pt/jugadores/45a03961/Benjamin-Pavard

No parameters and Wikidata property not defined

[edit source]
Usage
{{FBref player}}
Output
FBref player/doc at FBref.comLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).

TemplateData

[edit source]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:FBref player in articles based on its TemplateData.

TemplateData for FBref player

This template displays an external link to an association football (soccer) player's profile at FBref.com. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The ID portion of the URL, such as 8b7ddf10/Megan-Rapinoe or 8b7ddf10 in https://fbref.com/en/players/8b7ddf10/Megan-Rapinoe or 8b7ddf10 in https://fbref.com/en/players/8b7ddf10/. This parameter is optional if Wikidata property P5750 exists, but required if not.

Default
Wikidata property P5750 (uses the 8-digit hexadecimal number)
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 "(soccer)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

[edit source]
template with ID
Only the 8-digit hexadecimal number at the start of the ID is compared with Wikidata
8b7ddf10/Megan-Rapinoe → 8b7ddf10
8b7ddf10 → 8b7ddf10
template missing ID

See also

[edit source]
Association football external link templates which convert ID to number before Wikidata comparison