Difference between revisions of "Template:Athletic Bilbao profile"
blackwiki>Zyxw (if "urlonly" or "title" not specified, use standard format for sportsperson external link templates) |
blackwiki>Zyxw (allow "id" parameter in place of unnamed parameters 1 and 2) |
||
| Line 1: | Line 1: | ||
{{#if: {{{urlonly|}}} | {{#if: {{{urlonly|}}} | ||
| − | | http://www.athletic-club.eus/en/players/{{{1 | + | | http://www.athletic-club.eus/en/players/{{#if: {{{id|}}} | {{{id}}} | {{{1}}}/{{{2}}} }}.html |
| {{#if: {{{title|}}} | | {{#if: {{{title|}}} | ||
| − | | [http://www.athletic-club.eus/en/players/{{{1 | + | | [http://www.athletic-club.eus/en/players/{{#if: {{{id|}}} | {{{id}}} | {{{1}}}/{{{2}}} }}.html {{{title}}}] |
| − | | [http://www.athletic-club.eus/en/players/{{{1}}}/{{{2}}}.html {{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}] at [[Athletic Bilbao]] | + | | [http://www.athletic-club.eus/en/players/{{#if: {{{id<includeonly>|</includeonly>}}} | {{{id}}} | {{{1}}}/{{{2}}} }}.html {{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}] at [[Athletic Bilbao]] |
}} | }} | ||
Revision as of 03:14, 25 November 2017
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-number|id-string}}
{{Athletic Bilbao profile|id=id-number/id-string}}
The unnamed parameters id-number and id-string 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
{{Athletic Bilbao profile|id=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
{{Athletic Bilbao profile|id=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
{{Athletic Bilbao profile|id=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}}- http://www.athletic-club.eus/en/players/842/eboveda.html
{{Athletic Bilbao profile|id=842/eboveda|urlonly=yes}}- http://www.athletic-club.eus/en/players/842/eboveda.html
The id-string eboveda cannot in general be guessed from the player's real name. It must be copied from the URL like the id-number 842.
Athletic Bilbao's website has a history of changing URLs. If they change again then this template can be updated and it will hopefully not be necessary to edit uses of the template.
| The above documentation is transcluded from Template:Athletic Bilbao profile/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |