Template:Scorebar/doc
| icon | This is a documentation subpage for Template:Scorebar. It may contain usage information, categories and other content that is not part of the original template page. |
| File:Lua-Logo.svg | This template uses Lua: |
Template:Scorebar displays an external link or citation for an association football (soccer) player's statistics at Scorebar.com.
Usage
[edit source]Omit ID to use the Wikidata property. Omit NAME to use Wikipedia article name as link text.
External link
[edit source]{{Scorebar | ID | NAME }}{{Scorebar | id = ID | name = NAME }}
Citation with access-date
[edit source]{{Scorebar | ID | NAME | access-date = DATE }}{{Scorebar | id = ID | name = NAME | access-date = DATE }}
Citation without access-date
[edit source]{{Scorebar | ID | NAME | citation = yes }}{{Scorebar | id = ID | name = NAME | citation = yes }}
Examples
[edit source]- URLs
- https://www.scorebar.com/players/erling-haaland/441484/
- https://www.scorebar.com/players/-/441484/
As external link
[edit source]- ID with name (name can be omitted if template used in article for Erling Haaland)
* {{Scorebar | erling-haaland/441484 | Erling Haaland }}- Erling Haaland at Scorebar
* {{Scorebar | id = 441484 | name = Erling Haaland }}- Erling Haaland at Scorebar
As citation with access-date
[edit source]- ID with name (name can be omitted if template used in article for Erling Haaland)
{{Scorebar | 441484 | Erling Haaland | access-date = 23 June 2026 }}- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
{{Scorebar | id = erling-haaland/441484 | name = Erling Haaland | access-date = June 23, 2026 }}- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
As citation without access-date
[edit source]- ID with name (name can be omitted if template used in article for Erling Haaland)
{{Scorebar | erling-haaland/441484 | Erling Haaland | citation = yes }}- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
{{Scorebar | id = 441484 | name = Erling Haaland | citation = yes }}- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
No ID in template and Wikidata property not defined
[edit source]- Usage
- * {{Scorebar}}
- Output
-
- Scorebar/doc at ScorebarLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
TemplateData
[edit source]TemplateData for Scorebar
This template displays an external link or citation for an association football (soccer) player's statistics at Scorebar.com.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Player ID | id 1 | The ID portion of the Scorebar player URL, such as erling-haaland/441484 or 441484 in https://www.scorebar.com/players/erling-haaland/441484/. This parameter is optional if Wikidata property P2369 exists, but required if not.
| String | optional |
| Player 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 |
| Access Date | access-date accessdate | Date that the URL was accessed. If specified, the output is formatted as a web citation. | Date | optional |
| Citation | citation | If a value is given, the output is formatted as a web citation. Useful when a citation is needed without an access date. | String | optional |
See also
[edit source]