Template:FBref player/doc

From Wikipedia, the free encyclopedia

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.

Usage[edit]

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 ID (P5750)
* {{FBref player}}
* {{FBref player | name= NAME }}

Examples[edit]

Unnamed parameters[edit]

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]

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]

Usage
{{FBref player}}
Output
{{FBref player}} 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: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 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
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

See also[edit]