Extension:IframePage

The IframePage extension allows embedding an iframe into a special page. The iframe src is set in  so that it does not pose a security risk. It is useful for embedding functionality from an external site and visually integrating it as if it was contained in the wiki.

Configuration parameters

 * $wgIframePageSrc: An associative array containing the iframe src. Mandatory.
 * The key in this array is expected to be a simple string that will be used as the title of a subpage of . The value should contain the actual iframe src URL.
 * The key can be omitted. That is because navigating to  will simply pull the URL contained in the first value in the   array.


 * $wgIframePageAllowPath: Defaults to . If set to , it allows passing a parameter using  . The path value will be appended to the URL contained in.

Examples
These examples are described using YouTube or Vimeo and are just for illustration.

Simple example
$wgIframePageSrc = array( 'YouTube' => 'http://www.youtube.com/embed/DWef69ItVrU' ); In this case, navigating to  or to   will display a video with the ID specified in the   array.

Example using a path
$wgIframePageSrc = array( 'YouTube' => 'http://www.youtube.com/embed/', 'Vimeo' => 'http://player.vimeo.com/video/' ); $wgIframePageAllowPath = true; In this case, navigating to  or to   will cause a YouTube error, since no ID was specified. You can send an ID by specifying the path. For example, you can navigate to  to see the above video. Or substitute the path with any YouTube video ID.

Alternatively, to see a Vimeo video, navigate to, substituting the path with any Vimeo ID.

Including on another page
It is possible to include the IframePage on another page.