Widget:Iframe: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 18: Line 18:
== Copy to your site ==
== Copy to your site ==
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.
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.
</noinclude><includeonly><iframe src="<!--{$src}-->" frameborder="0" width="<!--{$width}--> height="<!--{$height}--> style="<!--{$style}-->">No support for iframe</iframe></includeonly>
</noinclude><includeonly><iframe src="<!--{$src}-->" frameborder="0" width="<!--{$width}-->" height="<!--{$height}-->" style="<!--{$style}-->">No support for iframe</iframe></includeonly>

Revision as of 18:51, 7 January 2025

This widget allows you to embed an iframe on your wiki page.

Hacked together by Michael

Using this widget

 {{#Widget:Iframe|src=http://url.to/|style=}}
 

For example:

 {{#Widget:Iframe|src=https://xpub.nl/|style=height:200px;float:right;}}
 

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.