Шаблон:НХЛ играч

С Википедије, слободне енциклопедије

{{{name}}} на сајту NHL.com (језик: енглески)

Документација шаблона[прикажи] [уреди] [историја] [освежи]

Шаблон:НХЛ играч displays an external link to an ice hockey player's official National Hockey League (NHL) profile and statistics page. It is intended for use in the external links section of an article.

Usage[уреди извор]

Unnamed parameters:

{{НХЛ играч | ID }}
{{НХЛ играч | ID | NAME }}

Named parameters:

{{НХЛ играч | id= ID }}
{{НХЛ играч | id= ID | name= NAME }}

Using Wikidata property P3522:

{{НХЛ играч}}
{{НХЛ играч | name= NAME }}

Examples[уреди извор]

Unnamed parameters[уреди извор]

URLs:

http://www.nhl.com/ice/player.htm?id=8448974
https://www.nhl.com/player/eddie-shack-8448974
https://www.nhl.com/player/8448974

Usage:

{{НХЛ играч | 8448974 | Eddie Shack }}

Output:

Eddie Shack на сајту NHL.com (језик: енглески)

Named parameters[уреди извор]

URLs:

http://www.nhl.com/ice/player.htm?id=8471675
https://www.nhl.com/player/sidney-crosby-8471675
https://www.nhl.com/player/8471675

Usage:

{{НХЛ играч | id= 8471675 | name= Sidney Crosby }}

Output:

Sidney Crosby на сајту NHL.com (језик: енглески)

No parameters and Wikidata property not defined[уреди извор]

Usage:

{{НХЛ играч}}

Output:

{{Шаблон:НХЛ играч}} нема унесен ID нити је исти пронађен на Википодацима.

TemplateData[уреди извор]

Ово је TemplateData за овај шаблон, која се користи у TemplateWizard, Визуелном уређивачу и другим алаткама. Погледајте месечни извештај о употреби парамера за овај шаблон у чланцима заснованим на овом TemplateData.

TemplateData за НХЛ играч

This template displays an external link to an ice hockey player's official National Hockey League (NHL) profile and statistics page. It is intended for use in the external links section of an article.

Параметри шаблона[Уреди податке о шаблону]

ПараметарОписВрстаСтатус
Player IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL for the player's profile. Example: 8448974 is the ID portion of http://www.nhl.com/ice/player.htm?id=8448974 or https://www.nhl.com/player/eddie-shack-8448974. This parameter is optional if Wikidata property P3522 exists, but required if not.

Подразумевано
Wikidata property P3522
бројнеобавезно
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)".

Подразумевано
{{PAGENAMEBASE}}
текстнеобавезно

See also[уреди извор]

Ice hockey player external link templates:

External links[уреди извор]