Difference between revisions of "Template:AppleMusic"

From Moegirlpedia
Jump to: navigation, search
(Created page with "<includeonly><div class="appleMusic" data-id="{{{1|{{{id|}}}}}}" data-area="{{{area|cn}}}" data-song="{{{song|}}}" title="{{{title|}}}" data-float="{{{float|}}}"></div>{{#widg...")
 
(Changed parameter and category)
 
Line 1: Line 1:
<includeonly><div class="appleMusic" data-id="{{{1|{{{id|}}}}}}" data-area="{{{area|cn}}}" data-song="{{{song|}}}" title="{{{title|}}}" data-float="{{{float|}}}"></div>{{#widget:AppleMusic}}</includeonly><noinclude>{{doc}}[[Category:Audio file management templates]]</noinclude>
+
<includeonly><div class="appleMusic" data-id="{{{1|{{{id|}}}}}}" data-area="{{{area|us}}}" data-song="{{{song|}}}" title="{{{title|}}}" data-float="{{{float|}}}"></div>{{#widget:AppleMusic}}</includeonly><noinclude>{{doc}}[[Category:Audio templates]]</noinclude>

Latest revision as of 23:42, 9 November 2023

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

This template is used to embed a demo player from Apple Music.

It currently supports parameters in links starting with https://music.apple.com/.

Parameter description

id (anonymous parameter) [Required]
Purely digital. Available via the /******* at the end of the Apple Music album page address bar (Purely digital. Before the question mark, if there is one, or else at the end)
song
Purely digital. Available at the ?i=******* at the end of the Apple Music album page address bar (Purely digital. Located after the ?i=).
title
Title can be filled with any content, suggest album name, etc; will be displayed when the mouse hovers over the external link.
float
The float type can be specified. If left, it will float left, if right, it will float right. If it is empty, or if it is filled with any other value, it will not float.
area
The region parameter. It is recommended to be filled in with jp, us, cn, hk, or tw. Music from other regions may not be embedded properly when the playlist is embedded in the article, and external links may not redirect correctly.

Examples

Song

{{AppleMusic|id=1561524454|song=1561524761}}

Album

{{AppleMusic|id=1561524454}}

Related templates