Template:Bandcamp/doc

From Moegirlpedia
< Template:Bandcamp
Revision as of 17:17, 17 April 2022 by LiaMinina (talk | contribs) (Created page with "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 numb...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 最小值 最大值 是否可使用auto
Slim 任意 170 700 可以使用
Artwork-only 任意 不可以使用
Standard false false 250 可以使用
true 不可以使用
small false 可以使用
true 不可以使用
big 任意 170 不可以使用
height
height指定宽度,只能为正整数,单位为px。根据layout、artwork、tracklist的值有不同限制:
layout artwork tracklist 最小值 最大值
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.

float The float type can be specified. If