Template:CapFriendly/doc

From blackwiki
< Template:CapFriendly
Revision as of 05:48, 5 August 2018 by imported>Zyxw (documentation and categories moved from template to /doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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:

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 an ice hockey player's CapFriendly page. 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.

Numberoptional
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