Extension:EmbedVideo

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


 * Project Homepage: EmbedVideo Extension - Jimbojw.com
 * Source Code: EmbedVideo.php
 * Licensing: EmbedVideo is released under The MIT License.

Installation

 * 1) Download EmbedVideo, and be sure to rename the downloaded file to EmbedVideo.php.
 * 2) Drop this script in $IP/extensions
 * Note: $IP is your MediaWiki install directory.
 * 1) Enable the extension by adding this line to the bottom of your LocalSettings.php:

Usage
The EmbedVideo parser function expects to be called in either of the following ways:
 *   -or-
 *  

Where:
 * service is the name of a video sharing service.
 * 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)

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

And if you wanted scaled down to thumbnail size, you could use:

Note: See the Project Homepage for more examples.

Supported Services
As of version 0.1, EmbedVideo supports embedding video content from the following services:
 * Dailymotion
 * FunnyOrDie
 * Google Video
 * sevenload
 * Revver
 * YouTube

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:

Weblinks

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