Difference between revisions of "Template:Bilibili"

From Team Fortress Wiki
Jump to: navigation, search
m (.)
m
Line 1: Line 1:
<div class="youtubebox ratio-{{{ratio|16x9}}} widths-{{{widths|{{{width|512}}}}}}" style="margin:0.75em 0em;">
+
<div class="youtubebox ratio-{{{ratio|16x9}}} widths-{{{width|512}}}}}}" style="margin:0.75em 0em;">
{{#if: {{{align|}}}|<div class="embedvideo autoResize" style="text-align: {{{align}}}"><div class="embedvideowrap bilibili-video" data-vbvid="{{{1|}}}" data-vwidth="{{{width|512}}}" data-vheight="{{{height|}}}">></div></div>|<div class="embedvideo autoResize"><div class="embedvideowrap bilibili-video" data-vbvid="{{{1|}}}" data-vwidth="{{{width|512}}}" data-vheight="{{{height|}}}">}}</div></div>{{#if:{{{2|<noinclude>yes</noinclude>}}}
+
{{#if: {{{align|}}}|<div class="embedvideo autoResize" style="text-align: {{{align}}}"><div class="embedvideowrap bilibili-video" data-vbvid="{{{1|}}}" data-vwidth="{{{width|512}}}" data-vheight="{{{height|360}}}">></div></div>|<div class="embedvideo autoResize"><div class="embedvideowrap bilibili-video" data-vbvid="{{{1|}}}" data-vwidth="{{{width|512}}}" data-vheight="{{{height|360}}}">}}</div></div>{{#if:{{{2|<noinclude>yes</noinclude>}}}
 
| <br /><div style="margin-top:0.75em;">{{hatnote|1={{{2|Caption here.}}}}}</div>
 
| <br /><div style="margin-top:0.75em;">{{hatnote|1={{{2|Caption here.}}}}}</div>
 
}}</div><noinclude>{{Doc begin}}
 
}}</div><noinclude>{{Doc begin}}
Line 14: Line 14:
  
 
;Bilibili bvid: The Bilibili video id of the video to include.
 
;Bilibili bvid: The Bilibili video id of the video to include.
;{{code|width}}: Width of the video, in pixels. Height is calculated based on ratio. Default is 512px.
+
;{{code|width}}: Width of the video, in pixels. Default is 512px.
 +
;{{code|height}}: Height of the video, in pixels. Default is 360px.
 
;{{code|align}}: Horizontal alignment of video. Default is left.
 
;{{code|align}}: Horizontal alignment of video. Default is left.
  

Revision as of 13:54, 6 April 2020


Caption here.

Documentation for Bilibili


This template will embed a video inside an article.

Syntax

Basic:

{{bilibili|Bilibili bvid}}

With a defined thumbnail width:

{{bilibili|Bilibili bvid|width=value|align=alignment}}
Bilibili bvid
The Bilibili video id of the video to include.
width
Width of the video, in pixels. Default is 512px.
height
Height of the video, in pixels. Default is 360px.
align
Horizontal alignment of video. Default is left.

See also