Difference between revisions of "Template:Discogs master"

From blackwiki
Jump to navigation Jump to search
imported>Clusternote
m (closing bracket }};)
imported>Elegie
(Use HTTPS for Discogs links to provide increased user privacy/security)
Line 1: Line 1:
{{#ifeq: {{{pure_url|}}}|yes|http://www.discogs.com/master/{{{1|{{{id|{{{master|}}}}}}}}}|{{#ifeq:{{{type|}}}|single|"|''}}[http://www.discogs.com/master/{{{1|{{{master<!--not "id", see Template:Discogs-->}}}}}} {{{2|{{{name|{{PAGENAME}}}}}}}}]{{#ifeq:{{{type|}}}|single|"|''}} at [[Discogs]] (list of releases)}}<noinclude>
+
{{#ifeq: {{{pure_url|}}}|yes|https://www.discogs.com/master/{{{1|{{{id|{{{master|}}}}}}}}}|{{#ifeq:{{{type|}}}|single|"|''}}[https://www.discogs.com/master/{{{1|{{{master<!--not "id", see Template:Discogs-->}}}}}} {{{2|{{{name|{{PAGENAME}}}}}}}}]{{#ifeq:{{{type|}}}|single|"|''}} at [[Discogs]] (list of releases)}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 12:45, 20 January 2017

Discogs master at Discogs (list of releases)

Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata

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

The first value from Wikidata is used if there is no master ID provided.

Usage

{{Discogs master|MASTER}} (for non-singles)
{{Discogs master|MASTER|type=album OR single}}
{{Discogs master|MASTER|WORKNAME|type=album OR single}}
{{Discogs master|MASTER|name=WORKNAME|type=album OR single}}
{{Discogs master|master=MASTER|WORKNAME|type=album OR single}}
{{Discogs master|master=MASTER|name=WORKNAME|type=album OR single}}

Examples

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

See also