Difference between revisions of "Template:Athletic Bilbao profile/doc"
blackwiki>Zyxw (update examples) |
blackwiki>Zyxw (update example) |
||
| Line 22: | Line 22: | ||
; ID and "name" parameters | ; ID and "name" parameters | ||
: <code><nowiki>{{Athletic Bilbao profile|842|eboveda|name=Eneko Bóveda}}</nowiki></code> | : <code><nowiki>{{Athletic Bilbao profile|842|eboveda|name=Eneko Bóveda}}</nowiki></code> | ||
| − | : {{Athletic Bilbao profile|842|eboveda| | + | : {{Athletic Bilbao profile|842|eboveda|name=Eneko Bóveda}} |
; ID and "title" parameters | ; ID and "title" parameters | ||
Revision as of 04:49, 16 August 2017
| This is a documentation subpage for Template:Athletic Bilbao profile. It contains usage information, categories and other content that is not part of the original template page. |
Template:Athletic Bilbao profile displays an external link to a player profile in English at the official website of Athletic Bilbao. It is intended for use in the external links section of an article.
Usage
{{Athletic Bilbao profile|id|name}}
The unnamed parameters id and name are the number and player name in the Athletic Bilbao url.
The optional parameter |title=title will display title on the link instead of the default "Athletic Bilbao profile".
The optional parameter |urlonly=yes will only return the url and not a formatted link.
Examples
For the profile of Eneko Bóveda at http://www.athletic-club.eus/en/players/842/eboveda.html:
- ID parameters only (uses the current page name as link text)
{{Athletic Bilbao profile|842|eboveda}}- Template:PAGENAMEBASE at Athletic Bilbao
- ID and "name" parameters
{{Athletic Bilbao profile|842|eboveda|name=Eneko Bóveda}}- Eneko Bóveda at Athletic Bilbao
- ID and "title" parameters
{{Athletic Bilbao profile|842|eboveda|title=Eneko Bóveda profile at Athletic Bilbao}}- Eneko Bóveda profile at Athletic Bilbao
- ID and "urlonly" parameters
{{Athletic Bilbao profile|842|eboveda|urlonly=yes}}- https://www.athletic-club.eus/en/players/842
The name eboveda cannot in general be guessed from the player's real name. It must be copied from the url like 842.
Athletic Bilbao's website has a history of changing url's. If they change again then this template can be updated and it will hopefully not be necessary to edit uses of the template.