|  Release status: stable | |
|---|---|
| Implementation | Tag, Media | 
| Description | Allows to embed YouTube and Google Videos movies, Archive.org audio and video, WeGame and Gametrailers video, Tangler forum, and GoGreenTube video | 
| Author(s) | Przemek Piotrowski | 
| Latest version | 1.9.3 (2018-10-13) | 
| MediaWiki | 1.39+ | 
| Database changes | No | 
| License | GNU General Public License 2.0 or later | 
| Download | Download extension  Git [?]: | 
| Example | Any ShoutWiki site | 
| Parameters 
 | |
| Hooks used 
 | |
| Quarterly downloads | 377 (Ranked 28th) | 
| Public wikis using | 1,691 (Ranked 204th) | 
| Translate the YouTube extension if it is available at translatewiki.net | |
| Vagrant role | youtube | 
The YouTube extension allows users to embed YouTube and Google Videos movies, Archive.org audio and video, WeGame and Gametrailers video, Tangler forum, and GoGreenTube video. Originally made by and for Fandom, though Fandom no longer uses this extension.
Installation
- Download and place the file(s) in a directory called YouTubein yourextensions/folder.
- Add the following code at the bottom of your LocalSettings.php file: wfLoadExtension( 'YouTube' ); 
 Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed. 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>
Other supported video services
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 videos from these services:
| Google Videos | <gvideo> | 
| Archive.org video | <aovideo> | 
| WeGame | <wegame> | 
| Tangler forum | <tangler> | 
| Gametrailers | <gtrailer> | 
| Nicovideo | <nicovideo> | 
| GoGreenTube | <ggtube> | 
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", wherexxxis the number of pixels. The default is 640 pixels.
- Height is controlled in the same way with height="xxx". The default is 385 pixels.
|  | This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |