Template:Discogs release/doc: Difference between revisions

From SPCodex, The Smashing Pumpkins wiki
m (1 revision imported)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{esoteric}}
{{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 [[w:Discogs|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.


== Usage ==
== Usage ==
Line 16: Line 13:
: <nowiki>{{Discogs release|release=RELEASE|name=WORKNAME|type=album OR single}}</nowiki>
: <nowiki>{{Discogs release|release=RELEASE|name=WORKNAME|type=album OR single}}</nowiki>


If no release ID is provided, then the first value from Wikidata will be used. If the Wikidata item does not have any {{Q|P2206}} data, then the template will not output any text.
==Parameters==
 
== Examples ==
:;Album usage
: For ''[[Novus Magnificat]]'' at http://www.discogs.com/release/311591 you use:
:<nowiki>* {{Discogs release|311591|Novus Magnificat|type=album}}</nowiki>
:<nowiki>* {{Discogs release|id=311591|name=Novus Magnificat|type=album}}</nowiki> (canonically)
:<nowiki>* {{Discogs release|release=311591|name=Novus Magnificat|type=album}}</nowiki> (canonically)
:* {{Discogs release|311591|Novus Magnificat|type=album}}
:* {{Discogs release|id=311591|name=Novus Magnificat|type=album}}
:* {{Discogs release|release=311591|name=Novus Magnificat|type=album}}
 
:;Single usage
: For "[[Love Me Do]]" at http://www.discogs.com/release/1789539 you use:
:<nowiki>* {{Discogs release|1789539|Love Me Do|type=single}}</nowiki>
:<nowiki>* {{Discogs release|id=1789539|name=Love Me Do|type=single}}</nowiki> (canonically)
:<nowiki>* {{Discogs release|release=1789539|name=Love Me Do|type=single}}</nowiki> (canonically)
:* {{Discogs release|1789539|Love Me Do|type=single}}
:* {{Discogs release|id=1789539|name=Love Me Do|type=single}}
:* {{Discogs release|release=1789539|name=Love Me Do|type=single}}
 
==TemplateData==
{{TemplateData header}}
<templatedata>
<templatedata>
{
{
Line 75: Line 50:
}
}
</templatedata>
</templatedata>
==See also==
* {{tl|Discogs master}}
* {{tl|Discogs artist}}
* {{tl|Discogs label}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Catalog lookup templates]]
[[Category:Music external link templates]]
}}</includeonly>

Latest revision as of 02:47, 27 April 2020

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[edit source]

{{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}}

Parameters[edit source]

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