Template:Bandcamp

From Moegirlpedia
Revision as of 16:08, 17 April 2022 by LiaMinina (talk | contribs) (Created page with "<includeonly><div class="bandcamp" data-id="{{{1|{{{id|}}}}}}" data-track="{{{track|}}}" data-layout="{{#switch: {{{layout}}} | slim | Slim = Slim | artwork-only | Artwork-onl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

This template is used to embed a playable album from bandcamp.com.

Parameter requirements

id (or anonymous parameter) [must fill in at least one with track]
Pure numbers, you can use the [Share / Embed] button on the Bandcamp page, click the [Embed this track] button in the pop-up box, select any type, and you can find it in the input box in the upper left corner /album=********/, here is the id.
track [and id (or anonymous parameter) must fill at least one]
Pure numbers, used to specify that only a specific single song is played, which can be found in the input box where the id parameter is obtained through the above method on the single song page /track=********/.
layout【Required】
You can fill in with Slim, Artwork-only, Standard. You can select any type on the left and preview it on the right after selecting the type above.
artwork
  • If the layout Slim is selected, the album image will be displayed when the value is 1, true, yes, and the album image will not be displayed if it is other values ​​or not filled in;
  • If the layout Standard is selected, when the value is set as small, the small album map will be displayed, when the value is set as big the large album map will be displayed, and the album map will not be displayed if other values ​​or none are filled in.
tracklist
If the layout is selected Slim or Standard, the album tracklist will be displayed when the value is 1, true, or yes.
link
If the link is filled in with :the web address ending with the domain name .bandcamp.com, the link will be added on the right side of the player (with the Bandcamp logo as the content).
width
width specifies the width, which can only be a positive integer, in units of px. There are different restrictions according to the values ​​of layout, artwork and tracklist:
layout artwork tracklist Maximum value Minim value Available? auto
Slim 任意 170 700 Yes
Artwork-only 任意 No
Standard false false 250 Yes
true No
small false Yes
true No
big 任意 170 No
height
height specifies the height, which can only be a positive integer, in units of px. There are different restrictions according to the values ​​of layout, artwork and tracklist:
layout artwork tracklist Minimum value Maximum value
Slim 任意 无效,该布局高度固定为42
Artwork-only 任意 无效,该布局为正方形,高度将使用width值
Standard false false 无效,该布局高度固定为120
true 208 999
small false 无效,该布局高度固定为120
true 208 999
big false 312 999
true 362 999
title
You can fill in any content, it is recommended to fill in the album name, etc., it will be displayed when the mouse hovers over the link after filling in the legal link.
title
You can fill in any content, it is recommended to fill in the album name, etc., it will be displayed when the mouse hovers over the link after filling in the legal link.
float
The float type can be specified. If it is left, it will float left, if it is right, it will float right. If it is another value or empty, it will not float.
backgroundColor
The background color can be specified, the default is ffffff (white), only 6-digit hexadecimal integers are accepted (hexadecimal color notation (rgb()) ).
linkColor
The background color can be specified, the default is 7137dc (purple), only 6-digit hexadecimal integers are accepted (hexadecimal color notation (rgb()) ).

Example

{{Bandcamp|id=816099561|layout=Standard|artwork=big|link=https://infiniteammo.bandcamp.com/album/night-in-the-woods-vol-1-at-the-end-of-everything|tracklist=true|width=370|height=777|title=Night in the Woods Vol. 1: At The End Of Everything}}


Related templates