Template:Discogs release: Difference between revisions
MusikAnimal (talk | contribs) m (1 revision imported) |
MusikAnimal (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{#if:{{{1|}}}{{{id|}}}{{{release|} | {{#if:{{{1|}}}{{{id|}}}{{{release|}}}|{{#ifeq: {{{pure_url|}}}|yes|https://www.discogs.com/release/{{#if:{{{1|}}}{{{id|}}}{{{release|}}}|{{{1|{{{id|{{{release}}}}}}}}}|}}|{{#ifeq:{{{type|}}}|single|"|''}}[https://www.discogs.com/release/{{#if:{{{1|}}}{{{id|}}}{{{release|}}}|{{{1|{{{id|{{{release}}}}}}}}}|}} {{{2|{{{name|{{PAGENAME}}}}}}}}]{{#ifeq:{{{type|}}}|single|"|''}} at [[w:Discogs|Discogs]] {{#if:{{{1|}}}{{{id|}}}{{{release|}}}||}}}}}}<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> |
Latest revision as of 22:33, 11 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)
Parameter | Description | Type | Status | |
---|---|---|---|---|
Release | 1 id release | no description | Number | required |
Name | 2 name | no description
| String | suggested |
type | type | Set to "single" (without the quotes) for a single
| Unknown | optional |
pure_url | pure_url | no description | Unknown | optional |
The above documentation is transcluded from Template:Discogs release/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. |