YouTubeTag Extension

From Jimbojw.com

Jump to: navigation, search

The YouTubeTag Extension is a MediaWiki extension for embedding YouTube content into articles.

It is released under The MIT License.

Contents

Compatibility

This extension requires:

  • MediaWiki 1.6.x, 1.8.x, 1.9.x or higher
  • PHP 4.x, 5.x or higher

Installation

  1. Download YouTubeTag, and be sure to rename the downloaded file to YouTubeTag.php.
  2. Drop this script in $IP/extensions
    Note: $IP is your MediaWiki install dir.
  3. Enable the extension by adding this line to your LocalSettings.php:
    require_once('extensions/YouTubeTag.php');

Usage

Once installed, you may begin embedding YouTube videos into any article.

To do so, simply add this text to the body of your page where you'd like the video to appear:

<youtube v="aYouTubeId" />

Where "aYouTubeId" should be replaced with the id of the video to embed.

For example, this:

<youtube v="dMH0bHeiRNg" />

Becomes this:

Comments

Sorry, comments are disabled.

or, read what others have said ...