Difference between revisions of "Help:Inserting videos"
(Created page with "{{Direct translation|assist|lang=zh|ctp=帮助:插入视频}} {{Help}} Inserting a video into Moegirlpedia is a very simple matter. If you think there is a problem with any of...") (Tags: invisibleCharacter, 非https地址插入) |
(Fixed something) (Tag: invisibleCharacter) |
||
Line 22: | Line 22: | ||
:#Autoplay | :#Autoplay | ||
:#*t: Set the position where the video starts playing, in seconds (for example, 01:40 is recorded as (1×60+40=)100, but due to the structure of the video file it may not start at the exact set time) (after setting this parameter The video will automatically play after the viewer clicks [Show Video], but please note that the video may not automatically play in higher versions of Chrome, and can only automatically play the barrage = =). | :#*t: Set the position where the video starts playing, in seconds (for example, 01:40 is recorded as (1×60+40=)100, but due to the structure of the video file it may not start at the exact set time) (after setting this parameter The video will automatically play after the viewer clicks [Show Video], but please note that the video may not automatically play in higher versions of Chrome, and can only automatically play the barrage = =). | ||
− | :#*autoexpand: <code>true | + | :#*autoexpand: <code>true</code> sets the video to automatically expand when it tvideos with no parameters set will be automatically expanded) |
:#Length and width | :#Length and width | ||
:#*width: video width, optional, default is 665px | :#*width: video width, optional, default is 665px |
Latest revision as of 23:41, 6 July 2024
This help page contains translation from Chinese counterparts and its factual accuracy should be checked by someone with dual fluency.
Moegirlpedia hopes that you can help with improving it. |
Inserting a video into Moegirlpedia is a very simple matter. If you think there is a problem with any of these plugins, please report it on the discussion board.
Contents
Bilibili video
Insert syntax
{{BilibiliVideo|title=|id=|page=|width=600|height=421|autoplay=false}}
Parameter explanation
- Required parameters
- id: The av/bv number of the video (required) (it is not recommended to omit the av or bv at the beginning. If the prefix is omitted and the id error is prompted, please add the prefix)
- Optional parameters
-
- Video title class
- title: video title, optional. If there is no such parameter or the parameter is empty, the video title will be automatically obtained.
- Pagination class
- page: If the video has paging, you can specify the number of pages through this parameter. It is optional and the default is 1.
- pagename: If the video has paging, you can specify the paging title through this parameter to determine the number of pages. It is optional and is empty by default.
- subtitle: If the video has pagination, you can specify the pagination title to be displayed by setting this parameter to true. It is optional and the default is false.
- Autoplay
- t: Set the position where the video starts playing, in seconds (for example, 01:40 is recorded as (1×60+40=)100, but due to the structure of the video file it may not start at the exact set time) (after setting this parameter The video will automatically play after the viewer clicks [Show Video], but please note that the video may not automatically play in higher versions of Chrome, and can only automatically play the barrage = =).
- autoexpand:
true
sets the video to automatically expand when it tvideos with no parameters set will be automatically expanded)
- Length and width
- width: video width, optional, default is 665px
- height: video height, optional, default is 441px
- max-width: Maximum video width, optional, default is 665px
- max-height: Maximum video height, optional, default is 441px
- The above four length values only accept values in the format [positive number (positive integer or positive decimal), the unit is empty (regarded as
px
) or one ofpx
,pc
,pt
,em
,ex
,ch
,rem
,vw
,vh
,vmin
,vmax
,cm
,mm
,Q
,in
,%
].
- Video title class
YouTube video
Insert syntax
Just add {{YoutubeVideo|id=Video ID|width=425px|height=355px}}
Parameter explanation
- id: video ID (the part after ?v= in the video URL)
- For example: http://www.youtube.com/watch?v= oZyBmtu2hys, the red part is the ID
playlist: video playlist ID (cannot appear at the same time as the video ID, otherwise an error will occur)
- width: video display width, default is 425 pixels
- height: video display height, default is 355 pixels