<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.micylou.com/index.php?action=history&amp;feed=atom&amp;title=Mediawiki_Extension_Iframe</id>
	<title>Mediawiki Extension Iframe - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.micylou.com/index.php?action=history&amp;feed=atom&amp;title=Mediawiki_Extension_Iframe"/>
	<link rel="alternate" type="text/html" href="https://wiki.micylou.com/index.php?title=Mediawiki_Extension_Iframe&amp;action=history"/>
	<updated>2026-04-06T13:12:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.micylou.com/index.php?title=Mediawiki_Extension_Iframe&amp;diff=1140&amp;oldid=prev</id>
		<title>DochyJP: Page creation</title>
		<link rel="alternate" type="text/html" href="https://wiki.micylou.com/index.php?title=Mediawiki_Extension_Iframe&amp;diff=1140&amp;oldid=prev"/>
		<updated>2021-06-24T06:08:53Z</updated>

		<summary type="html">&lt;p&gt;Page creation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Template Infobox Generic--&amp;gt;&lt;br /&gt;
{{Template:Class-Infobox-Generic&amp;lt;!-- ALL MUST BE FILLED IN --&amp;gt;&lt;br /&gt;
	|image = &amp;lt;!-- If an logo is required, enter the link here --&amp;gt;&lt;br /&gt;
	|Section = [[Section::{{PAGENAME}}]]&lt;br /&gt;
	|Source = [[Source::DataSource]]  &amp;lt;!-- [[Source::DataSource]], [[Source::Query]] ... --&amp;gt;&lt;br /&gt;
	|Language = [[Language::English]] &amp;lt;!-- [[Language::English]], [[Language::Français]], [[Language::Nederlands]] --&amp;gt;&lt;br /&gt;
	|Topic =  [[Topic::Mediawiki]] &amp;lt;!-- [[Topic::Mediawiki]], [[Subject::Microsoft]], ... --&amp;gt;&lt;br /&gt;
	|SubTopic = [[SubTopic::Mediawiki Extension]] &amp;lt;!-- [[SubTopic::Mediawiki Extension]], [[SubTopic::Office 365]] , ... --&amp;gt;&lt;br /&gt;
        |DocumentType =  [[DocumentType::Documentation]] &amp;lt;!-- [[DocumentType::User Guide]], [[DocumentType::Procedure]], [[DocumentType::Script]], [[DocumentType::Gallery]], ...--&amp;gt;&lt;br /&gt;
	|LastEditBy = [[LastEditBy::{{REVISIONUSER}}]] &lt;br /&gt;
	|LastEdit = [[LastEdit::{{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}]] &lt;br /&gt;
	|Status = [[Status::Active]] &amp;lt;!--[[Status::Active]]  [[Status::Development]] [[Status::Obsolete]] [[Status::Archived]] [[Status::To Delete]]--&amp;gt;&lt;br /&gt;
	|Access = [[Access::free]] &amp;lt;!--[[Access::free]] [[Access::Private]] [[Access::Subscription]] --&amp;gt;&lt;br /&gt;
	&amp;lt;!-- Template version 1.01 --&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;!-- End of Template Infobox Generic--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Copyright &amp;amp; security issues ==&lt;br /&gt;
&lt;br /&gt;
Embedding external webpage into MediaWiki has two issues:&lt;br /&gt;
*Copyright violation: Embedding an external web page may violate copyrights. So, make sure that the domains that can be used in the extension are trusted!&lt;br /&gt;
*Security issue: External web pages may contain malicious code. Again make sure that the domains that can be used in the extension are trusted!&lt;br /&gt;
&lt;br /&gt;
The extension uses keys to select web servers which are given by the wiki adminstrator during installation. Therefore, behind the key should only be trusted domains. &lt;br /&gt;
&lt;br /&gt;
== Known problems ==&lt;br /&gt;
The extension does not work properly with the MobileFrontend extension.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
=== Clone the GIT repository ===&lt;br /&gt;
Go to the extensions directory and clone it from GitHub&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    git clone https://github.com/sigbertklinke/Iframe&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add to the bottom of LocalSettings.php&lt;br /&gt;
&amp;lt;pre&amp;gt;wfLoadExtension( 'Iframe' );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The global variable $wgIframe controls various aspects of the extensions, e.g. additional web adresses, delay of iframe loadings etc. &lt;br /&gt;
&lt;br /&gt;
=== Adding other web addresses ===&lt;br /&gt;
If you want to add own keys/servers then add in LocalSettings.php after loading the extension&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $wgIframe['server']['mykey'] = [ 'scheme' =&amp;gt; 'https', 'domain' =&amp;gt; 'mydomain' ];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will allow you to use in wiki pages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;iframe key=&amp;quot;mykey&amp;quot; path=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Category ===&lt;br /&gt;
For easy finding of all wiki pages which have a &amp;lt;nowiki&amp;gt;&amp;lt;iframe ... /&amp;gt;&amp;lt;/nowiki&amp;gt; inside, a category is added by&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;/pre&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The name of the category can be controlled in LocalSettings.php by setting&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$wgIframe['category'] = 'Iframe';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes''':&lt;br /&gt;
&lt;br /&gt;
    The extension does NOT create the page Category:Iframe, that is left to the wiki administrator or user.&lt;br /&gt;
    If you create the page Category:Iframe then it might be useful to use hidden categories.&lt;br /&gt;
&lt;br /&gt;
=== Width and height of an iframe ===&lt;br /&gt;
The default width and height of an iframe is 800x600 pixel. This can be set in LocalSettings.php via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$wgIframe['width'] = 640;&lt;br /&gt;
$wgIframe['height'] = 400;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no width and height is given then these defaults are used.&lt;br /&gt;
&lt;br /&gt;
=== Delay of iframe loading ===&lt;br /&gt;
Usually a HTML document is shown if all parts of a document are loaded. If a iframe on a server, e.g. a Shiny server, triggers a lengthy computation then the document will appear only after all iframe(s) are loaded. Therefore a delay mechanism with JavaScript is included which starts the loading of the iframe(s) only after the document is ready. By $wgIframe['delay'] the delay is controlled:&lt;br /&gt;
&lt;br /&gt;
If in LocalSettings.php&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
      $wgIframe['delay'] = -1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
(or any negative value) is set then the iframe(s) will be loaded immediately, no delay will take place.&lt;br /&gt;
&lt;br /&gt;
If in LocalSettings.php&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
      $wgIframe['delay'] = 100;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
(the default) is set then the first iframe will be loaded 100 ms after the document is loaded, the second 200 ms, and so on.&lt;/div&gt;</summary>
		<author><name>DochyJP</name></author>
	</entry>
</feed>