Jump to content

Template:Songkick/doc

From Wikipedia, the free encyclopedia

Template:Songkick generates an external link to a page at Songkick.

Usage

[edit]
One parameter
{{Songkick | ID }}
{{Songkick | id= ID }}
Two parameters
{{Songkick | ID | NAME }}
{{Songkick | id= ID | name= NAME }}
Using Wikidata property
{{Songkick}}
{{Songkick | name= NAME }}

Examples

[edit]

One parameter

[edit]

This parameter will be the ID number in the URL at Songkick. When one parameter is used, the link text is the title of the Wikipedia article where the template is used, without any disambiguation such as (singer).

Usage in Roy Harper (singer)
{{Songkick | 300195 }}
{{Songkick | id= 300195 }}
Output
Roy Harper tour dates at Songkick
URLs
https://www.songkick.com/artists/300195 (redirect to URL below)
https://www.songkick.com/artists/300195-roy-harper

Two parameters

[edit]

The first parameter will be the ID number in the URL at Songkick. The second parameter will be used as the link text.

Usage
{{Songkick | 508989 | Future Islands }}
{{Songkick | id= 508989 | name= Future Islands }}
Output
Future Islands tour dates at Songkick
URLs
https://www.songkick.com/artists/508989 (redirect to URL below)
https://www.songkick.com/artists/508989-future-islands

No parameters

[edit]

When used without an "id" parameter, this template will call data from Wikidata, if available. If none is available, an error message will be displayed.

Usage
{{Songkick}}
Output
{{Songkick}} template missing ID and not present in Wikidata.

TemplateData

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

TemplateData for Songkick

This template generates an external link to a page at Songkick.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The ID portion of the URL, such as 508989 in https://www.songkick.com/artists/508989. This parameter is optional if Wikidata property P3478 exists, but required if not.

Default
Wikidata property P3478
Numberoptional
Namename 2

The link text. This parameter is optional; it defaults to the Wikipedia article name, without disambiguation.

Default
{{PAGENAMEBASE}}
Stringoptional