Template:YouTube
From Nookipedia, the Animal Crossing wiki
(Redirected from Template:Youtube)
Template documentation (view)
Usage
{{YouTube|<video id>|<video size>|<location>|<caption>|height=|width=|file=}}
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.file
overrides the YouTube video and should only be used in the event that a video that was previously available on YouTube is removed.
Example
{{YouTube|kEJXS0MiKOA|250|left|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}}