Template:Discogs release/doc: Difference between revisions
MusikAnimal (talk | contribs) m (1 revision imported) |
MusikAnimal (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
This template displays an external link to [[Discogs]]' release of | 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 18: | Line 15: | ||
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. | 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== | ||
{{TemplateData header}} | {{TemplateData header}} | ||
<templatedata> | <templatedata> | ||
Line 75: | Line 53: | ||
} | } | ||
</templatedata> | </templatedata> | ||
Revision as of 00:19, 27 April 2020
![]() | This is a documentation subpage for Template:Discogs release. It contains usage information, categories and other content that is not part of the original template page. |
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 Template:Q data, then the template will not output any text.
Parameters
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)
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 |