Template:BeSoccer/doc: Difference between revisions
m update heading |
Fix Linter errors. |
||
(One intermediate revision by one other user not shown) | |||
Line 29: | Line 29: | ||
; Output |
; Output |
||
:* {{{{BASEPAGENAME}} | 137485 | Kazuyoshi Miura }} |
:* {{ {{BASEPAGENAME}} | 137485 | Kazuyoshi Miura }} |
||
:* {{{{BASEPAGENAME}} | kazuyoshi-miura-137485 | Kazuyoshi Miura }} |
:* {{ {{BASEPAGENAME}} | kazuyoshi-miura-137485 | Kazuyoshi Miura }} |
||
; URLs in template |
; URLs in template |
||
: <kbd>[https://www.besoccer.com/player/137485 https://www.besoccer.com/player/{{Highlight|137485}}] |
: <kbd>[https://www.besoccer.com/player/137485 https://www.besoccer.com/player/{{Highlight|137485}}]</kbd> |
||
: <kbd>[https://www.besoccer.com/player/kazuyoshi-miura-137485 https://www.besoccer.com/player/{{Highlight|kazuyoshi-miura-137485}}]</kbd> |
: <kbd>[https://www.besoccer.com/player/kazuyoshi-miura-137485 https://www.besoccer.com/player/{{Highlight|kazuyoshi-miura-137485}}]</kbd> |
||
Line 50: | Line 50: | ||
; Output |
; Output |
||
:* {{{{BASEPAGENAME}} | id= 132060 | name= Fabián Saavedra }} |
:* {{ {{BASEPAGENAME}} | id= 132060 | name= Fabián Saavedra }} |
||
:* {{{{BASEPAGENAME}} | id= f-saavedra-132060 | name= Fabián Saavedra }} |
:* {{ {{BASEPAGENAME}} | id= f-saavedra-132060 | name= Fabián Saavedra }} |
||
; Current URLs |
; Current URLs |
||
Line 65: | Line 65: | ||
; Output |
; Output |
||
:* {{{{BASEPAGENAME}}<!-- -->}} |
:* {{ {{BASEPAGENAME}}<!-- -->}} |
||
== TemplateData == |
== TemplateData == |
||
Line 102: | Line 102: | ||
: kazuyoshi-miura-137485 → {{#invoke:String|match|s=kazuyoshi-miura-137485|pattern=%d+$|ignore_errors=true}} |
: kazuyoshi-miura-137485 → {{#invoke:String|match|s=kazuyoshi-miura-137485|pattern=%d+$|ignore_errors=true}} |
||
: 137485 → {{#invoke:String|match|s=137485|pattern=%d+$|ignore_errors=true}} |
: 137485 → {{#invoke:String|match|s=137485|pattern=%d+$|ignore_errors=true}} |
||
: 20621 → {{#invoke:String|match|s=20621|pattern=%d+$|ignore_errors=true}} |
|||
* {{clc|BeSoccer template with ID different from Wikidata}} |
* {{clc|BeSoccer template with ID different from Wikidata}} |
||
* {{clc|BeSoccer template with ID not in Wikidata}} |
* {{clc|BeSoccer template with ID not in Wikidata}} |
Latest revision as of 13:37, 11 April 2024
This is a documentation subpage for Template:BeSoccer. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
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]Unnamed parameters
[edit]For Kazuyoshi Miura
- Usage
* {{BeSoccer | 137485 | Kazuyoshi Miura }}
* {{BeSoccer | kazuyoshi-miura-137485 | Kazuyoshi Miura }}
- Output
-
- Kazuyoshi Miura at BeSoccer
- Kazuyoshi Miura at BeSoccer
- URLs in template
- https://www.besoccer.com/player/137485
- https://www.besoccer.com/player/kazuyoshi-miura-137485
- Other URLS
- https://es.besoccer.com/jugador/kazuyoshi-miura-137485 (in Spanish)
- https://fr.besoccer.com/joueur/kazuyoshi-miura-137485 (in French)
- https://it.besoccer.com/giocatore/kazuyoshi-miura-137485 (in Italian)
- https://pt.besoccer.com/jogador/kazuyoshi-miura-137485 (in Portuguese)
Named parameters
[edit]For Fabián Saavedra
- Usage
* {{BeSoccer | id= 132060 | name= Fabián Saavedra }}
* {{BeSoccer | id= f-saavedra-132060 | name= Fabián Saavedra }}
- Output
-
- Fabián Saavedra at BeSoccer
- Fabián Saavedra at BeSoccer
- Current URLs
- https://www.besoccer.com/player/132060
- https://www.besoccer.com/player/f-saavedra-132060
- Former URL
- http://www.besoccer.com/player/Fabian-Saavedra (archive 2011-09-05)
No parameters
[edit]- Usage
* {{BeSoccer}}
- Output
-
- {{BeSoccer}} template missing ID and not present in Wikidata.
TemplateData
[edit]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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 1 | The ID portion of the player's URL, such as 137485 in https://www.besoccer.com/player/137485 or kazuyoshi-miura-137485 in https://www.besoccer.com/player/kazuyoshi-miura-137485.
| 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 "(soccer)".
| String | optional |
Tracking categories
[edit]- template with ID
- ID is converted to numeric value before comparison with Wikidata
- kazuyoshi-miura-137485 → 137485
- 137485 → 137485
- Category:BeSoccer template with ID different from Wikidata (0)
- Category:BeSoccer template with ID not in Wikidata (12)
- template missing ID
See also
[edit]- Association football external link templates which convert ID to number before Wikidata comparison
- {{BDFA}}
- {{ESPN FC}}
- {{FootballDatabase.eu}}
- {{FootballFacts.ru}}
- {{NFT player}}