Extension:EmbedVideo

The EmbedVideo Extension is a MediaWiki extension which adds parser functions called #ev and #evp for embedding video clips from popular video sharing services.


 * Project Homepage: Documentation at Github
 * Source Code: Source code at Github
 * Licensing: EmbedVideo is released under The MIT License.

Notice: As of the 1.0 release the EmbedVideo extension has a new maintainer and a new code base. EmbedVideo has been merged with EmbedVideoPlus, and Version 1.0 should be backwards compatible with both old versions of EmbedVideo and old versions of EmbedVideoPlus.

Installation

 * 1) Download the EmbedVideo package.
 * 2) Unzip the file in your extensions/ directory in your wiki inside the folder EmbedVideo.
 * 3) Enable the extension by adding this line to the bottom of your LocalSettings.php:

Usage
The EmbedVideo parser function expects to be called in any of the following ways:
 *  
 *  
 *  
 *  
 *  </tt>
 *  </tt>
 *  </tt>

Where:
 * service</tt> is the name of a video sharing service (See "service name" in the list below)
 * id</tt> is the id of the video to include
 * width</tt> (optional) is the width in pixels of the viewing area (height will be determined automatically)
 * align</tt> (optional) is an alignment (float) attribute. May be "left" or "right".
 * desc</tt> (optional) is a short description to display beneath the video when it is aligned

For example, to include the famous "evolution of dance" YouTube video, you'd enter:

And if you wanted scaled down to thumbnail size, on the right with a short description, you could use:


 * Note: See the Project Homepage for more examples.

Supported Services
As of version 1.0, EmbedVideo supports embedding video content from the following services:

Developer Notes
The major benefit of using a parser function as the injection mechanism for video clips (as opposed to an extension tag) is that parser functions can utilize template parameters (of the form  </tt>).

For example, say you found yourself making a lot of YouTube videos in thumbnail size, right-aligned like an image. You might make a template called Template:Youtube_tn which could contain this:

And then call it like this:

Reporting Bugs
There is an issue tracker set up on the Github project page.

Contributing
Bug reports, feature requests, and patches are always welcomed. New contributors can be added to the project if there is sufficient interest.

Weblinks

 * Live demo at Wikimini, encyclopedia written by children
 * German description of usage