ATTENTION: An Animal Crossing Wiki from Miraheze will be at a new website at animalcrossing.indyamos.com. This will be an enhanced version of this wiki. Please view Special:Diff/57616 for more information.

Template:Youtube/doc

From Animal Crossing Wiki
Revision as of 10:45, 27 August 2023 by mediawiki>Jared2222 (Created page with "==Usage== <pre> {{YouTube|<video id>|<video size>|<location>|<caption>|height=|width=|file=}} </pre> This template is used to create a thumbnail in which [https://youtube.com YouTube] videos can be embedded. All such videos should be placed under a '''Videos''' section heading. The parameters are as follows: * <code>video id</code> is the unique sequence of letters, numbers, and characters found at the end of the video's URL. * <code>video size</code> is the desired siz...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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}}

Template:YouTube

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}}

Template:YouTube Template:YouTube Template:YouTube