Extended Shortcode - bilibili

Warning
This article was last updated on 2023-02-26, the content may be out of date.

The bilibili shortcode embeds a responsive video player for bilibili videos.

When the video only has one part, only the BV id of the video is required, e.g.:

1
https://www.bilibili.com/video/BV1Sx411T7QQ

Example bilibili input:

1
2
3
{{< bilibili BV1Sx411T7QQ >}}
Or
{{< bilibili id=BV1Sx411T7QQ >}}

The rendered output looks like this:

When the video has multiple parts, in addition to the BV id of the video, p is also required, whose default value is 1, e.g.:

1
https://www.bilibili.com/video/BV1TJ411C7An?p=3

Example bilibili input with p:

1
2
3
{{< bilibili BV1TJ411C7An 3 >}}
Or
{{< bilibili id=BV1TJ411C7An p=3 >}}

The rendered output looks like this:

0%