Template:CapFriendly/doc

From blackwiki
Jump to navigation Jump to search

Template:CapFriendly displays an external link to a web page about an ice hockey player at CapFriendly. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{CapFriendly | ID }}
{{CapFriendly | ID | NAME }}

Named parameters:

{{CapFriendly | id= ID }}
{{CapFriendly | id= ID | name= NAME }}

Examples

Unnamed parameters

URL:

https://www.capfriendly.com/players/sidney-crosby

Usage:

* {{CapFriendly | sidney-crosby | Sidney Crosby }}

Output:

Named parameters

URL:

https://www.capfriendly.com/players/eric-staal

Usage:

* {{CapFriendly | id= eric-staal | name= Eric Staal }}

Output:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for CapFriendly

This template displays an external link to a web page about an ice hockey player at CapFriendly. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
Player IDid 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.

Stringrequired
Player namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

See also

Ice hockey player external link templates:

External links