Warning: is_readable(): open_basedir restriction in effect. File(/gitinfo/info.json) is not within the allowed path(s): (/www/wwwroot/wiki.guguwo.top/:/tmp/) in /www/wwwroot/wiki.guguwo.top/includes/utils/GitInfo.php on line 177
模板:APlayer/doc:修订间差异 - 咕咕窝wiki

模板:APlayer/doc:修订间差异

来自咕咕窝wiki
无编辑摘要
无编辑摘要
 
第3行: 第3行:
<pre>
<pre>
{{APlayer
{{APlayer
  | lrc = 3  // 歌词类型(可选)
| 实例ID(必填)
  | audios =
| 曲目名称
  * https://example.com/song1.mp3
| 艺术家
  * https://example.com/song2.mp3 // 歌曲链接 (可多个)
| 音频URL(必填)
  | titles =
| 封面URL
  * 歌曲1
| LRC歌词
  * 歌曲2 // 歌曲名称
}}
  | artists =
</pre>
  * 艺术家1
=== 例子 ===
  * 艺术家2 // 歌曲作者
<pre>
  }}
{{APlayer
|123
|"Summer Vibes"
|Kevin MacLeod
|https://example.com/audio.mp3
|https://example.com/cover.jpg
|[00:00.00]歌词示例
}}
</pre>
</pre>

2025年3月16日 (日) 05:45的最新版本

你可以使用这个模板调用aplayer向条目中插入音频

用法[编辑源代码]

{{APlayer
| 实例ID(必填)
| 曲目名称
| 艺术家
| 音频URL(必填)
| 封面URL
| LRC歌词
}}

例子[编辑源代码]

{{APlayer
|123
|"Summer Vibes"
|Kevin MacLeod
|https://example.com/audio.mp3
|https://example.com/cover.jpg
|[00:00.00]歌词示例
}}