Jump to content

Template:Ski-DB/doc

From Wikipedia, the free encyclopedia

Template:Ski-DB displays an external link to an alpine skier's profile at Ski-DB.com. It is intended for use in the external links section of an article.

Usage

[edit]

Unnamed parameters:

{{Ski-DB | ID }}
{{Ski-DB | ID | NAME }}

Named parameters:

{{Ski-DB | id= ID }}
{{Ski-DB | id= ID | name= NAME }}

Using Wikidata property Ski-DB skier ID (P3619):

{{Ski-DB}}
{{Ski-DB | name= NAME }}

Examples

[edit]

Unnamed parameters

[edit]

Usage:

* {{Ski-DB | marcel_hirscher_aut_53831 | Marcel Hirscher }}

Output:

Current URL:

https://www.ski-db.com/db/profiles/marcel_hirscher_aut_53831.php

Former URL:

http://www.ski-db.com/db/profiles/53831.asp (archive)

Named parameters

[edit]

Usage:

* {{Ski-DB |id= janica_kostelic_cro_wkstja |name= Janica Kostelić }}

Output:

Current URL:

https://www.ski-db.com/db/profiles/janica_kostelic_cro_wkstja.php

Former URL:

http://www.ski-db.com/db/profiles/wkstja.asp (archive)

No parameters and Wikidata property not defined

[edit]

Usage:

* {{Ski-DB}}

Output:

  • {{Ski-DB}} template missing ID and not present in Wikidata.

Template data

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Ski-DB in articles based on its TemplateData.

TemplateData for Ski-DB

This template displays an external link to an alpine skier's profile at Ski-DB.com. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: marcel_hirscher_aut_53831 is the ID portion of https://www.ski-db.com/db/profiles/marcel_hirscher_aut_53831.php. This parameter is optional if Wikidata property P3619 exists, but required if not.

Default
Wikidata property P3619
Stringoptional
Namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(skier)" or "(alpine skier)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

[edit]
ID parameter exists
ID parameter does not exist

See also

[edit]