Extension:IDisplay

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎日本語
MediaWiki extensions manual
Crystal Clear action run.svg
iDisplay
Release status: unmaintained
Implementation Parser function
Description Allows to display external websites in an iframe and allows to put a page before the site to prevent loading the site.
Author(s) Dominik Sigmundtalk
Maintainer(s) User:BrentLaabstalk
Latest version 1.9 (December 2016)
MediaWiki 1.17 or later
License GNU General Public License 2.0 or later
Download
Translate the IDisplay extension if it is available at translatewiki.net
Check usage and version matrix.

The iDisplay extension allows MediaWiki pages to embed external web pages. It also allows setting an option to put a blocking page in front of it, so you prevent loading the page until the user wants to load the page.

Parser functions[edit]

The extension has one parser function:

  • #idisplay displays a webpage.

Installation[edit]

  • Download, extract and place the file(s) in a directory called iDisplay in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/iDisplay/iDisplay.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage[edit]

To display pages call the following:

{{#iDisplay:URL|WIDTH|HEIGHT|SAFE}} 

Explanation:

  • The URL you want to display
  • The WIDTH of the iFrame
  • The HEIGHT of the iFrame
  • If SAFE == 1 then there will be the blocking page in between.

For example:

{{#iDisplay:http://my.example.com/interesting-page|100%|600}}

You do not need to define all parameters, but you must keep the order!

Page fitting[edit]

You might cannot get the iframe to fit the page. A guest user suggested this workaround / fix:

Paste this code into your "common.css" page ("MediaWiki:Common.css")

iframe {
	width: 100% !important;
	height: * !important;
	min-width: 600px;
	min-height: 500px;
}

Source

See also[edit]