Template:Youtube

From Nookipedia, the Animal Crossing wiki
Jump to navigation Jump to search

Template documentation (view)


Usage

{{Youtube|<video id>|<video size>|<location>|<caption>|height=|width=}}

This template is used to create a thumbnail in which Youtube videos can be embedded. All such videos should be placed under a Videos section heading. The parameters are as follows:

  • video id is the unique sequence of letters, numbers, and characters found at the end of the video's URL.
  • video size is the desired size of the video. Defaults to 250px.
  • location is where to position the float of the video (i.e. right, left, or center). Defaults to left if blank.
  • caption is text that will be displayed in the thumbnail below the video.
  • height is the height of the bounding box. Defaults to 250px.
    • For best practice, all videos that are grouped together should have the same height, otherwise they may be displayed strangely on the page. Height will only need to be set manually if the videos drastically differ in the length of their captions such that some take up multiple lines and others less.
  • width is the width of the bounding box. Defaults to 200px.

Example

{{Youtube|kEJXS0MiKOA|250|left|Teaser from Nintendo Direct on September 13, 2018}}
Teaser from Nintendo Direct on September 13, 2018

When grouping videos, the same height must be set for all of them to avoid visual placement issues. This will need to be done manually if the length of their captions greatly differ.

{{Youtube|kEJXS0MiKOA|250|left|Teaser from Nintendo Direct on September 13, 2018|height=230px}}
{{Youtube|_3YNL0OWio0|250|left|E3 Nintendo Direct Trailer 2019|height=230px}}
{{Youtube|dEh3MPy4GAU|250|left|E3 Nintendo Treehouse gameplay featuring [[Aya Kyogoku]] and [[Hisashi Nogami]]|height=230px}}
Teaser from Nintendo Direct on September 13, 2018
E3 Nintendo Direct Trailer 2019
E3 Nintendo Treehouse gameplay featuring Aya Kyogoku and Hisashi Nogami