Difference between revisions of "Template:Discogs release/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jc86035
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
{{esoteric}}
 
{{esoteric}}
{{Wikidata property|P2206}}
+
{{Uses Wikidata|P2206}}
  
 
This template displays an external link to [[Discogs]]' release of [[audio format]] (as opposed to {{tl|Discogs master}} which links to the master list of all releases of a given release), including "double-quotes" for singles and italics for everything else.
 
This template displays an external link to [[Discogs]]' release of [[audio format]] (as opposed to {{tl|Discogs master}} which links to the master list of all releases of a given release), including "double-quotes" for singles and italics for everything else.
Line 81: Line 81:
 
* {{tl|Discogs label}}
 
* {{tl|Discogs label}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
[[Category:Catalog lookup templates]]
 
[[Category:Catalog lookup templates]]

Latest revision as of 23:44, 24 April 2020

Template:Uses Wikidata

This template displays an external link to Discogs' release of audio format (as opposed to {{Discogs master}} which links to the master list of all releases of a given release), including "double-quotes" for singles and italics for everything else.

Usage

{{Discogs release|RELEASE}} (for non-singles)
{{Discogs release|RELEASE|type=album OR single}}
{{Discogs release|RELEASE|WORKNAME|type=album OR single}}
{{Discogs release|RELEASE|name=WORKNAME|type=album OR single}}
{{Discogs release|id=RELEASE|WORKNAME|type=album OR single}}
{{Discogs release|id=RELEASE|name=WORKNAME|type=album OR single}}
{{Discogs release|release=RELEASE|WORKNAME|type=album OR single}}
{{Discogs release|release=RELEASE|name=WORKNAME|type=album OR single}}

If no release ID is provided, then the first value from Wikidata will be used. If the Wikidata item does not have any Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P2206) data, then the template will not output any text.

Examples

Album usage
For Novus Magnificat at http://www.discogs.com/release/311591 you use:
* {{Discogs release|311591|Novus Magnificat|type=album}}
* {{Discogs release|id=311591|name=Novus Magnificat|type=album}} (canonically)
* {{Discogs release|release=311591|name=Novus Magnificat|type=album}} (canonically)
Single usage
For "Love Me Do" at http://www.discogs.com/release/1789539 you use:
* {{Discogs release|1789539|Love Me Do|type=single}}
* {{Discogs release|id=1789539|name=Love Me Do|type=single}} (canonically)
* {{Discogs release|release=1789539|name=Love Me Do|type=single}} (canonically)

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 Discogs release

Link to discogs' audio release (as opposed to master, which lists all releases of a given work)

Template parameters

ParameterDescriptionTypeStatus
Release1 id release

no description

Numberrequired
Name2 name

no description

Default
{{PAGENAME}}
Stringsuggested
Typetype

Set to "single" (without the quotes) for a single

Example
single
Unknownoptional
Pure_urlpure_url

no description

Unknownoptional

See also