Difference between revisions of "Template:Discogs master"
Jump to navigation
Jump to search
imported>Jc86035 m (enable Wikidata) |
imported>Jc86035 m (+) |
||
| Line 1: | Line 1: | ||
| − | {{#if:{{{1|}}}{{wikidata|property|P1954}}|{{#ifeq: {{{pure_url|}}}|yes|https://www.discogs.com/master/{{#if:{{{1|}}}{{{id|}}}{{{master|}}}|{{{1|{{{id|{{{master}}}}}}}}}|{{wikidata|property|P1954}}}}|{{#ifeq:{{{type|}}}|single|"|''}}[https://www.discogs.com/master/{{#if:{{{1|}}}{{{master|}}}|{{{1|{{{master}}}}}}|{{wikidata|property|P1954}}}} {{{2|{{{name|{{PAGENAME}}}}}}}}]{{#ifeq:{{{type|}}}|single|"|''}} at [[Discogs]] (list of releases)}}}}<noinclude> | + | {{#if:{{{1|}}}{{{id|}}}{{{master|}}}{{wikidata|property|P1954}}|{{#ifeq: {{{pure_url|}}}|yes|https://www.discogs.com/master/{{#if:{{{1|}}}{{{id|}}}{{{master|}}}|{{{1|{{{id|{{{master}}}}}}}}}|{{wikidata|property|P1954}}}}|{{#ifeq:{{{type|}}}|single|"|''}}[https://www.discogs.com/master/{{#if:{{{1|}}}{{{master|}}}|{{{1|{{{master}}}}}}|{{wikidata|property|P1954}}}} {{{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 14:23, 9 May 2019
Template:Wikidata Discogs master at Discogs (list of releases)
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)
- Novus Magnificat at Discogs (list of releases)
- Novus Magnificat at Discogs (list of releases)
- 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)
- "Love Me Do" at Discogs (list of releases)
- "Love Me Do" at Discogs (list of releases)
See also
- {{Discogs release}}
- {{Discogs artist}}
- {{Discogs label}}
| The above documentation is transcluded from Template:Discogs master/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |