Template:Youtube embed video simple v1

From FlightGear wiki
Jump to navigation Jump to search

Simple template for embedding youtube videos. It has clearly named parameters and is easily searchable from the visual editor template search (Visual editor menu bar > Insert > Template > type few letters of template name e.g. youtu ).

The template calls the embed video template {{ev:youtube|...}}.

Fields:

youtube_url_or_video_ID_from_youtube_url_required:
  • Youtube URL: For example: https://www.youtube.com/watch?v=LOpKt2gXQoE
  • Video ID from youtube url: The characters in the youtube video url that identify the video. For example: int the url https://www.youtube.com/watch?v=LOpKt2gXQoE the ID is "LOpKt2gXQoE" i.e. the letters and numbers after the "watch?v=" part. This field is required.
width_in_pixels_optional:
  • Width of the video in pixels. Only specifying a width will cause the height to be scaled so the video has the correct aspect ratio. Specifying width is useful when putting multiple videos next to each other, and having text flow around the video. This field is optional.
alignment_optional_left_OR_right_OR_center_OR_inline:
  • Alignment of the video. Possible options: left, right, center, or inline. Default is left.
caption_text_optional:
  • Text for the caption - this text can include wiki markup like italics, bold, links etc. This field is optional.
height_in_pixels_optional:
  • Height of the video in pixels. Only specifying a height will cause the width to be scaled so the video has the correct aspect ratio. This field is optional.