Template:Discogs release/doc
閱讀設定
呢頁係Template:Discogs release嘅說明文件(子頁)。 呢度包含咗用法資料、分類同埋其他唔屬於個模本身嘅內容。 |
呢個模用個Wikidata屬性:
Discogs release ID (P2206) (睇利用)
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.
用法
[編輯]- {{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 Discogs release ID (P2206) data, then the template will not output any text.
例
[編輯]- Album usage
- For Novus Magnificat at http://www.discogs.com/release/311591 you use:
- * {{Discogs release|311591|Novus Magnificat|type=album}}
- * {{Discogs release|id=311591|name=Novus Magnificat|type=album}} (canonically)
- * {{Discogs release|release=311591|name=Novus Magnificat|type=album}} (canonically)
- Single usage
- For "Love Me Do" at http://www.discogs.com/release/1789539 you use:
- * {{Discogs release|1789539|Love Me Do|type=single}}
- * {{Discogs release|id=1789539|name=Love Me Do|type=single}} (canonically)
- * {{Discogs release|release=1789539|name=Love Me Do|type=single}} (canonically)
- "Love Me Do" at Discogs
- "Love Me Do" at Discogs
- "Love Me Do" at Discogs
模數據
[編輯]呢個係用喺呢個模嘅TemplateData解,用喺VisualEditor同埋其它工具度;睇吓呢個模嘅每月錯誤報告。
TemplateData for Discogs release嘅TemplateData
Link to discogs' audio release (as opposed to master, which lists all releases of a given work)
參數 | 描述 | 類 | 狀態 | |
---|---|---|---|---|
Release | 1 id release | 無描述 | 數字 | 必填 |
Name | 2 name | 無描述
| 字串 | 建議 |
type | type | Set to "single" (without the quotes) for a single
| 唔知 | 可選 |
pure_url | pure_url | 無描述 | 唔知 | 可選 |
睇埋
[編輯]- {{Discogs master}}
- {{Discogs artist}}
- {{Discogs label}}