Difference between revisions of "Widget:Iframe"

From Wikispooks
Jump to navigation Jump to search
(Created page with "<noinclude>__NOTOC__ This widget allows you to embed any web page on your wiki page using an iframe tag. Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Serge...")
 
m (edits to instructions)
 
Line 1: Line 1:
 
<noinclude>__NOTOC__
 
<noinclude>__NOTOC__
This widget allows you to embed any web page on your wiki page using an iframe tag.
+
This widget allows you to embed any web page on a standard wiki page using an iframe tag.
  
 
Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev]
 
Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev]
  
 
== Using this widget ==
 
== Using this widget ==
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Iframe widget description page on MediaWikiWidgets.org].
+
To insert this widget, use the following code:
  
== Copy to your site ==
+
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
+
|url=http://docs.google.com/present/embed?id=dcn37mcz_22cmnwnwf8
 +
|width=410
 +
|height=342
 +
|border=0
 +
}}</nowiki>
 +
 
 +
== Parameters ==
 +
* '''url''' - URL of page being inserted
 +
* '''width''' - width of the iframe (default is 400)
 +
* '''height''' - height of the iframe (default is 300)
 +
* '''border''' - border width (default is 1)
 
</noinclude><includeonly><iframe src="<!--{$url|validate:url}-->" frameborder="<!--{$border|validate:int|default:0}-->" width="<!--{$width|escape:html|default:400}-->" height="<!--{$height|escape:html|default:300}-->"></iframe></includeonly>
 
</noinclude><includeonly><iframe src="<!--{$url|validate:url}-->" frameborder="<!--{$border|validate:int|default:0}-->" width="<!--{$width|escape:html|default:400}-->" height="<!--{$height|escape:html|default:300}-->"></iframe></includeonly>

Latest revision as of 10:32, 16 January 2014

This widget allows you to embed any web page on a standard wiki page using an iframe tag.

Created by Sergey Chernyshev

Using this widget

To insert this widget, use the following code:

{{#widget:Iframe
|url=http://docs.google.com/present/embed?id=dcn37mcz_22cmnwnwf8
|width=410
|height=342
|border=0
}}

Parameters

  • url - URL of page being inserted
  • width - width of the iframe (default is 400)
  • height - height of the iframe (default is 300)
  • border - border width (default is 1)