Widget:Iframe: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
<nowiki> | <nowiki> | ||
{{#Widget:Iframe|src=http://url.to/|style=}} | {{#Widget:Iframe|src=http://url.to/|width=|height=|style=}} | ||
</nowiki> | </nowiki> | ||
Default width is 320 and height is 240. | |||
For example: | For example: | ||
Line 18: | Line 20: | ||
== 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" 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> |
Latest revision as of 18:57, 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/|width=|height=|style=}}
Default width is 320 and height is 240.
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.