Jump to content

Template:BeSoccer/doc

From Wikipedia, the free encyclopedia

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

Usage

[edit]
Unnamed parameters
{{BeSoccer | ID }}
{{BeSoccer | ID | NAME }}
Named parameters
{{BeSoccer | id= ID }}
{{BeSoccer | id= ID | name= NAME }}
Using Wikidata property
{{BeSoccer}}
{{BeSoccer | name= NAME }}

Examples

[edit]

URL with a number

[edit]
Usage in Fabián Saavedra
* {{BeSoccer | f-saavedra-132060 }}
* {{BeSoccer}}
Output
URL as found at BeSoccer.com
https://www.besoccer.com/player/f-saavedra-132060
URL with numeric ID, as shown in URL and used in Wikidata
https://www.besoccer.com/player/132060
URLs for other languages
https://es.besoccer.com/jugador/f-saavedra-132060 (in Spanish)
https://fr.besoccer.com/joueur/f-saavedra-132060 (in French)
https://it.besoccer.com/giocatore/f-saavedra-132060 (in Italian)
https://pt.besoccer.com/jogador/f-saavedra-132060 (in Portuguese)
Former URL
http://www.besoccer.com/player/Fabian-Saavedra (archive 2011-09-05)

URL without a number

[edit]
Usage in Babett Peter
* {{BeSoccer | babett-peter }}
* {{BeSoccer}}
Output
URL as found at BeSoccer.com
https://www.besoccer.com/player/babett-peter
URL with numeric ID shown in source of player's page, e.g. { alias: "babett-peter", ID: 277650, name: "B. Peter"}
https://www.besoccer.com/player/277650
Current URLs for other languages
https://es.besoccer.com/jugador/babett-peter (in Spanish)
https://fr.besoccer.com/joueur/babett-peter (in French)
https://it.besoccer.com/giocatore/babett-peter (in Italian)
https://pt.besoccer.com/jogador/babett-peter (in Portuguese)

No parameters and Wikidata property not defined

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

TemplateData for BeSoccer

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

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The ID portion of the player's URL, such as f-saavedra-132060 in https://www.besoccer.com/player/f-saavedra-132060 or babett-peter in https://www.besoccer.com/player/babett-peter. This parameter is optional if Wikidata property P12577 exists, but required if not.

Default
Wikidata property P12577 (uses number only when ID contains one, such as 132060 instead of f-saavedra-132060)
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]
template with ID
ID containing a number is converted to numeric value before comparison with Wikidata
f-saavedra-132060 → 132060
132060 → 132060
babett-peter → babett-peter
template missing ID

See also

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