Difference between revisions of "Template:Athletic Bilbao profile/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>PrimeHunter
(Create documentation for Template:Athletic Bilbao profile)
 
m (5 revisions imported)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
  
[[Template:Athletic Bilbao profile]] displays an external link to a player profile in English at the official website of [[Athletic Bilbao]].
+
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a player profile in English at the official website of [[Athletic Bilbao]]. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
  
 
==Usage==
 
==Usage==
===Syntax===
+
<code><nowiki>{{Athletic Bilbao profile|</nowiki>''id-number''|''id-string''<nowiki>}}</nowiki></code>
<code><nowiki>{{Athletic Bilbao profile|</nowiki>''id''|''name''<nowiki>}}</nowiki></code>
 
  
The unnamed parameters ''id'' and ''name'' are the number and player name in the Athletic Bilbao url.
+
<code><nowiki>{{Athletic Bilbao profile|id=</nowiki>''id-number''/''id-string''<nowiki>}}</nowiki></code>
 +
 
 +
The unnamed parameters ''id-number'' and ''id-string'' are the number and player name in the Athletic Bilbao url.
  
 
The optional parameter <code>|title=''title''</code> will display ''title'' on the link instead of the default "Athletic Bilbao profile".
 
The optional parameter <code>|title=''title''</code> will display ''title'' on the link instead of the default "Athletic Bilbao profile".
Line 13: Line 15:
 
The optional parameter <code>|urlonly=yes</code> will only return the url and not a formatted link.
 
The optional parameter <code>|urlonly=yes</code> will only return the url and not a formatted link.
  
===Example===
+
==Examples==
* <code><nowiki>{{Athletic Bilbao profile|842|eboveda}}</nowiki></code>
+
For the profile of [[Eneko Bóveda]] at http://www.athletic-club.eus/en/players/842/eboveda.html:
The above code for the profile of [[Eneko Bóveda]] at http://www.athletic-club.eus/en/players/842/eboveda.html produces:
+
 
*{{Athletic Bilbao profile|842|eboveda}}
+
; ID parameters only (uses the current page name as link text)
 +
: <code><nowiki>{{Athletic Bilbao profile|842|eboveda}}</nowiki></code>
 +
: {{Athletic Bilbao profile|842|eboveda}}
 +
: <code><nowiki>{{Athletic Bilbao profile|id=842/eboveda}}</nowiki></code>
 +
: {{Athletic Bilbao profile|id=842/eboveda}}
 +
 
 +
; ID and "name" parameters
 +
: <code><nowiki>{{Athletic Bilbao profile|842|eboveda|name=Eneko Bóveda}}</nowiki></code>
 +
: {{Athletic Bilbao profile|842|eboveda|name=Eneko Bóveda}}
 +
: <code><nowiki>{{Athletic Bilbao profile|id=842/eboveda|name=Eneko Bóveda}}</nowiki></code>
 +
: {{Athletic Bilbao profile|id=842/eboveda|name=Eneko Bóveda}}
 +
 
 +
; ID and "title" parameters
 +
: <code><nowiki>{{Athletic Bilbao profile|842|eboveda|title=Eneko Bóveda profile at Athletic Bilbao}}</nowiki></code>
 +
: {{Athletic Bilbao profile|842|eboveda|title=Eneko Bóveda profile at Athletic Bilbao}}
 +
: <code><nowiki>{{Athletic Bilbao profile|id=842/eboveda|title=Eneko Bóveda profile at Athletic Bilbao}}</nowiki></code>
 +
: {{Athletic Bilbao profile|id=842/eboveda|title=Eneko Bóveda profile at Athletic Bilbao}}
 +
 
 +
; ID and "urlonly" parameters
 +
: <code><nowiki>{{Athletic Bilbao profile|842|eboveda|urlonly=yes}}</nowiki></code>
 +
: {{Athletic Bilbao profile|842|eboveda|urlonly=yes}}
 +
: <code><nowiki>{{Athletic Bilbao profile|id=842/eboveda|urlonly=yes}}</nowiki></code>
 +
: {{Athletic Bilbao profile|id=842/eboveda|urlonly=yes}}
  
The name <code>eboveda</code> cannot in general be guessed from the player's real name. It must be copied from the url like <code>842</code>.  
+
The id-string <code>eboveda</code> cannot in general be guessed from the player's real name. It must be copied from the URL like the id-number <code>842</code>.  
  
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.
+
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.
  
<includeonly>
+
<includeonly>{{sandbox other||
 +
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:Association football external link templates]]
 
[[Category:Association football external link templates]]
</includeonly>
+
[[Category:People and person external link templates]]
 +
}}</includeonly>

Latest revision as of 11:54, 29 October 2020

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}}
https://www.athletic-club.eus/en/players/842
{{Athletic Bilbao profile|id=842/eboveda|urlonly=yes}}
https://www.athletic-club.eus/en/players/842/eboveda

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.