Template:Scorebar/doc

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

Template:Scorebar displays an external link or citation for an association football (soccer) player's statistics at Scorebar.com.

Omit ID to use the Wikidata property. Omit NAME to use Wikipedia article name as link text.

[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/
[edit source]
ID with name (name can be omitted if template used in article for Erling Haaland)
* {{Scorebar | erling-haaland/441484 | Erling Haaland }}
* {{Scorebar | id = 441484 | name = Erling Haaland }}

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]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Scorebar in articles based on its TemplateData.

TemplateData for Scorebar

This template displays an external link or citation for an association football (soccer) player's statistics at Scorebar.com.

Template parameters

ParameterDescriptionTypeStatus
Player IDid 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.

Default
Wikidata property P2369
Stringoptional
Player 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
Access Dateaccess-date accessdate

Date that the URL was accessed. If specified, the output is formatted as a web citation.

Dateoptional
Citationcitation

If a value is given, the output is formatted as a web citation. Useful when a citation is needed without an access date.

Stringoptional

See also

[edit source]