Extension:YouTube/yi

Category:GPL licensed extensions/yi
MediaWiki extensions manual
YouTube
Release status: stableCategory:Stable extensions/yi
Implementation Tag Category:Tag extensions/yi, MediaCategory:Media handling extensions/yi
Description Allows to embed YouTube and Niconico movies, as well as Archive.org audio and video
Author(s) Przemek Piotrowski
Latest version 1.9.4
MediaWiki >= 1.34.0
Database changes No
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control/yi
Example Any ShoutWiki site
  • $wgYouTubeEnableLazyLoad
Translate the YouTube extension if it is available at translatewiki.net
Vagrant role youtube
Category:All extensions/yi

The YouTube extension allows users to embed YouTube and Niconico movies, as well as Archive.org audio and video.

Originally made by and for Fandom, though Fandom no longer uses this extension.

Installation

  • Download and move the extracted YouTube folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/YouTube
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'YouTube' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

To embed a YouTube video:

<youtube>foo</youtube>

where foo is the video ID from the URL. i.e. if the video's URL is https://www.youtube.com/watch?v=VyBSS48E4xI, then the embed code would be:

<youtube>VyBSS48E4xI</youtube>

‏אופיס הדס הניו כובוניר היי סיר YouTube

See ShoutWiki's help page on using the YouTube extension for more information, such as using alternate, non-YouTube providers to embed content.

The YouTube extension allows also to embed content from these services:

Archive.org video<aovideo>
Archive.org audio<aoaudio>
Nicovideo<nicovideo>

Setting width and height

Example:

<youtube width="200" height="120">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.

Category:YouTube extensions/yi Category:Video player extensions/yi Category:Extensions by Fandom/yi
Category:All extensions/yi Category:Extensions available as Debian packages/yi Category:Extensions by Fandom/yi Category:Extensions in Wikimedia version control/yi Category:Extensions included in Miraheze/yi Category:Extensions included in ShoutWiki/yi Category:Extensions included in WikiForge/yi Category:GPL licensed extensions/yi Category:Media handling extensions/yi Category:ParserFirstCallInit extensions/yi Category:Stable extensions/yi Category:Tag extensions/yi Category:Video player extensions/yi Category:YouTube extensions/yi