Help:Inserting videos

From Moegirlpedia
Revision as of 23:41, 6 July 2024 by LiaMinina (talk | contribs) (Fixed something)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Icon-info.png
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.


Commons-emblem-notice.svg
This page, "Help:Inserting videos", is a Moegirlpedia help document
  • It is meant to introduce the operating method of some specific functions in Moegirlpedia;
  • This article is merely a statement, not a Moegirlpedia policy or guideline. If there is any conflict or inconsistency between this help document and the relevant policies and guidelines, then the policies and guidelines shall prevail.

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.

Bilibili video

Bilibili video plug-in

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
  1. 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.
  2. 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.
  3. 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)
  4. 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 of px, pc, pt, em, ex, ch, rem, vw, vh, vmin, vmax, cm, mm, Q, in, %].

YouTube video

Youtube video template

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