模板:B站视频:修订间差异

来自骷髅女孩Wiki
第1行: 第1行:
<includeonly><div style="max-width:91vm;"><htmltag tagname="iframe" src="//player.bilibili.com/player.html?bvid={{{bv|}}}&autoplay={{{autoplay|0}}}&t={{{t|0}}}&poster={{{poster|1}}}" width="{{{width|330}}}" height="{{{height|185.63}}}" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></htmltag></div></includeonly><noinclude>{{模板说明}}[[分类:格式模板]]</noinclude>
<includeonly><div style="max-width:91vm;"><htmltag tagname="iframe" src="//player.bilibili.com/player.html?bvid={{{bv|}}}&autoplay={{{autoplay|0}}}&t={{{t|0}}}&poster={{{poster|1}}}" width="{{{width|330}}}" height="{{{height|auto}}}" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></htmltag></div></includeonly><noinclude>{{模板说明}}[[分类:格式模板]]</noinclude>

2023年12月18日 (一) 23:31的版本

参数|bv=控制bv号,必填。

参数|autoplay=控制是否自动播放,可选值为参数01,默认值为0,推荐不填。

参数|t=控制视频开始的时间点,默认值为0

参数|poster=控制是否在播放前抓取视频的封面,可选值为参数01,默认值为1

参数|width=|height=控制视频窗口的宽和高,默认为328184.5

案例

{{B站视频|bv=BV16G4y1p7FP}}

生成: