Difference between revisions of "Template:Bilibili"
(redirect) |
m (.) |
||
Line 1: | Line 1: | ||
− | # | + | <div class="youtubebox ratio-{{{ratio|16x9}}} widths-{{{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>}}} | ||
+ | | <br /><div style="margin-top:0.75em;">{{hatnote|1={{{2|Caption here.}}}}}</div> | ||
+ | }}</div><noinclude>{{Doc begin}} | ||
+ | |||
+ | This template will embed a video inside an article. | ||
+ | |||
+ | === Syntax === | ||
+ | Basic: | ||
+ | <nowiki>{{bilibili|Bilibili bvid}}</nowiki> | ||
+ | |||
+ | With a defined thumbnail width: | ||
+ | <nowiki>{{bilibili|Bilibili bvid|width=value|align=alignment}}</nowiki> | ||
+ | |||
+ | ;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|align}}: Horizontal alignment of video. Default is left. | ||
+ | |||
+ | === See also === | ||
+ | * {{tl|bilibili tn}} | ||
+ | |||
+ | [[Category:Formatting templates|Bilibili]] | ||
+ | </noinclude> |
Revision as of 12:46, 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. Height is calculated based on ratio. Default is 512px.
align
- Horizontal alignment of video. Default is left.
See also
{{bilibili tn}}