Template:GSA player
{{{name}}} at Global Sports Archive
| This template is used on approximately 2,300 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
Template:GSA player displays an external link or citation for an association football (soccer) player's statistics at GlobalSportsArchive.com.
Usage
External link
- ID without name (uses Wikipedia article name as link text)
{{GSA player | ID }}{{GSA player | id= ID }}
- ID with name
{{GSA player | ID | NAME }}{{GSA player | id= ID | name= NAME }}
- Using Wikidata property
{{GSA player}}{{GSA player | name= NAME }}
Citation with access-date
- ID without name (uses Wikipedia article name as link text)
{{GSA player | ID | access-date = DATE }}{{GSA player | id = ID | access-date = DATE }}
- ID with name
{{GSA player | ID | NAME | access-date = DATE }}{{GSA player | id = ID | name = NAME | access-date = DATE }}
- Using Wikidata property
{{GSA player | access-date= DATE }}{{GSA player | name = NAME | access-date= DATE }}
Examples
As external link
- ID without name (uses Wikipedia article name as link text)
* {{GSA player | hassan-maatouk/44318 }}- GSA player at Global Sports Archive
* {{GSA player | id = hassan-maatouk/44318 }}- GSA player at Global Sports Archive
- ID with name
* {{GSA player | hassan-maatouk/44318 | Hassan Maatouk }}- Hassan Maatouk at Global Sports Archive
* {{GSA player | id = hassan-maatouk/44318 | name = Hassan Maatouk }}- Hassan Maatouk at Global Sports Archive
- Current URL for links using ID in template (highlighted)
- https://globalsportsarchive.com/en/soccer/athlete/hassan-maatouk/44318
- Former URL for links using ID in Wikidata (highlighted), redirects to current URL
- https://globalsportsarchive.com/people/soccer/hassan-maatouk/44318/ (trailing / required)
As citation with access-date
- ID without name (uses Wikipedia article name as link text)
{{GSA player | cristiano-ronaldo/117 | access-date = 17 August 2014 }}- "GSA player". Global Sports Archive. Retrieved 17 August 2014.
{{GSA player | id = cristiano-ronaldo/117 | access-date = 17 August 2014 }}- "GSA player". Global Sports Archive. Retrieved 17 August 2014.
- ID with name
{{GSA player | cristiano-ronaldo/117 | Cristiano Ronaldo | access-date = 2014-08-17 }}- "Cristiano Ronaldo". Global Sports Archive. Retrieved 2014-08-17.
{{GSA player | id = cristiano-ronaldo/117 | name = Cristiano Ronaldo | access-date = 2014-08-17 }}- "Cristiano Ronaldo". Global Sports Archive. Retrieved 2014-08-17.
- Citation without date
{{GSA player | cristiano-ronaldo/117 | Cristiano Ronaldo | citation = yes }}- "Cristiano Ronaldo". Global Sports Archive.
{{GSA player | id = cristiano-ronaldo/117 | name = Cristiano Ronaldo | citation = yes }}- "Cristiano Ronaldo". Global Sports Archive.
- Current URL for links using ID in template (highlighted)
- https://globalsportsarchive.com/en/soccer/athlete/cristiano-ronaldo/117
- Former URL for links using ID in Wikidata (highlighted), redirects to current URL
- https://globalsportsarchive.com/people/soccer/cristiano-ronaldo/117/ (trailing / required)
No ID in template
- Usage
- * {{GSA player}}
- Output
- {{GSA player}} template missing ID and not present in Wikidata.
TemplateData
TemplateData for GSA player
This template displays an external link or citation for an association football (soccer) player's statistics at GlobalSportsArchive.com.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Player ID | 1 id | The ID portion of the URL, such as "cristiano-ronaldo/117" in https://globalsportsarchive.com/en/soccer/athlete/cristiano-ronaldo/117 (current URL) or https://globalsportsarchive.com/people/soccer/cristiano-ronaldo/117/ (former URL, redirects to current URL). This parameter is optional if Wikidata property P11963 exists, but required if not. Wikidata stores this ID as "soccer/cristiano-ronaldo/117", so the template uses the former URL when using Wikidata.
| String | optional |
| Player Name | 2 name | 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 |