Difference between revisions of "Template:CapFriendly"
imported>JimmyBanks6 (←Created page with '[https://www.capfriendly.com/players/{{Trim|{{{1|{{{id<includeonly>|</includeonly>}}}}}}}} {{{2|{{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}}}} player...') |
imported>Zyxw m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB) |
||
| Line 14: | Line 14: | ||
=== Unnamed parameters === | === Unnamed parameters === | ||
''URLs:'' | ''URLs:'' | ||
| − | : < | + | : <kbd>[https://www.capfriendly.com/players/eric-staal https://www.capfriendly.com/ice/players/{{hilite|eric-staal}}]</kbd> |
| − | : < | + | : <kbd>[https://www.capfriendly.com/players/sidney-crosby https://www.capfriendly.com/players/{{hilite|sidney-crosby}}]</kbd> |
| − | : < | + | : <kbd>[https://www.capfriendly.com/players/daniel-alfredsson https://www.capfriendly.com/players/{{hilite|daniel-alfredsson}}]</kbd> |
''Usage:'' | ''Usage:'' | ||
| Line 26: | Line 26: | ||
=== Named parameters === | === Named parameters === | ||
''URLs:'' | ''URLs:'' | ||
| − | : < | + | : <kbd>[https://www.capfriendly.com/players/eric-staal https://www.capfriendly.com/ice/players/{{hilite|eric-staal}}]</kbd> |
| − | : < | + | : <kbd>[https://www.capfriendly.com/players/sidney-crosby https://www.capfriendly.com/players/{{hilite|sidney-crosby}}]</kbd> |
| − | : < | + | : <kbd>[https://www.capfriendly.com/players/daniel-alfredsson https://www.capfriendly.com/players/{{hilite|daniel-alfredsson}}]</kbd> |
''Usage:'' | ''Usage:'' | ||
Revision as of 05:43, 5 August 2018
{{{name}}} player profile at CapFriendly
Contents
Usage
Unnamed parameters:
{{CapFriendly | ID }}{{CapFriendly | ID | NAME }}
Named parameters:
{{CapFriendly | id= ID }}{{CapFriendly | id= ID | name= NAME }}
Examples
Unnamed parameters
URLs:
- https://www.capfriendly.com/ice/players/eric-staal
- https://www.capfriendly.com/players/sidney-crosby
- https://www.capfriendly.com/players/daniel-alfredsson
Usage:
* {{CapFriendly | sidney-crosby | Sidney Crosby }}
Output:
Named parameters
URLs:
- https://www.capfriendly.com/ice/players/eric-staal
- https://www.capfriendly.com/players/sidney-crosby
- https://www.capfriendly.com/players/daniel-alfredsson
Usage:
* {{CapFriendly | id= sidney-crosby | name= Sidney Crosby }}
Output:
No parameters and Wikidata property not defined
Usage:
* {{CapFriendly}}
Output:
- Template:PAGENAMEBASE player profile at CapFriendly
TemplateData
TemplateData for CapFriendly
This template displays an external link to an ice hockey player's CapFriendly page. It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Player ID | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL for the player's profile. Example: sidney-crosby is the ID portion of https://www.capfriendly.com/players/sidney-crosby. | Number | optional |
| Player name | name 2 | The "name" parameter (or unnamed parameter "2") may be used to specify 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 "(ice hockey)".
| String | optional |
See also
Ice hockey player external link templates:
- {{Ice hockey stats}}
- Official league websites:
- {{AHL profile}}
- {{ECHL profile}}
- {{EIHL profile}}
- {{KHL profile}}
- {{OHL profile}}
- Other websites:
- {{Eliteprospects}}
- {{Eurohockey}}
- {{HockeyDB}}
- {{Hockey-reference}}
- {{Legendsmember}}
- {{Legendsofhockey}}
- {{TSN-NHL profile}}
External links