Actions

Widget

Iframe : Différence entre versions

De erg

(Page créée avec « <noinclude>__NOTOC__ This widget allows you to embed iframes on your wiki page. == Using this widget == <nowiki>{{#widget:Iframe|url=http://some.url/|height=240}}</nowiki... »)
 
Ligne 3 : Ligne 3 :
  
 
== Using this widget ==
 
== Using this widget ==
<nowiki>{{#widget:Iframe|url=http://some.url/|height=240}}</nowiki>
+
<nowiki>{{#widget:Iframe|src=http://some.url/|width=100%|height=60}}</nowiki>
  
 
To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''.
 
To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''.
</noinclude><includeonly><iframe width="100%" height="60" src="<!--{$url}-->" frameborder="0" ></iframe></includeonly>
+
</noinclude><includeonly><iframe width="<!--{$width|default:'100%'|escape:'html'}-->" height="<!--{$height|default:'60'|escape:'html'}-->" src="<!--{$src}-->" frameborder="0" ></iframe></includeonly>

Version du 16 juillet 2019 à 16:50

This widget allows you to embed iframes on your wiki page.

Using this widget

{{#widget:Iframe|src=http://some.url/|width=100%|height=60}}

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