Widget:Iframe

Материал из Dharmakaya

(Различия между версиями)
Перейти к: навигация, поиск
(Новая страница: «This widget allows you to add any page within an iframe tag to your site. To insert this widget, use the following code: <nowiki>{{#widget:</nowiki>{{PAGENAME}}<n...»)
 
Строка 1: Строка 1:
-
This widget allows you to add any page within an iframe tag to your site.
+
<noinclude>__NOTOC__
 +
This widget allows you to embed any web page on your wiki page using an iframe tag.
-
To insert this widget, use the following code:
+
Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev]
-
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
+
== Using this widget ==
-
|url=http://docs.google.com/present/embed?id=dcn37mcz_22cmnwnwf8
+
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Iframe widget description page on MediaWikiWidgets.org].
-
|width=410
+
-
|height=342
+
-
|border=0
+
-
}}</nowiki>
+
-
== Parameters ==
+
== Copy to your site ==
-
* '''url''' - URL of page being inserted
+
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.
-
* '''width''' - width of the iframe (default is 400)
+
</noinclude><includeonly><iframe src="<!--{$url|validate:url}-->" frameborder="<!--{$border|validate:int|default:0}-->" width="<!--{$width|validate:int|default:400}-->" height="<!--{$height|validate:int|default:300}-->"></iframe></includeonly>
-
* '''height''' - width of the iframe (default is 300)
+
-
* '''border''' - border width (default is 1)
+
-
 
+
-
== Sample result ==
+
-
{{#widget:{{PAGENAME}}
+
-
|url=http://docs.google.com/present/embed?id=dcn37mcz_22cmnwnwf8
+
-
|width=410
+
-
|height=342
+
-
|border=0
+
-
}}
+

Текущая версия на 11:24, 17 июня 2010

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

Created by Sergey Chernyshev

Using this widget

For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:Iframe article.

Источник — «http://dharmakaya.ru/wiki/Widget:Iframe»
Личные инструменты
Пространства имён
Варианты
Действия
Навигация
Инструменты