Difference between revisions of "Template:Discogs label/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jimthing
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
{{esoteric}}
 
{{esoteric}}
<!-- Categories and interwikis go at the bottom of this page. -->
+
{{Uses Wikidata|P1955}}
  
==Usage==
+
This template displays an external link to [[Discogs]]' label of releases in [[audio format]], listing all releases for the given label.
;Purpose
 
: External link to [[Discogs]]' label of releases in [[audio format]], listing all releases for the given label.
 
  
;Syntax
+
== Usage ==
 
: <nowiki>{{Discogs label}}</nowiki>
 
: <nowiki>{{Discogs label}}</nowiki>
 
: <nowiki>{{Discogs label|LABEL}}</nowiki>
 
: <nowiki>{{Discogs label|LABEL}}</nowiki>
Line 15: Line 14:
 
: <nowiki>{{Discogs label|label=LABEL|name=LABELNAME}}</nowiki>
 
: <nowiki>{{Discogs label|label=LABEL|name=LABELNAME}}</nowiki>
  
;Examples
+
If the label name is not provided, then the first value from Wikidata will be used. If the Wikidata item does not have any {{Q|P1955}} data, or there is no Wikidata item for the article, then the article title will be used to generate a link.
 +
 
 +
== Examples ==
 
:; Labelname same on both sites:
 
:; Labelname same on both sites:
 
: For "[[XL Recordings]]" at http://www.discogs.com/label/XL+Recordings you use:
 
: For "[[XL Recordings]]" at http://www.discogs.com/label/XL+Recordings you use:
Line 39: Line 40:
 
:* {{Discogs label|label=Solid State Records (2)|name=Solid State Records}}
 
:* {{Discogs label|label=Solid State Records (2)|name=Solid State Records}}
  
==See also==
+
== See also ==
* [[Template:Discogs]], [[Template:Discogs master]], [[Template:Discogs release]], [[Template:Discogs artist]]
+
* [[Template:Discogs master]]
 +
* [[Template:Discogs release]]
 +
* [[Template:Discogs artist]]
  
<includeonly>
+
<includeonly>{{Sandbox other||
<!-- Categories and interwikis go here: -->
+
<!-- Categories go here and interwikis go in Wikidata. -->
 
[[Category:Music external link templates]]
 
[[Category:Music external link templates]]
  
[[fa:الگو:Discogs label]]
+
}}</includeonly>
[[ru:Шаблон:Discogs label]]
 
[[de:Vorlage:Discogs Label]]
 
 
 
</includeonly>
 

Latest revision as of 23:44, 24 April 2020

Template:Uses Wikidata

This template displays an external link to Discogs' label of releases in audio format, listing all releases for the given label.

Usage

{{Discogs label}}
{{Discogs label|LABEL}}
{{Discogs label|label=LABEL}}
{{Discogs label|LABEL|LABELNAME}}
{{Discogs label|LABEL|name=LABELNAME}}
{{Discogs label|label=LABEL|name=LABELNAME}}

If the label name is not provided, then the first value from Wikidata will be used. If the Wikidata item does not have any Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P1955) data, or there is no Wikidata item for the article, then the article title will be used to generate a link.

Examples

Labelname same on both sites
For "XL Recordings" at http://www.discogs.com/label/XL+Recordings you use:
* {{Discogs label}}
* {{Discogs label|label=XL Recordings}} (canonically)
Labelname different on Discogs site, display the name as on Discogs
For "Beggars Banquet Records" at http://www.discogs.com/label/Beggars+Banquet you use:
* {{Discogs label|Beggars Banquet}}
* {{Discogs label|label=Beggars Banquet}} (canonically)
Labelname different on Discogs site, display the name as on Wikipedia or something else
For "Solid State Records (jazz label)" at http://www.discogs.com/label/Solid+State+Records+(2) you use:
* {{Discogs label|Solid State Records (2)|Solid State Records}}
* {{Discogs label|Solid State Records (2)|name=Solid State Records}}
* {{Discogs label|label=Solid State Records (2)|name=Solid State Records}} (canonically)

See also