User:Timeshifter/YouTube extension info

From Cannabis
Jump to navigation Jump to search

See: mw:Extension:YouTube.

See: Help:YouTube on Shoutwiki Hub.

See: Help talk:YouTube on Shoutwiki Hub.

Old Wikia help page[edit | edit source]

See the Wikia help page on April 11, 2018 before it was redirected to the new video embed tool on Wikia.

That Wikia help page is not on Archive.org. So it is copied below in case Wikia deletes the old page altogether. Wikia licenses their material under CC-BY-SA. See Wikia licensing page.

--- Wikia help page copied below ---


This page documents how to use the YouTube video extension, an older video extension. Videos added using the YouTube tag are automatically converted to file pages so as to help reduce page load time and improve video data tracking. A few exceptions exist and are listed below.

Step-by-step[edit | edit source]

Using the YouTube extension[edit | edit source]

To add a video using the YouTube extension, you need the ID code for the video. The string of letters and numbers after "v=" in the URL is the ID code. So for the URL: https://www.youtube.com/watch?v=CCz1kmfqL7g the ID code would be CCz1kmfqL7g.

YouTube videos are embedded using two tags, with the ID code for the video you want to show between them:

<youtube>ID code</youtube>

"ID code" is the code from the YouTube URL. So in this example, you would use:

<youtube>CCz1kmfqL7g</youtube>

You can change the width and height of the video box

  • Width is controlled with width="xxx", where xxx is the number of pixels. The default is 640 pixels.
  • Height is controlled in the same way with height="xxx". The default is 385 pixels.

So the example from above could be:

<youtube width="200" height="120">CCz1kmfqL7g</youtube>

Conversion[edit | edit source]

Once the page with the YouTube tag is saved the tag will be converted to a file page, pulling the name from the YouTube video name. Only the width is converted, except if the height is designed for use in an audio player. Attribution on the file page is attributed to the user who added the YouTube tag.

This happens in all circumstances except when the video play bar is smaller than 30 pixels in height. This will render a usable audio player on mobile devices and some desktop browsers (excluding Google Chrome).


--- end of copy of Wikia help page ---