快捷方式:ytl

Template:YouTubeLink/doc

来自Minecraft基岩版开发Wiki
这是文档页面,它应该被放置到Template:YouTubeLink,查看Template:Documentation以获取更多信息。


这个模板用于链接到YouTube视频,比如参考资料。

用法[编辑]

{{ytl|video id|display name (optional)|uploader (optional)|upload date (optional)|t=time stamp (optional)}}

说明:
https://www.youtube.com/watch?v=F9t3FREAZ-k&t=1m32s
https:/­/www.youtube.com/watch?v= F9t3FREAZ-k &t= 1m32s
视频ID 时间戳

{{{name}}} can be set to define a name to the youtube video ID, allowing it to be called later with a different time stamp. To call a previously defined ID, simply use the name instead of the video ID in {{{1}}}.

示例[编辑]

输入 输出
{{ytl|F9t3FREAZ-k}} https://www.youtube.com/watch?v=F9t3FREAZ-k
{{ytl|F9t3FREAZ-k|t=1m32s}} https://www.youtube.com/watch?v=F9t3FREAZ-k&t=1m32s
{{ytl|F9t3FREAZ-k|Cave game}} Cave game
{{ytl|F9t3FREAZ-k|name=cave|t=1m32s}} https://www.youtube.com/watch?v=F9t3FREAZ-k&t=1m32s
{{ytl|cave|t=2m24s}} https://www.youtube.com/watch?v=cave&t=2m24s
{{ytl|F9t3FREAZ-k|Cave game tech test||May 13, 2009}} Cave game tech test
{{ytl|F9t3FREAZ-k||Nizzotch|May 13, 2009}} https://www.youtube.com/watch?v=F9t3FREAZ-k

另见[编辑]

{{YouTube}} - 嵌入一个视频而不是单纯的链接。