Шаблон:HockeyDB/док

Iz Vojne Enciklopedije
< Шаблон:HockeyDBОво је најновија верзија ове странице; нема одобрених измена.
Пређи на навигацију Пређи на претрагу

Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

Шаблон:HockeyDB displays an external link to ice hockey player's or team's statistics at HockeyDB.com. It is intended for use in the external links section of an article.

Usage

Player

Unnamed parameters:

{{HockeyDB | ID }}
{{HockeyDB | ID | NAME }}

Named parameters:

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

Using Wikidata property P2602:

{{HockeyDB}}
{{HockeyDB | name= NAME }}

Team

Unnamed parameters:

{{HockeyDB | team= yes | ID }}
{{HockeyDB | team= yes | ID | NAME }}

Named parameters:

{{HockeyDB | team= yes | id= ID }}
{{HockeyDB | team= yes | id= ID | name= NAME }}

Examples

Player

http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid=73288

Unnamed parameters
{{HockeyDB | 73288 | Sidney Crosby }}
Sidney Crosby на сајту IHDb (језик: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted)Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permittedLua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
Named parameters (id, name)
{{HockeyDB |id= 73288 |name= Sidney Crosby }}
Sidney Crosby на сајту IHDb (језик: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted)Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permittedLua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
Named parameters (id, title)
{{HockeyDB |id= 73288 |title= Sidney Crosby }}
Sidney Crosby на сајту IHDb (језик: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted)Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permittedLua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
Missing ID parameter and Wikidata property not defined
{{HockeyDB}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted на сајту IHDb (језик: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted)Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permittedLua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

Team

http://www.hockeydb.com/ihdb/stats/teamseasons.php?tid=690

Unnamed parameters
{{HockeyDB | team= yes | 690 | Colorado Avalanche }}
Colorado Avalanche на сајту IHDb (језик: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted)Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
Named parameters (id, name)
{{HockeyDB | team= yes |id= 690 |name= Colorado Avalanche }}
Colorado Avalanche на сајту IHDb (језик: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted)Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
Named parameters (id, title)
{{HockeyDB | team= yes |id= 690 |title= Colorado Avalanche }}
Colorado Avalanche на сајту IHDb (језик: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted)Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
Missing ID parameter
{{HockeyDB | team= yes }}
{{Шаблон:HockeyDB}} нема унесен тимски ID.

TemplateData

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

TemplateData за HockeyDB

This template displays an external link to ice hockey player's or team's statistics at HockeyDB.com. It is intended for use in the external links section of an article.

Параметри шаблона

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

Player's or team's ID number in the URL. Player: 73288 is the ID in http://www.hockeydb.com/ihdb/stats/pdisplay.php?pid=73288. Team: 690 is the ID in http://www.hockeydb.com/ihdb/stats/teamseasons.php?tid=690. For players, this parameter is optional if Wikidata property 2602 exists, but required if not. For teams, this parameter is required.

Подразумевано
Wikidata property P2602 (for players)
бројнеобавезно
namename title 2

Name of player or team. If not given it defaults to the Wikipedia article name, without any disambiguation such as (ice hockey).

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

If team=yes, the template will display team statistics instead of individual player statistics.

текстнеобавезно

See also

Ice hockey player external link templates: